cloudflare / cloudflare/workers-sdk
Can't login with VPN `wrangler pages deploy`
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.5k
- Avg merge
- 3d 8h
- Merged PRs (30d)
- 186
Description
### What versions & operating system are you using?
macOS Version 26.0.1 (25A362), Apple M4 Max
### Please provide a link to a minimal reproduction
_No response_
### Describe the Bug
When using a VPN, the `wrangler pages deploy` command throws an error. If I log in without the VPN and then run it afterward, the issue doesn’t occur.
This has been going on for years with Outline VPN (haven't tested others).
Step 1:
After clicking Allow button:
### Please provide any relevant error logs
Attempting to login via OAuth...
Opening a link in your default browser: https://dash.cloudflare.com/oauth2/auth?response_type=code&client_id=...
✘ [ERROR] The body of the response was HTML rather than JSON. Check the debug logs to see the full body of the response.
✘ [ERROR] It looks like you might have hit a bot challenge page. This may be transient but if not, please contact Cloudflare to find out what can be done. When you contact Cloudflare, please provide your Ray ID: 99388266e9568d73-HEL
This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise rejected with the reason:
Error: Invalid JSON in response: status: 403 Forbidden
at getJSONFromResponse (/Users/.../node_modules/wrangler/wrangler-dist/cli.js:109987:11)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async exchangeAuthCodeForAccessToken (/Users/.../node_modules/wrangler/wrangler-dist/cli.js:109581:31)
at async Server. (/Users/.../node_modules/wrangler/wrangler-dist/cli.js:109737:30)
Contributor guide
Assessment
This issue has not been assessed yet.