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

jumblr: Get avatar for blog. RequestBuilder.getRedirectUrl(path) throws JumblrException (response code 302. not 301) #112

Open
sergeyinsart opened this issue Sep 17, 2017 · 1 comment
Assignees

Comments

@sergeyinsart
Copy link

sergeyinsart commented Sep 17, 2017

When trying to get avatar for specific blog we always get Jumblr exception here (even though response contains correct Location header):

if(response.getCode() == 301) {
return response.getHeader("Location");
} else {
throw new JumblrException(response);
}

as response code is 302. not 301.

Stack trace:
Caused by: com.tumblr.jumblr.exceptions.JumblrException: Found at com.tumblr.jumblr.request.RequestBuilder.getRedirectUrl(RequestBuilder.java:49) at com.tumblr.jumblr.JumblrClient.blogAvatar(JumblrClient.java:271) at com.tumblr.jumblr.types.Blog.avatar(Blog.java:89) at com.tumblr.jumblr.types.Blog.avatar(Blog.java:93)

@komapa
Copy link

komapa commented Sep 17, 2017

Thank you for the report. We indeed updated the response code to 302 and need to update the library to match.

cc: @ceyko

@ceyko ceyko self-assigned this Oct 4, 2017
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