Skip to content

Conversation

gafitescu
Copy link

Local Development (pnpm run dev)

Node.js runtime: Automatically adds a default User-Agent header like node-fetch/X.X.X or similar

Automatic headers: Node.js HTTP libraries include standard headers that GitHub API accepts

Permissive: GitHub API is more lenient with requests from development environments

Cloudflare Workers (Wrangler)

V8 runtime: Uses the Web API fetch() which doesn't automatically add User-Agent headers

Stricter validation: GitHub API enforces User-Agent header requirements more strictly for production-like environments

Security: Cloudflare Workers strip or modify certain headers for security reasons

@gafitescu gafitescu changed the title fix - when Bolt run on wrangler there are not default User-Agent headers when request to Github are made fix: when Bolt run on wrangler there are not default User-Agent headers when request to Github are made Sep 9, 2025
@Stijnus Stijnus self-assigned this Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants