ip2k / google-api-ruby-client

Automatically exported from code.google.com/p/google-api-ruby-client
Apache License 2.0
0 stars 0 forks source link

Getting error that Discovery document is not found #55

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am trying to update my location using currentLocation API of Google Latitude.

What steps will reproduce the problem?
1. The following code is used to insert my current location
 result = client.execute(
      :api_method => 'latitude.currentLocation.insert',
      :body => "{\"data\": {\"kind\":\"latitude#location\",\"latitude\":#{latitude},\"longitude\":#{longitude}}}",
      :headers => {'Content-Type'=> 'application/json'}
    )
2. This raises an exception as below:
Could not retrieve discovery document at: 
https://www.googleapis.com/discovery/v1/apis/latitude/v1/rest?key=<My App ID>

Is there any action we can take when this exception is raised. As updating 
location is critical for my app.

What is the expected output? What do you see instead?
Expected: API found and latitude longitude updated.
Actual : The link is not active always and returns this error.

Could not retrieve discovery document at: 
https://www.googleapis.com/discovery/v1/apis/latitude/v1/rest?key=<My App ID>

What version of the product are you using? On what operating system?
0.4.5 Gem
Ruby 1.8.7
Rails 2.3.8

Original issue reported on code.google.com by shameela...@gmail.com on 30 Aug 2012 at 10:04

GoogleCodeExporter commented 9 years ago
This looks like a bug with the Latitude API. Definitely a problem, but it's not 
a problem with the client. We'll look into it.

Original comment by bobaman@google.com on 30 Aug 2012 at 10:08