Authenticate returns "Sorry, that page doesn't exist!"


#1

Hi,

I’m trying to use the GET oauth/authenticate method, but it returns a “Sorry, that page doesn’t exist!” error. I’m getting an OAuth Request Token correctly, and then redirecting to https://api.twitter.com/oauth/authenticate?oauth_token=[...] and the URL of the page that Twitter takes me to after signing in is https://api.twitter.com/oauth/http%3A%2F%2Fvotd.adjust-media.mooremediasolutions.co.uk%2F?oauth_token=[...]&oauth_verifier=[...]

Cheers,
Warren


#2

Are you by any chance double-encoding the value of oauth_callback when getting your request token?


#3

yes I have the same problem, could you tell me where I can remove this double-encoding


#4

hello, i also have the same problem, can any body help us to resolve this problem please :slight_smile:


#5

but i got this message on the URL =
https://api.twitter.com/oauth/callback.php?oauth_token=OZZDnxxtuFG2zGL4cJJJE8Kv4qBOSlbhVXNuFPLM&oauth_verifier=0gbwEGkahr9hx3263AHhRY5U9iyX6RGjVlHM6M5tIlQ


#6

Make sure you’re specifying a fully qualified URL for your oauth_callback value on the oauth/request_token step. You may be sending a URL fragment instead of an entire URL.


#7

I have the same problem. It’s been working for about a year with no code changes and now all of the sudden it doesn’t work.


#8

I was getting this issue, too.

I was encoding the value for oauth_callback in my authorization header, because that’s what the Example request tells you to do. Straight from the doc:

oauth_callback="http%3A%2F%2Fmyapp.com%3A3005%2Ftwitter%2Fprocess_callback"

Remove the encoding in your header to fix the issue. E.g.

oauth_callback="http://myapp.com:3005/twitter/process_callback"

:joy:

Edit: Actually, I’m using a library to handle the OAuth headers, so it’s quite possible that the value of oauth_callback was double-encoded (I encode it once, the library encodes it a second time), as kurrik mentioned. In which case the docs are correct as is :+1: