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
Are you sending a user-agent with your request? I know GitHub requires a user-agent with requests.
@Cyb3r-Jok3 that was exactly it - thank you very much 👍