RhoConnect tutorial error

I'm going through the RhoConnect tutorial (http://docs.rhomobile.com/rhoconnect/tutorial) and literally following each step exactly as it's written.

However, I'm having problems syncing with the rhostore.heroku.com/products website.

I can login fine, but when I sync, nothing shows up in the Products section.

I've looked at the log file while the app is running and it keeps telling me 'getaddrinfo: No such host is known' everytime I try syncing.

Any ideas?

Darryn Campbell
Can you access http:/

Can you access http://rhostore.heroku.com/products from a web browser on your machine?  If so then there is probably a proxy issue with your machine that is preventing the same access from your ruby source adapter.  RestClient, the ruby library shown in the sample code, supports proxy settings, so you may want to try that if necessary.

https://github.com/archiloque/rest-client#proxy

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
Yeah I can access it and see

Yeah I can access it and see all of the products.

I'll try the proxy and see if that works

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Darryn Campbell
So I see the line I should

So I see the line I should use, but not where I need to put it.

RestClient.proxy = ENV['http_proxy']

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Lars Burgess
If you already have an

If you already have an environment variable called "http_proxy" then just put that code in your adapter's query method at the beginning.

-Lars

Vote: 
Vote up!
Vote down!

Points: 1

You voted ‘up’


Ariana Habbaba
Thank you! That fixed it

Thank you! That fixed it

Vote: 
Vote up!
Vote down!

Points: 0

You voted ‘up’


Log in to post comments