This project has moved and is read-only. For the latest updates, please go here.

Search Producing 404 Errors

May 26, 2013 at 3:58 AM
I'm able get tweets from my timeline using VB.NET with:
"Dim tweets = From tweet In twitterCtx.Status Where tweet.Type = StatusType.Home"
But when I try doing a search with:
"Dim srch = (From search In twitterCtx.Search Where search.Type = SearchType.Search And search.Query = "ABC" And search.Count = 7 Select search).SingleOrDefault"

I get an error:
"Sorry, that page does not exist"
Inner Exception="The remote server returned an error: (404) Not Found."

Is there something I'm doing wrong?
May 26, 2013 at 6:19 PM

I tried the same exact query, but didn't have a problem. There's a demo project in the downloadable source code that you can compare against your code to see if there's a difference.

May 28, 2013 at 4:39 PM
Hi Joe,

Thanks for the suggestion on the demo. That helped.

Solved the problem:
When instantiating the TwitterContext object I was passing in URL's for "baseUrl" and "searchUrl".
[Using twitterCtx = New TwitterContext(auth, "", "")]

Taking out the URL's fixed the problem
[Using twitterCtx = New TwitterContext(auth)]
May 28, 2013 at 5:25 PM
Right, the URLs. There are still a lot of examples that include these and they aren't necessary anymore. In fact, those are the old Twitter API v1.0 URLs, which won't even work after 6/11/2013. Thanks for mentioning this because I'm sure a lot of other people will encounter the same problem.