https://linen.dev logo
403 for using Twitter Media's uploading action?
# 🖥│support-forum
error from the log: {"successfull":false,"error":"403 Forbidden","data":{},"logs":[{"extras":null,"level":"INFO","message":"Downloading 125695/twitter_media/TWITTER_MEDIA_UPLOAD_MEDIA/request/6dd6fe4bff23901457f736b2730b6782 from S3 temp","requestId":"39541dd0-6e67-4daf-8887-7d8cac8555fd","time":"2025-08-30T14:07:38.640505+00:00","type":"system"},{"extras":null,"level":"DEBUG","message":"File 125695/twitter_media/TWITTER_MEDIA_UPLOAD_MEDIA/request/6dd6fe4bff23901457f736b2730b6782 downloaded to /tmp/tmpr222nuqi/file_ts1756562853185335cf5b1.png","requestId":"39541dd0-6e67-4daf-8887-7d8cac8555fd","time":"2025-08-30T14:07:39.097839+00:00","type":"system"},{"extras":null,"level":"ERROR","message":"Error executing `UPLOAD_MEDIA`: Traceback (most recent call last):\n File \"/var/task/mercury/tools/api/tool.py\", line 283, in execute\n response = instance.execute(request=request, metadata=metadata)\n File \"/tmp/apps/twitter_media/actions/upload_media.py\", line 58, in execute\n media_response = twitter_api.simple_upload(\n File \"/var/lang/lib/python3.10/site-packages/tweepy/api.py\", line 45, in wrapper\n return method(*args, **kwargs)\n File \"/var/lang/lib/python3.10/site-packages/tweepy/api.py\", line 3539, in simple_upload\n return self.request(\n File \"/var/lang/lib/python3.10/site-packages/tweepy/api.py\", line 270, in request\n raise Forbidden(resp)\ntweepy.errors.Forbidden: 403 Forbidden\n","requestId":"39541dd0-6e67-4daf-8887-7d8cac8555fd","time":"2025-08-30T14:07:39.193399+00:00","type":"system"},{"extras":null,"level":"INFO","message":"Cleaning up /tmp/tmpr222nuqi after 39541dd0-6e67-4daf-8887-7d8cac8555fd","requestId":"39541dd0-6e67-4daf-8887-7d8cac8555fd","time":"2025-08-30T14:07:39.195908+00:00","type":"system"}],"version":"latest","auth_refresh_required":false,"successful":false}
this seems to be a server error @User
u
Hi @ljhskyso , we were able to reproduce the error. Looks like a bug on our end. The team will be working on a fix and will udate you!
l
great! let me know when it is fixed. this is kinda blocking my use case. thanks!
@Uday following up on the fix - do we have an ETA for the fix? we are blocked by this in prod
c
Hi, let me check with the team and revert back with updates.
Hey, this issue and been fixed.
l
great! let me test
hey i just tested it, it seems that it still not working - still seeing 401 error. also, i start to have issue with creating connected account now. can you take another look?
any updates? @Uday @abhishekpatil4 ?
a
Hi, not yet. I've escalated this internally and will keep you posted
y
any updates on this? we may have to switch to another platform to unblock this. thanks
c
hey yulei, the upload media action is now part of the twitter app and we have deprecated the twitter media app. can you please try the action in the twitter app?
y
exicting news! let me try
l
hey, i am trying to test the tool but i keep getting this error. is this something wrong with my setup or a tool failure? i can call other twitter tools fine. https://cdn.discordapp.com/attachments/1411349053706338489/1418282758702239835/message.txt?ex=68cd8e40&is=68cc3cc0&hm=af64625f54674837e8cc4200801537bfbaa98202507e154e3309e204f3b0cb6b&
@abhishekpatil4 as well
c
Thanks for the logs! It's a bug on our end and team will be working on a fix!
l
Do you need developer?