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

error SSL_connect when making an API call #441

Open
bienflorencia opened this issue May 17, 2024 · 1 comment
Open

error SSL_connect when making an API call #441

bienflorencia opened this issue May 17, 2024 · 1 comment

Comments

@bienflorencia
Copy link

Hi, I'm running a call to the API to detect new species recorded on the platform (similar to what I do here).
I have included a sleep argument to pause the call for 10 seconds every 10 queries. However, I'm getting the following error:

Error in curl::curl_fetch_memory(url, handle = handle) : LibreSSL SSL_connect: SSL_ERROR_SYSCALL in connection to api.inaturalist.org:443

Any ideas on how to get past this issue?
Thanks!

@HannesOberreiter
Copy link
Contributor

HannesOberreiter commented Jun 10, 2024

I don't think this is directly related to the API.

You may want to checkout this StackOverflow thread: https://stackoverflow.com/questions/48987512/ssl-connect-ssl-error-syscall-in-connection-to-github-com443

The first which talks about IPv6, which could be your issue as the api does not have an IPv6 record or the one talking about installing CURL with openSSL and not LibreSSL as you are currently running curl with libreSSL.

PS: checked your code from the link, you may want to add an user-agent as mentioned in the official docs: https://www.inaturalist.org/pages/api+recommended+practices

Cheers
Hannes

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

2 participants