problem when loading star
cpiaulet opened this issue · 3 comments
cpiaulet commented
Hi,
I have the latest version of kplr installed with python 3.
When I run the following bit of code from the tutorial:
import kplr
client = kplr.API()
# Find a KOI.
koi = client.koi(952.01)
print(koi.koi_period)
# This KOI has an associated star.
star = koi.star
This last line produces an error
"
APIError: The API returned code 200 for URL: 'https://archive.stsci.edu/kepler/kic10/search.php?kic_kepler_id=9787239&max_records=1&action=Search&outputformat=JSON&coordformat=dec&verb=3' with message:
No JSON object could be decoded.
"
Has anyone encountered this issue, and do you know how to solve it?
Thanks,
Caroline
vanshreee commented
Hi Caroline, I've had the same error
APIError: The API returned code 200 for URL: 'https://archive.stsci.edu/kepler/kic10/search.php?kic_kepler_id=11029516.0&max_records=1&action=Search&outputformat=JSON&coordformat=dec&verb=3' with message:
No JSON object could be decoded.
when I did
client = kplr.API()
star = client.star(kicid)
I'm not sure how to solve it either
vanshreee commented
Hello @dfm
please let me know about this issue.. I am still having the same problem. Thank you!
dfm commented
@vanshreee: It's possible that the change I just pushed to the main branch will do it for you, but I'd recommend using astroquery
or lightkurve
instead of kplr
because I'm not supporting it anymore.