Skip to content
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

Unable to create local database #11

Open
flyize opened this issue Mar 9, 2022 · 0 comments
Open

Unable to create local database #11

flyize opened this issue Mar 9, 2022 · 0 comments

Comments

@flyize
Copy link

flyize commented Mar 9, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant