You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Workers for Platforms, Workers Runtime, Wrangler core
What version(s) of the tool(s) are you using?
3.1.1 [Wrangler]
What version of Node are you using?
18.17.0
What operating system are you using?
Linux
Describe the Bug
Title: JSON Parse Error when Using cURL/Wget for Wrangler Login Callback URL on Mac and Remote Linux
Description:
I am using a Mac as my local machine and a Linux Ubuntu as my remote machine. I am trying to log in to Wrangler, a tool for managing Cloudflare Workers, using the command npx wrangler login. This command generates a URL for authentication.
Steps I followed:
I executed npx wrangler login on my local Mac machine, which generated an authentication URL.
I copied the URL and pasted it into my browser on the Mac machine. The browser redirected me to a callback URL starting with localhost:8976.
However, since I need to log in from my remote Linux machine, I followed the documentation, which suggested copying the callback URL and opening a new session on the remote machine using cURL or any equivalent request library.
On the remote Linux machine, I attempted to use cURL and wget to log in. However, I encountered a JSON parse error when trying to use these commands to access the callback URL.
Steps to Reproduce:
Execute npx wrangler login on the local Mac machine.
Copy the generated authentication URL and paste it into the browser on the Mac machine.
Note the callback URL, which starts with localhost:8976.
Open a new session on the remote Linux machine.
Attempt to access the callback URL using cURL or wget.
Expected Behavior:
The cURL or wget request should be successful, and the authentication process should be completed without any JSON parse errors.
Actual Behavior:
When using cURL or wget to access the callback URL on the remote Linux machine, a JSON parse error is encountered.
Error Message:
Please find the attached screenshot of the JSON parse error received while using cURL or wget.
Environment:
Local Machine: Mac
Remote Machine: Linux Ubuntu
Additional Notes:
I have checked the Cloudflare Workers documentation and community forums but haven't found a solution for this issue. I believe this may be a bug or misconfiguration that requires attention from the developers.
Thank you for looking into this issue and providing a resolution to this problem. If any additional information is needed, please let me know.
npx Wrangler login
cURL Response:
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered:
Which Cloudflare product(s) does this pertain to?
Workers for Platforms, Workers Runtime, Wrangler core
What version(s) of the tool(s) are you using?
3.1.1 [Wrangler]
What version of Node are you using?
18.17.0
What operating system are you using?
Linux
Describe the Bug
Title: JSON Parse Error when Using cURL/Wget for Wrangler Login Callback URL on Mac and Remote Linux
Description:
I am using a Mac as my local machine and a Linux Ubuntu as my remote machine. I am trying to log in to Wrangler, a tool for managing Cloudflare Workers, using the command
npx wrangler login
. This command generates a URL for authentication.Steps I followed:
npx wrangler login
on my local Mac machine, which generated an authentication URL.localhost:8976
.However, since I need to log in from my remote Linux machine, I followed the documentation, which suggested copying the callback URL and opening a new session on the remote machine using
cURL
or any equivalent request library.On the remote Linux machine, I attempted to use
cURL
andwget
to log in. However, I encountered a JSON parse error when trying to use these commands to access the callback URL.Steps to Reproduce:
npx wrangler login
on the local Mac machine.localhost:8976
.cURL
orwget
.Expected Behavior:
The
cURL
orwget
request should be successful, and the authentication process should be completed without any JSON parse errors.Actual Behavior:
When using
cURL
orwget
to access the callback URL on the remote Linux machine, a JSON parse error is encountered.Error Message:
Please find the attached screenshot of the JSON parse error received while using
cURL
orwget
.Environment:
Additional Notes:
I have checked the Cloudflare Workers documentation and community forums but haven't found a solution for this issue. I believe this may be a bug or misconfiguration that requires attention from the developers.
Thank you for looking into this issue and providing a resolution to this problem. If any additional information is needed, please let me know.
npx Wrangler login
cURL Response:
Please provide a link to a minimal reproduction
No response
Please provide any relevant error logs
No response
The text was updated successfully, but these errors were encountered: