def login(self, apikey):
args = { 'apikey' : apikey }
result = self.send_request('login', args)
sess = result.get('session')
#print('Got session:', sess)
if not sess:
raise RequestError('no session in result')
self.session = sess
And produces this error (apikey X'ed out for privacy, but in the actual error it is the correct apikey for me, I've checked):
File "/Users/alexistudor/PycharmProjects/photometry-plus/photometry.py", line 569, in getWCS
astrometry.login(key)
File "/Users/alexistudor/PycharmProjects/photometry-plus/client/client.py", line 120, in login
result = self.send_request('login', args)File "/Users/alexistudor/PycharmProjects/photometry-plus/client/client.py", line 110, in send_request
raise RequestError('server error message: ' + errstr)client.client.RequestError: server error message: failed to parse JSON: "{"apikey": "XXXXXXXXX"}"
This code was working perfectly before, and to my knowledge, {"apikey" : "XXXXXXXX"} is the correct formatting for the login JSON. Any idea why it isn't working anymore?
Sincerely,
Alexis Tudor