cloudflare / cloudflare/cloudflared
🐛`cloudflared access login` works but returns timeout error
- Dominant language
- Go
- Stars
- 15.6k
- Forks
- 1.4k
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the bug**
When using `cloudflared access login ` to authenticate on a client, after successfully opening up a browser window for authentication (if token isn't already cached), it returns the following error instead of displaying the token. Despite the error, the token is successfully received and the tunnel can be established.
`2022-08-23T00:52:48Z ERR Could not verify token error="Get \"https://test-gateway.xxxx.com\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)"`
**To Reproduce**
Steps to reproduce the behavior:
1. Create tunnel endpoint on a server (configure via command line or web UI)
2. Create and configure application in Cloudflare Zero web portal
3. Attempt to authenticate using `cloudflared access login `
If it's an issue with Cloudflare Tunnel:
4. Tunnel ID: 6a27afe6-987e-4c35-abd3-0b35eb813223
5. cloudflared config: ?
**Expected behavior**
The command `cloudflared access login ` should return the token and shouldn't be displaying an error.
**Environment and versions**
- OS: Windows 11
- Architecture: Intel x64
- Version: 2022.8.2
**Additional context**
If I restart the tunnel service/daemon on the server end and try authenticating on the client, it works as expected for about 10 seconds but then starts spitting out the error again. I believe it may be a problem on the server-end but I have no idea how to troubleshoot it.
Contributor guide
Assessment
This issue has not been assessed yet.