Skip to content

Wrangler login callback-port and callback-host options broken #11959

@mrxbox98

Description

@mrxbox98

What versions & operating system are you using?

System:
OS: Linux 5.15 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
CPU: (12) x64 AMD Ryzen 5 3600 6-Core Processor
Memory: 53.99 GB / 62.71 GB
Container: Yes
Shell: 5.1.16 - /bin/bash
Binaries:
Node: 20.13.1 - /root/.nvm/versions/node/v20.13.1/bin/node
npm: 10.5.2 - /root/.nvm/versions/node/v20.13.1/bin/npm
bun: 1.1.19 - /root/.bun/bin/bun

Please provide a link to a minimal reproduction

N/A

Describe the Bug

  1. Run npx wrangler login with either the callback-host or callback-port options or both.
  2. Go to the url it tries to open
  3. See this error
Image

Please provide any relevant error logs

The url that shows the error is:

https://dash.cloudflare.com/oauth/error?error=invalid_request&error_description=The+request+is+missing+a+required+parameter%2C+includes+an+invalid+parameter+value%2C+includes+a+parameter+more+than+once%2C+or+is+otherwise+malformed&error_hint=The+%22redirect_uri%22+parameter+does+not+match+any+of+the+OAuth+2.0+Client%27s+pre-registered+redirect+urls.

Metadata

Metadata

Labels

wranglerRelating to the Wrangler CLI tool

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions