tumblr / docs

Tumblr's public platform documentation.
Apache License 2.0
109 stars 27 forks source link

/unfollow endpoint wrong answer when blog is password-protected #75

Closed sorin-costea closed 2 years ago

sorin-costea commented 2 years ago

(I assume it's a password-protected blog because when looking at https://username.tumblr.com I get redirected to https://www.tumblr.com/blog_auth/username and presented with a white page with a captcha and a password field)

Anyway, when trying to unfollow this blog via the API, the /user/unfollow API returns 200 OK with this body:

{"meta":{"status":200,"msg":"OK"},"response":{"blog":false}}

Which of course cannot be parsed - the "blog" should be a blog object... or if not, should be null or empty or whatever - not a boolean. Or is /unfollow not supposed anymore to return the blog object?

cyle commented 2 years ago

Which of course cannot be parsed - the "blog" should be a blog object... or if not, should be null or empty or whatever - not a boolean. Or is /unfollow not supposed anymore to return the blog object?

I can get to that blog just fine, but it looks like you may have found a bug -- we should be returning an empty object in that case. We'll get this fixed up! Thank you for reporting it.

sorin-costea commented 2 years ago

Haha no it wasn't "username" I just didn't want to publish somebody else's blog :) Thank you!