Workers from X API fails due to invalid response (just "IPv6" plain text)

I have a Cloudflare Workers app and it periodically calls X api every 30 minutes. Since July 3 2025 05:30UTC, the workload began failed due to ";SyntaxError: Unexpected token 'I', "IPv6" is not valid JSON" error. I found the response from api.x.com is just "IPv6" string with 403 http status. I tried to call X API on my local env (WSL Ubuntu) and it worked. So I guess the issue is on Cloudflare Workers. Does someone see same issue?
15 Replies
RM
RMOP•5mo ago
You mean I should ask X support? Honestly (and personally) I don't expect X support can handle the issue appropriately. As you say, migrating the workload to other platform would be better than asking X support... But I'm wondering why it happened suddenly today. Does it mean X didn't use Cloudflare until yesterday? I found same issue is already reported on here: https://devcommunity.x.com/t/getting-403-ipv6-error-from-cloudflare/245157 Okay thanks I'll keep an eye on the community thread and consider the workload migration if it takes long time to fix
AlexVasile26
AlexVasile26•5mo ago
In case it helps anyone: I think I fixed our usecase by proxing the request through Netlify. I've deployed a small Netlify function just for X API calls which runs on AWS Lambda and handles IPv4/IPv6 better
Tony Leung
Tony Leung•5mo ago
is there any better way like forcing IPv4 on cloudflare workers or setting a rule in cf zones so any request to a domain will be IPv4?
RM
RMOP•5mo ago
So, unfortunately it seems that having a proxy (discussed on here and like above ) is the only way to avoid the issue. Honestly I don't want to do that. I would move the workload to another platform
Tony Leung
Tony Leung•5mo ago
:feelsbadman: that's really painful... I seems like twitter does not notice this problem
RM
RMOP•5mo ago
Yeah I think so too. But I don't think Twitter would handle the issue even if Twitter found out. Twitter might not think it is even a problem. After Elon's acquisition, Twitter keeps corrupting
hellocryptokr
hellocryptokr•5mo ago
Ugh was trying to find out why twitter logins were failing suddenly good to know it's not a me problem at least..
Tony Leung
Tony Leung•5mo ago
currently my only way is making a twitter proxy then deploy it to a free hosting like render.com but with only 100GB bandwidth and a super weak instance currently that's the best way that I can think of another way is making use of oracle free tier
RM
RMOP•5mo ago
My scheduler job (runs every 30 minutes) exited without errors at July 4 11:00 UTC. Refreshing OAuth2 token succeeded. The error seems to be gone. X has fixed??
Tony Leung
Tony Leung•5mo ago
ooh? I was taking a nap and many happy returns? 😄
RM
RMOP•5mo ago
Yeah I don't see any errors so far since July 4 11:00UTC. I'm not sure if it's temporary or not. We might want to keep an eye for a while. I hope it could be permanent solution
RM
RMOP•5mo ago
yup creating simple text tweet also succeeded: https://x.com/ricemountainer/status/1941152147334475867
RM (@ricemountainer)
from Workers to https://t.co/LaPPCTwdbD test hell ya!
X
Tony Leung
Tony Leung•5mo ago
this guy (from Cloudflare) confirmed that this problem should be fixed by now. It seems like Twitter has misconfigured their networking that accidentally blocks IPv6 requests from cloudflare's cross zone IP.
No description
Tony Leung
Tony Leung•5mo ago
i was thinking of scheduling Twitter worker to other place to mitigate the problem
RM
RMOP•5mo ago
I see. Thank you. I'm glad that I didn't need to make a proxy...

Did you find this page helpful?