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

500PX error response: status code = 401 when favourite post #6

Closed
rhawidantas-zz opened this issue Jul 26, 2016 · 7 comments
Closed

Comments

@rhawidantas-zz
Copy link

I am having some trouble with the favourite post:
...OAuthHandler - set_request_token - xauth set_access_token and so on

for s in popular['photos']:
    photo_id = s['id']
    api.photos_favorite_post(id=photo_id)

So right after the first loop I get the error: 500PX error response: status code = 401

I tried re setting the access token by handler.set_access_token(xauth_token.key, xauth_token.secret)
but no avail.

Any ideas?

@rhawidantas-zz
Copy link
Author

Upon further inspection I found out that test case for photo favourites are not passing. I went to the 500px page to check which endpoints are available and seems that favourite has been removed from it can you confirm?

Which makes it even more strange since when using the console (https://apigee.com/vova/embed/console/api500px) it is possible to make a post to that endpoint.

Any ideas?

@vovko
Copy link

vovko commented Dec 27, 2016

@akirahrkw @rhawidantas can confirm, favorite and vote actions are getting 401 even though requests are signed. Tried both Oauth and Xauth, all authed post actions work except Vote and Favorite

@akirahrkw
Copy link
Owner

@vovko @rhawidantas thanks for letting me know, somehow I was missing this issue... let me check soon.

@akirahrkw
Copy link
Owner

@vovko @rhawidantas sorry for late reply, yes the test case is not working properly. I will fix soon.

@vovko
Copy link

vovko commented Jan 11, 2017

@akirahrkw great, thank you!

@akirahrkw
Copy link
Owner

@vovko @rhawidantas
just pushed v0.3(latest master branch)
https://github.com/akirahrkw/python-500px/tree/0.3

I think there were some minor changes on the API (how to pass parameters) before.

@vovko
Copy link

vovko commented Jan 24, 2017

@akirahrkw thank you so much for fixing this! 🙏 💯 🥇

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

3 participants