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

OAuth2 token missing #3

Open
hjacobs opened this issue Feb 2, 2016 · 0 comments
Open

OAuth2 token missing #3

hjacobs opened this issue Feb 2, 2016 · 0 comments
Assignees
Labels

Comments

@hjacobs
Copy link
Contributor

hjacobs commented Feb 2, 2016

We need to pass OAuth Bearer tokens to the data service.

Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]: Traceback (most recent call last):
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:   File "./app.py", line 98, in run_update
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:     sync_apps(os.getenv('KIO_URL'), access_token)
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:   File "./app.py", line 44, in sync_apps
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:     push_entity(entity)
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:   File "./app.py", line 28, in push_entity
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:     response.raise_for_status()
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:   File "/usr/local/lib/python3.5/dist-packages/requests/models.py", line 840, in raise_for_status
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]:     raise HTTPError(http_error_msg, response=self)
 Feb  2 10:54:28 ip-172-31-143-201 docker/3e8f66e5a05f[840]: requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://xxx.example.org/api/v1/entities/
@hjacobs hjacobs added the bug label Feb 2, 2016
@hjacobs hjacobs self-assigned this Feb 2, 2016
hjacobs added a commit that referenced this issue Feb 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant