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

Listing yats returns 401 error #5

Open
z0rg0n opened this issue Mar 12, 2022 · 1 comment
Open

Listing yats returns 401 error #5

z0rg0n opened this issue Mar 12, 2022 · 1 comment

Comments

@z0rg0n
Copy link
Owner

z0rg0n commented Mar 12, 2022

The API documentation from yat states that GET /emoji_id only requires apiKey authentication to perform the operation.

I'm passing the apiKey required with create_xapi_head in credentials.py yet it responds with:

<Response [401]>
Owned yats:
{'error': 'Unauthorized: Missing auth token'}

In the current build I can get around this by passing the 'Authorization' header with create_zapi_head in credentials.py instead but this will stop working after the generated access token expires after 15 minutes.

The delete function seems to be suffering from the same issue but cannot be worked around with create_zapi_head.
I know I've gotten the delete function to work in the past so I must have bungled something.

@z0rg0n z0rg0n changed the title Listing yats returns 401 error Listing yats returns 401 error and cannot delete Mar 12, 2022
@z0rg0n
Copy link
Owner Author

z0rg0n commented Mar 13, 2022

Delete function issue was caused by using post instead of patch. Fixed that part of ticket.

First part of the issues is still an issue.

@z0rg0n z0rg0n changed the title Listing yats returns 401 error and cannot delete Listing yats returns 401 error Mar 13, 2022
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