-
-
Notifications
You must be signed in to change notification settings - Fork 406
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
Simbad ConnectionError #1408
Comments
Maybe that deals with following assertion in the SimbadClass documentation:
I will try with |
Ok, it seems to solve 104 error, but know it fails with
I may use try except to retry on ConnectionError ? |
There is still work to be done on vectorizing the modules, however e.g. A workaround would be indeed adding some more time between the queries. And a welcomed enhancement for astroquery would be to vectorize |
(Example how it was done for query_region: #833) |
Yes, I thought to work with vector but I need to do source by source since the names have do be tested and adapted (eg: 'scox1' is not recognised by the resolver, so I changed to 'sco x-1' which is understandable by Simbad). I added 5 seconds between each queries (that solves I will continue to investigate with time. |
Hello
The limitation is above 6 queries in one second, so your sleep of 5 second is quite enough. If you give me your IP address I can investigate in Simbad logs to check what happens.
Anaïs
Le 5 avr. 2019 à 23:33, à 23:33, dagnic <[email protected]> a écrit:
…Yes, I thought to work with vector but I need to do source by source
since the names have do be tested and adapted (eg: 'scox1' is not
recognised by the resolver, so I changed to 'sco x-1' which is
understandable by Simbad).
I added 5 seconds between each queries (that solves
`ConnectionResetError`) but not `RemoteDisconnected`. So I try and
retry one time at exception and that works. But retry occurs each ~ 5
reqests.
I will continue to investigate with time.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
#1408 (comment)
|
Thanks, I had a many requests within an imported function, in which I forget to add sleep. Now it works perfectly ! |
Hello! |
Hello,
I'm trying to query Simbad to get many sources ids. Sometimes, it fails with:
ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))
That's the case for example with
Simbad.query_objectids('1es0347-121')
.It seems that it is time dependant. I waited a moment then retry and the error occur on another source.
Do you have any idea ?
Thanks!
The text was updated successfully, but these errors were encountered: