You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I figured I'd try out this project again. I'm getting the following error when attempting to create a database. Clearly it says its an authentication error, but I have verified that the credentials in the script are correct.
python3 mkpetlocaldb.py
🐾 · GET app.api.surehub.io/api/me/start: 401 | <ClientResponse(https://app.api.surehub.io/api/me/start) [401 Unauthorized]>
<CIMultiDictProxy('Date': 'Wed, 09 Mar 2022 21:06:21 GMT', 'Content-Type': 'application/json', 'Content-Length': '63', 'Connection': 'keep-alive', 'Server': 'nginx', 'Cache-Control': 'no-cache, private', 'Access-Control-Allow-Origin': 'https://surepetcare.io', 'Vary': 'Origin', 'Content-Encoding': 'gzip', 'Strict-Transport-Security': 'max-age=31536000; includeSubdomains; preload', 'X-Frame-Options': 'SAMEORIGIN', 'X-Content-Type-Options': 'nosniff', 'X-XSS-Protection': '1; mode=block')>
Traceback (most recent call last):
File "mkpetlocaldb.py", line 319, in <module>
asyncio.run(petlocaldb())
File "/usr/lib/python3.8/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/usr/lib/python3.8/asyncio/base_events.py", line 616, in run_until_complete
return future.result()
File "mkpetlocaldb.py", line 307, in petlocaldb
await sp.call(method="GET", resource=spco.MESTART_RESOURCE)
File "/home/ubuntu/.local/lib/python3.8/site-packages/surepy/client.py", line 269, in call
raise SurePetcareAuthenticationError()
surepy.exceptions.SurePetcareAuthenticationError
sys:1: RuntimeWarning: coroutine 'SureAPIClient.get_token' was never awaited
The text was updated successfully, but these errors were encountered:
So I figured I'd try out this project again. I'm getting the following error when attempting to create a database. Clearly it says its an authentication error, but I have verified that the credentials in the script are correct.
The text was updated successfully, but these errors were encountered: