"Error reading message" when trying to get OAuth request token

I am trying to develop a desktop application for accessing the API open by Groundspeak for geocaching.com. The API requires the use of OAuth.

Finally, finding out why my message signature was rejected (I had to encode my callback URL twice, after reading somewhere that causes double encoding), now I get the following error from Groundspeak when I try to get the request marker:

oauth_error_message=Error%20while%20reading%20message%20%27DotNetOpenAuth.OAuth.Messages.UnauthorizedTokenRequest%27%20parameter%20%27oauth_callback%27%20with%20value%20%27http%253A%252F%252Fwww.mysite.com%252F%27.

Not a very descriptive error message. What is the problem? Groundspeak uses DotNetOpenAuth on its server. It looks like my callback url may cause some problems, but I don't know what.

I should probably also say that I'm developing a desktop application, so the callback url is really invalid. It points to a website that I have, but this website does not know about OAuth at all. If I omit the callback url, I get the error message "The callback url is not present or is invalid" or something similar.

+5
source share
2 answers

I don't know anything about Groundspeak, but I would suggest that they require you to register the application callback URL before using OAuth. At least Google and Microsoft do this using their OAuth APIs. Find some developer settings on Groundspeak.

+1
source

All Articles