Closed jonDowdle closed 9 years ago
Golly this is an odd one - let me do a bit more digging.
Sure thing. Let me know if I can help at all - I'd love to use the library vs just using request.
@maccman I took a look at this today and it looks like the connection timeout (set with needle) might be to a clue into what is happening.
Here's the script I used to test and here is the output. It always succeeds with a timeout of 5400.
ERROR with timeout 5000: {"code":"ECONNRESET"}
ERROR with timeout 5100: {"code":"ECONNRESET"}
ERROR with timeout 5200: {"code":"ECONNRESET"}
ERROR with timeout 5300: {"code":"ECONNRESET"}
Success with timeout 5400
Status code 200
In testing a few other sites, (SSL and not) they all seem to have issues with a timeout of 5000. Increasing the timeout just a little bit (5200-5400) does succeed though.
Not sure how specific this is to your setup. Why not just bump the timeout to 10000
across the board instead of adding another config option to document?
Works for me.
When trying to find a person, I get a connection issue.
Failing test case:
and the error
but when I just connect using tls.connect() (or request even) - it works.
Some details on my system:
Here is a gist of with my Vagrantfile if you'd like to test in the exact same circumstances. https://gist.github.com/jonDowdle/91c930cc3bb6a324676e