-
-
Notifications
You must be signed in to change notification settings - Fork 415
Simbad query and query_id fail #2244
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
Comments
I can't reproduce this error. It may have been a temporary service issue. Please try again. If it persists, try querying with the cache disabled: from astroquery.simbad import Simbad
obj=Simbad.query_object('Kepler-235', cache=False) If that works (and querying with cache enabled does not), you will need to clear your cache. |
Hi, thank you so much for taking the time to look into it. I have no optional argument 'cache' in |
(this was prompted by astropy#2244, which revealed that query_X was not passing kwargs to query_X_async, including the cache argument)
Remove files in your This conversation has revealed a bug, though: |
Removing cache files worked like a charm, thank you so much! |
Hello, do you think that we could have a maximum duration for the cache ? For instance, like 1 day ? |
I have the same issue as described by @Tonione, this time for |
@aoberto cache expiration has been a wishlist item for a while. However, the problem reported here seems to be a real one involving caching failed queries; we should never cache failed queries. |
@aframosp Ho yes, I found the origin of the NullPointer, and fix it (I hope) at least it should avoid the wrong behavior, sorry for that. |
Not caching failures is both a bit easier and more critical. Even though the upstream part of this issue is solved, I'd like to leave it open until I fix the caching issue. |
#2187 was the solution to this issue. I'm not entirely sure, but this issues may be solved already. Without a clearer MWE (which is hard to make, since the issue is fundamentally upstream), it is hard to test. @aoberto is there a query we could run against SIMBAD that would reliably fail with exactly this error so we can add a test of how astroquery handles the error? |
I have encountered trouble with simple Simbad queries. I'm on python3.8 on mac OS, with astropy (5.0) and astroquery (0.4.4).
Simple queries such as
from astroquery.simbad import Simbad obj=Simbad.query_object('Kepler-235')
or
from astroquery.simbad import Simbad name=Simbad.query_objectids('Kepler-235')
result both in the same error:
/opt/anaconda3/lib/python3.8/site-packages/astroquery/simbad/core.py:135: UserWarning: Warning: The script line number 3 raised an error (recorded in the
errorsattribute of the result table): java.lang.NullPointerException
Did anyone encounter the same issue? I
The text was updated successfully, but these errors were encountered: