Simple Worker 403 fetching https://api.github.com/graphql

I've double and triple checked tokens, access, etc and verified working with Postman and Node Scripts that mimic the worker. Unfortunately, I still get 403's both locally in a wrangler env and in the production env. Error: API responded with status 403 at Object.fetch (file:///Users/miz/Dev/githubprojects-everhour-reporting/worker-githubprojectsreport/src/index.js:23:17) at async jsonError (file:///Users/miz/Dev/githubprojects-everhour-reporting/worker-githubprojectsreport/node_modules/wrangler/templates/middleware/middleware-miniflare3-json-error.ts:22:10)
2 Replies
Cyb3r-Jak3
Cyb3r-Jak313mo ago
Are you sending a user-agent with your request? I know GitHub requires a user-agent with requests.
Michael
MichaelOP13mo ago
@Cyb3r-Jok3 that was exactly it - thank you very much 👍
Want results from more Discord servers?
Add your server