twitterstream icon indicating copy to clipboard operation
twitterstream copied to clipboard

Connection timeout

Open eviltwin opened this issue 15 years ago • 5 comments

I'm getting connection timeouts when trying to use the library, even using just the example: dial tcp 128.242.250.183:80: connection timed out

This happens on the call to client.User(). Copying the userUrl and pasting it in a browser also results in a timeout. I noticed in the twitter docs that they list this url as https, which does result in a working connection and an auth challenge. I attempted naively changing the urls in the source code to https but this didn't didn't work either. I'd greatly appreciate some feedback/guidance on this.

eviltwin avatar Nov 18 '10 17:11 eviltwin

In the user stream documentation, there's a bullet point:

  • HTTPS, OAuth and JSON only. Consider the delimited=length option.

So it seems like we need to connect through https.

hoisie avatar Nov 19 '10 18:11 hoisie

Do you have any plans to patch this sometime soon?

eviltwin avatar Nov 25 '10 02:11 eviltwin

I tried working on this issue, but i couldnt make clientConn work with Https. What about using:

func Get and Post? http://golang.org/pkg/http/#Response.Get http://golang.org/pkg/http/#Response.Post

tncardoso avatar Jan 14 '11 20:01 tncardoso

Hey guys,

I just committed a change that adds support for the Site Stream API using OAuth+SSL. I added a dependency to another go project, httplib, because the Go http client is pretty limited. My goal is to get rid of the basic Authentication in favor of OAuth+SSL.

hoisie avatar Jan 25 '11 05:01 hoisie

Nice! :)

tncardoso avatar Jan 25 '11 11:01 tncardoso