Take the 2-minute tour ×
Stack Apps is a question and answer site for apps, scripts, and development with the Stack Exchange API. It's 100% free, no registration required.

I started upgrading to v1.1 and have an interesting problem I can't seem to resolve.

When calling http://stackauth.com/1.0/sites using a .Net WebClient I receive responses successfully and I am able to parse the results.

When calling http://stackauth.com/1.1/sites using a .Net WebClient I receive a 404 Server Error. The same happens when making a call to http://stackauth.com/1.1/users/1a41210e-1eea-47ad-a5d4-cacb00c6d027/associated for any accounts associated to me.

The code between the two calls have not changed at all. Tracing the request in fiddler, it confirms the 404, however clicking on the link directly in a browser does however display the data as requested.

Interestingly, making a call to stats for 1.1 on any site outside of StackAuth seems to work perfectly.

Am I missing something important when making request to the 1.1 API on StackAuth?

Solution

For future reference. I was using UploadString and POST in the WebClient instead of using DownloadString and GET. Something I completely overlooked.

share|improve this question
add comment

1 Answer 1

up vote 3 down vote accepted

Are you by any chance using POST?

For 1.0 this works. But not for 1.1 (though GET works fine for both 1.0 and 1.1).

(I have no idea if it should work though.)

share|improve this answer
2  
Awesome. Between you and Rebecca I solved the problem! –  Diago Feb 14 '11 at 17:55
add comment

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .