How to solve the error when executing "wrangler login" in "wrangler"

For Workes & Pages, what is the name of the domain?

lilaiajg.us.kg

What is the error number?

ERR_CONNECTION_REFUSED

What is the error message?

localhost connection refused

What is the issue or error you’re encountering

After executing “wrangler login”, the page redirected after the login page allows cannot connect

What steps have you taken to resolve the issue?

i have no idea

What are the steps to reproduce the issue?

Execute “npx wrangler login” in the command line, and then allow login on the pop-up page. This will happen when redirected.

Screenshot of the error

i get an nxdomain error. Can you share a screenshot of your DNS records (obscure origin IP), records are here, https://dash.cloudflare.com/?to=/:account/:zone/dns

Wrangler on your computer should be listening for that callback after you authenticate in the dashboard. And the error message indicates that Wrangler is unreachable on that port.

Has this ever worked for you?

Was Wrangler still running after you completed the authentication in the dashboard?

Do you have a local firewall on your computer that may be blocking some connections?

While Wrangler is waiting for that redirect, it should have a port open that looks something like this in netstat -a :

tcp6 0 0 localhost.8976 *.* LISTEN

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.