Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: npx wrangler login from remote machine still or again broken #5679

Open
newsve opened this issue Apr 22, 2024 · 2 comments
Open

🐛 BUG: npx wrangler login from remote machine still or again broken #5679

newsve opened this issue Apr 22, 2024 · 2 comments
Labels
bug Something that isn't working

Comments

@newsve
Copy link

newsve commented Apr 22, 2024

Which Cloudflare product(s) does this pertain to?

Wrangler core

What version(s) of the tool(s) are you using?

3.51.2

What version of Node are you using?

20.12.1

What operating system and version are you using?

macOS 14.4.1

Describe the Bug

Observed behavior

Please describe.

  1. Open Terminal on macOS
  2. ssh into your Ubuntu 22.04 VPS
  3. npx wrangler login
  4. Copy the link and paste it in Chrome Version v124
  5. Approve
  6. Copy link
  7. Paste link into second terminal on Ubuntu VPS
  8. get:
▲ [WARNING] Received query string parameter doesn't match the one sent! Possible malicious activity somewhere.

Fwiw, I tried every possible permutation of the curl command.

Expected behavior

A successful login

related but closed again: #2874

Please provide a link to a minimal reproduction

Follow aforementioned steps closely.

Please provide any relevant error logs

when running curl -v I got:

*   Trying 127.0.0.1:8976...
* connect to 127.0.0.1 port 8976 failed: Connection refused
*   Trying ::1:8976...
* Connected to localhost (::1) port 8976 (#0)
> GET /oauth/callback?code=[redacted] HTTP/1.1
> Host: localhost:8976
> User-Agent: curl/7.81.0
> Accept: */*
@newsve newsve added the bug Something that isn't working label Apr 22, 2024
@Frog-kt
Copy link

Frog-kt commented May 16, 2024

@newsve
Maybe a little different, but I have a similar problem on VS Code's DevContainer.

@bgbruno
Copy link

bgbruno commented May 19, 2024

maybe help you this workaround
https://developers.cloudflare.com/workers/wrangler/commands/#use-wrangler-login-on-a-remote-machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working
Projects
Status: Untriaged
Development

No branches or pull requests

3 participants