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

Faraday::ConnectionFailed (Failed to open TCP connection to api.clerk.dev:443 (execution expired)) #44

Open
mu4farooqi opened this issue Feb 6, 2024 · 0 comments

Comments

@mu4farooqi
Copy link

mu4farooqi commented Feb 6, 2024

I'm not sure if this is a library issue or a Docker issue but https://api.clerk.dev/v1/jwks fails sometimes with the error given in the title. Looks like a DNS issue but if it's then subsequent requests should fail as well. It's also hard to test this because jwks is cached after first request.

Environment: Development

Following are the logs.

| 14:53:55 rails.1 | I, [2024-02-06T14:53:55.847440 #28]  INFO -- request: GET https://api.clerk.dev/v1/jwks
| 14:53:55 rails.1 | I, [2024-02-06T14:53:55.850435 #28]  INFO -- request: User-Agent: "Clerk/3.0.0; Faraday/2.9.0; Ruby/3.3.0"
| 14:53:55 rails.1 | X-Clerk-SDK: "ruby/3.0.0"
| 14:53:55 rails.1 | Authorization: "Bearer [SECRET]"


| 14:54:00 rails.1 |   
| 14:54:00 rails.1 | Faraday::ConnectionFailed (Failed to open TCP connection to api.clerk.dev:443 (execution expired)):

It's also hard to reproduce it. Mostly when I left my docker container with Rails app running overnight and make the first request in the morning, it fails. After that, even if I restart the container multiple times, request goes through without any issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant