socrata / soda-ruby

A RubyGem for the Socrata Open Data API

Home Page:http://socrata.github.io/soda-ruby

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

RuntimeError: Error in request

dogweather opened this issue · comments

Is it possible that soda-ruby isn't ruby 2.2.0-compatible?

RuntimeError: Error in request: 
from /Users/xxx/.rvm/gems/ruby-2.2.0/gems/soda-ruby-0.2.13/lib/soda/client.rb:163:in `handle_response'

I get this error running the example but with my app's app token.

Actually, maybe it's how I'm using the library. What exactly, should the value of domain be? Something related to my app?

@dogweather What dataset are you trying to access? That'll determine what the domain is that you want to provide.

Yep, so you'd want to initialize your client like this:

client = SODA::Client.new({:domain => "data.cityofnewyork.us", :app_token => "YOURAPPTOKENGOESHERE"})

Ah hah, thanks. I was looking in the About/Meta and Export tabs for a domain attribute. :-)