Hi, I''m trying to set up Sailthru but get this error when I try to use it (get_email method): Sailthru::SailthruClientException: Unable to open stream: https://api.sailthru.com/email?format=json&api_key=....etc -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''m running the app locally, so do I have to do anything in particular to open an external stream? On Apr 5, 11:56 am, Mlle <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open stream:https://api.sailthru.com/email?format=json&api_key=....etc-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 5 April 2011 16:56, Mlle <emstolfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open stream: > https://api.sailthru.com/email?format=json&api_key=....etcDoes the url open if you enter it into your browser? Colin -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Yes On Apr 5, 12:07 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 5 April 2011 16:56, Mlle <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Hi, > > > I''m trying to set up Sailthru but get this error when I try to use it > > (get_email method): > > > Sailthru::SailthruClientException: Unable to open stream: > >https://api.sailthru.com/email?format=json&api_key=....etc > > Does the url open if you enter it into your browser? > > Colin-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On 5 April 2011 17:11, Mlle <emstolfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> YesSorry that was my one an only (and useless) idea. Colin> > On Apr 5, 12:07 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: >> On 5 April 2011 16:56, Mlle <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> > Hi, >> >> > I''m trying to set up Sailthru but get this error when I try to use it >> > (get_email method): >> >> > Sailthru::SailthruClientException: Unable to open stream: >> >https://api.sailthru.com/email?format=json&api_key=....etc >> >> Does the url open if you enter it into your browser? >> >> Colin > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hmm, do you think it could have anything to do with SSL? On Apr 5, 12:16 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> On 5 April 2011 17:11, Mlle <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > Yes > > Sorry that was my one an only (and useless) idea. > > Colin > > > > > > > On Apr 5, 12:07 pm, Colin Law <clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote: > >> On 5 April 2011 16:56, Mlle <emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > >> > Hi, > > >> > I''m trying to set up Sailthru but get this error when I try to use it > >> > (get_email method): > > >> > Sailthru::SailthruClientException: Unable to open stream: > >> >https://api.sailthru.com/email?format=json&api_key=....etc > > >> Does the url open if you enter it into your browser? > > >> Colin > > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
if I use this code and manually insert the uri that the
sailthru.get_email method is generating is comes back with a response.
require "net/https"
require "uri"
uri = URI.parse("https://secure.com/")
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_NONE
request = Net::HTTP::Get.new(uri.request_uri)
response = http.request(request)
response.body
response.status
response["header-here"] # All headers are lowercase
On Apr 5, 12:22 pm, Mlle
<emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:> Hmm, do you think it could have anything to do with SSL?
>
> On Apr 5, 12:16 pm, Colin Law
<clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
>
>
>
> > On 5 April 2011 17:11, Mlle
<emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > > Yes
>
> > Sorry that was my one an only (and useless) idea.
>
> > Colin
>
> > > On Apr 5, 12:07 pm, Colin Law
<clan...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:
> > >> On 5 April 2011 16:56, Mlle
<emsto...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:
>
> > >> > Hi,
>
> > >> > I''m trying to set up Sailthru but get this
error when I try to use it
> > >> > (get_email method):
>
> > >> > Sailthru::SailthruClientException: Unable to open
stream:
> > >>
>https://api.sailthru.com/email?format=json&api_key=....etc
>
> > >> Does the url open if you enter it into your browser?
>
> > >> Colin
>
> > > --
> > > You received this message because you are subscribed to the
Google Groups "Ruby on Rails: Talk" group.
> > > To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh4Ykp1iOSErHA@public.gmane.orgm.
> > > To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
> > > For more options, visit this group
athttp://groups.google.com/group/rubyonrails-talk?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.
On Tue, Apr 5, 2011 at 10:56 AM, Mlle <emstolfo-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi, > > I''m trying to set up Sailthru but get this error when I try to use it > (get_email method): > > Sailthru::SailthruClientException: Unable to open stream: > https://api.sailthru.com/email?format=json&api_key=....etc > >Please post the full error you are getting. Since you can open this link via browser and net/http library there is something else going on and no one can tell what it is from this truncated error message. B. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.