# Twitter image using HTTP node error 401

**URL:** <https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547>\
**Category:** Questions\
**Created:** [December 9, 2024, 6:00am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547 "2024-12-09T06:00:35Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 9, 2024, 6:00am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/1 "2024-12-09T06:00:36Z")

</div>

Hi there,  
as we know to send an image to Twitter you have to push it using an HTTP node… my problem is that I can’t create a connection every time I get " Error: Request failed with status code 401"

although the Twitter node itself is working and sends text tweets well.

any suggestions

Using the last n8n stable cloud version

---

<div class="post-metadata">

**Author:** ![n8n](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/n8n/32/196425_2.png) [@n8n](https://community.n8n.io/u/n8n)\
**Post date:** [December 9, 2024, 6:00am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/2 "2024-12-09T06:00:37Z")

</div>

It looks like your topic is missing some important information. Could you provide the following if applicable.

- **n8n version:**
- **Database (default: SQLite):**
- **n8n EXECUTIONS\_PROCESS setting (default: own, main):**
- **Running n8n via (Docker, npm, n8n cloud, desktop app):**
- **Operating system:**

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 11, 2024, 7:37pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/3 "2024-12-11T19:37:06Z")

</div>

any update??

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 14, 2024, 4:08pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/4 "2024-12-14T16:08:38Z")

</div>

I try a system called buffer to test my connection and it’s working well this means no any block on my free plan or my API credentials.

Now am asking about a problem in the cloud version.

could u please anyone test it and inform if this problem happened ot not

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 18, 2024, 7:37am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/5 "2024-12-18T07:37:15Z")

</div>

Up this post again

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 18, 2024, 9:01am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/6 "2024-12-18T09:01:05Z")

</div>

Am not sure from that but this is what am encounter now:

I think the problem is related to using Free plain on X developer, although am using other tool using the below info and send tweet with image !!

API key\*   
API secret \*   
Twitter username \*   
Access token \*   
Access token secret \*

if any one have an explanation?

---

<div class="post-metadata">

**Author:** ![Ukly0](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ukly0/32/51236_2.png) [@Ukly0](https://community.n8n.io/u/Ukly0)\
**Post date:** [December 18, 2024, 1:11pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/7 "2024-12-18T13:11:46Z")

</div>

I’ve been having the same problem for days, what tool are you using to upload the tweet with an image?

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 18, 2024, 1:39pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/8 "2024-12-18T13:39:28Z")

</div>

am using HTTP node

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [December 18, 2024, 1:46pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/9 "2024-12-18T13:46:53Z")

</div>

401 error is unauth error.

So probably you missing something or you need to refresh credential for new token

 ![image](https://europe1.discourse-cdn.com/n8n/original/3X/5/f/5fe7a0f807b73194f2110ba7548e318d89304f1a.png)

you need to use standard v1.1

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 18, 2024, 1:50pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/10 "2024-12-18T13:50:12Z")

</div>

the problem I use it and it’s working well in other system ( WordPress plugin)

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 18, 2024, 2:02pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/11 "2024-12-18T14:02:46Z")

</div>

could you please check this:

https://www.loom.com/embed/2e5c82ef4e0a43d2b0b0e976966175a8?sid=5f40578e-89da-4089-9c7c-6bad5de330f2

---

<div class="post-metadata">

**Author:** ![Ukly0](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ukly0/32/51236_2.png) [@Ukly0](https://community.n8n.io/u/Ukly0)\
**Post date:** [December 20, 2024, 12:18pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/12 "2024-12-20T12:18:01Z")

</div>

Any update or alternative to upload an image to twitter from my workflow?

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 20, 2024, 12:20pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/13 "2024-12-20T12:20:41Z")

</div>

No, still stuck

---

<div class="post-metadata">

**Author:** ![Kevin\_Sozanski](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/kevin_sozanski/32/51887_2.png) [@Kevin\_Sozanski](https://community.n8n.io/u/Kevin_Sozanski)\
**Post date:** [December 24, 2024, 3:18am UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/14 "2024-12-24T03:18:34Z")

</div>

Following. Same issue here

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [December 27, 2024, 1:02pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/15 "2024-12-27T13:02:13Z")

</div>

what return in more details ?

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [December 27, 2024, 1:09pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/16 "2024-12-27T13:09:08Z")

</div>

have you try with oauth2.0 authentications ? Actually im using oauth2.0

have you try this end point? you need before upload and after create a tweet with the image id

> **[X Developer Platform - X](https://docs.x.com/overview)**
>
> Build, analyze, and innovate with X's real-time global data. Access posts, users, trends, and more through modern APIs with flexible pay-per-usage pricing.

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 27, 2024, 3:46pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/17 "2024-12-27T15:46:22Z")

</div>

thanks so much for ur support,

I use the same endpoint mentioned by u in the HTTP node to upload the image. but the problem in the connection itself.

the twitter node is working with oauth2.0 and I can tweet text with it only.

---

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [December 30, 2024, 12:04pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/18 "2024-12-30T12:04:04Z")

</div>

in your video i see oauth1

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 30, 2024, 12:21pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/19 "2024-12-30T12:21:40Z")

</div>

yes … cause the endpoint support only Oath1 …

[https://upload.twitter.com/\*\*1.1\*\*/media/upload.json](https://upload.twitter.com/ **1.1** /media/upload.json)

---

<div class="post-metadata">

**Author:** ![AhmedAlnaqa](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/ahmedalnaqa/32/47711_2.png) [@AhmedAlnaqa](https://community.n8n.io/u/AhmedAlnaqa)\
**Post date:** [December 30, 2024, 12:29pm UTC](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547/20 "2024-12-30T12:29:36Z")

</div>

in case of using Oauth2 i get error 403

[Next page](https://community.n8n.io/t/twitter-image-using-http-node-error-401/64547.md?page=2)
