© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•3w ago•
4 replies
Dryanix

Worker fetch always return code 429

Workers
Hello,
I have a simple typescript worker which authentication to Firebase google service acount to fetch a message.
For that I first need to get the token which I receive from https://oauth2.googleapis.com/token from my service-account.json.

This fetch is simple like so:
const res = await fetch("https://oauth2.googleapis.com/token", {
      method: "POST",
      headers: { "Content-Type": "application/x-www-form-urlencoded" },
      body: form
    });
const res = await fetch("https://oauth2.googleapis.com/token", {
      method: "POST",
      headers: { "Content-Type": "application/x-www-form-urlencoded" },
      body: form
    });

But then the response is not ok and I get status code 429 : too many request.

I also tried to create / deploy a new worker with the same result. I am using free plan.
Note: the exact same fetch works perfectly when sent from another origin (my static website)

Any clue of what is happening ?

Many thanks in advance.
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Worker Subrequests 429 [Regional]
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago
Worker to Worker fetch
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
3y ago
Fetch requests in a Worker that is invoked from Service Binding always return 522
Cloudflare DevelopersCDCloudflare Developers / workers-and-pages-help
2y ago