tardate / rgovdata

really simple access to government data sets for ruby
http://rgovdata.com
MIT License
6 stars 0 forks source link

seems to be an issue handling //sg/nlb/NewArrivalSet #3

Open tardate opened 13 years ago

tardate commented 13 years ago

see: http://rgovdata.com/datasets/::sg:nlb:NewArrivalSet

NewArrivalSet is in the metadata (https://api.projectnimbus.org/nlbodataservice.svc/$metadata) but not mentioned on the ProjectNimbus page (http://projectnimbus.org/2010/04/11/datasets-national-library-board-nlb/) ... maybe its not live yet?

tardate commented 13 years ago

yes, appears to be an issue at the ProjectNimbus end, possibly this end-point not supported yet.

service = RGovData::Catalog.get('//sg/nlb/NewArrivalSet')
RestClient.get "https://api.projectnimbus.org/nlbodataservice.svc/$metadata", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate"
# => 200 OK | application/xml 8554 bytes
 => //sg/nlb/NewArrivalSet [RGovData::OdataDataSet] 
service.records
RestClient.get "https://api.projectnimbus.org/nlbodataservice.svc/NewArrivalSet", "Accept"=>"*/*; q=0.5, application/xml", "Accept-Encoding"=>"gzip, deflate", "AccountKey"=>"xxxxxxxxxxxxxxxxxxx", "UniqueUserID"=>"00000000000000000000000000000001"
# => 500 InternalServerError | application/xml 250 bytes
RestClient::InternalServerError: 500 Internal Server Error