mirror of
https://github.com/imputnet/cobalt.git
synced 2026-05-22 22:39:42 -05:00
[GH-ISSUE #1419] [Twitter] error.api.fetch.empty on age-restricted content #12236
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fclivaz42 on GitHub (Aug 17, 2025).
Original GitHub issue: https://github.com/imputnet/cobalt/issues/1419
bug description
After setting my cookies for the twitter service on a self-hosted instance, i still am unable to fetch age-restricted content, being greeted with
error.api.fetch.empty.I have set my cookies in the cookies.json file and i know they are being loaded because i set a dummy cookie for a site that doesn't exist and the console shows me that it ignored that unknown service. I have tried to only set ct0 and auth_token or all of the available cookies, with no avail.
reproduction steps
api.error.fetch.emptyappears!screenshots
links
platform information
self-hosted instance (11.4.1, docker container freshly pulled)
additional context
No response
@abishek77s commented on GitHub (Sep 19, 2025):
The link works on the live website without any issue, did you provide the right link because it was a simple SFW animation.
@dumbmoron commented on GitHub (Sep 19, 2025):
this was likely resolved by #1436
@fclivaz42 commented on GitHub (Sep 27, 2025):
Just as a clarification: which are the necessary cookies for Coblat to run properly? I would like to try again (still getting
error.api.fetch.empty) and report results properly.I did! I tried it personally as well, opening in an icognito tab resulted in Twitter saying that the link did not exist. Using my logged account worked, though. Yet self-hosted Cobalt resulted in the error. It is a SFW animation but it somehow got recognized as age-restricted?
@fclivaz42 commented on GitHub (Jan 2, 2026):
Hello again @dumbmoron . This issue hasnt been solved since that day and even though the main cobalt.tools website works properly, trying to pull links twitter considers 18+ (which includes art references id like to save...) through a self-hosted instance ends up in the
api.fetch.emptyerror i mentionned.I set the
auth_tokenandct0variables in cookie.json just like the docs and yet I am getting theapi.fetch.empty.this is what opening the link i sent above ( https://twitter.com/coderonex/status/1954811243606184133 ) does. So twitter considers it 18+.
Yet trying to pull it from the self-hosted instance (v11.5) results in the error I mentionned, as shown above (command truncated to hide API key).
I genuinely have NO idea what I am doing wrong or what is happening (because if i recall correctly cobalt used the proper age restricted error back then?) hence why I am here.
@fclivaz42 commented on GitHub (Feb 24, 2026):
Update: Somehow it's fixed now.