Skip to content

Unexpected response from key lookup by coordinate #12

Closed

Description

@datadavev

Calling

http://geo-ds.appspot.com/api/cells?xy=-20,14

generates a 500 error:

- About to connect() to geo-ds.appspot.com port 80 (#0)
-   Trying 72.14.204.141... connected
- Connected to geo-ds.appspot.com (72.14.204.141) port 80 (#0)
  > GET /api/cells?xy=-20,14 HTTP/1.1
  > User-Agent: curl/7.19.7 (universal-apple-darwin10.0) libcurl/7.19.7 OpenSSL/0.9.8l zlib/1.2.3
  > Host: geo-ds.appspot.com
  > Accept: _/_
  > 
  < HTTP/1.1 500 Internal Server Error
  < Content-Type: text/html; charset=utf-8
  < Cache-Control: no-cache
  < Expires: Fri, 01 Jan 1990 00:00:00 GMT
  < Date: Wed, 01 Jun 2011 08:54:50 GMT
  < Server: Google Frontend
  < Transfer-Encoding: chunked
  < 
  <pre>Traceback (most recent call last):
  File &quot;/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/**init**.py&quot;, line 700, in **call**
    handler.get(*groups)
  File &quot;/base/data/home/apps/geo-ds/dev.348753481313772849/app.py&quot;, line 291, in get
    self.post()
  File &quot;/base/data/home/apps/geo-ds/dev.348753481313772849/app.py&quot;, line 304, in post
    value = int(self.request.get('pivot', None))
  TypeError: int() argument must be a string or a number, not 'NoneType'
- Connection #0 to host geo-ds.appspot.com left intact
- Closing connection #0
  </pre>

Activity

  1. eightysteele commented on Jun 1, 2011

    @eightysteele
    Owner

    Calling
    http://geo-ds.appspot.com/api/cells?xy=-20,14
    generates a 500 error

    Oops! Yes, I need to redeploy some test data and a stable dev link for running example API calls like the one above. I'll do this in tandem with issue #13.

  2. eightysteele commented on Aug 4, 2011

    @eightysteele
    Owner

    Worldclim data for California have been bulkloaded to CouchDB and a stable version of the API has been deployed to:

    http://stable.geo-ds.appspot.com/api/cells/values

    Here's an example call that combines coordinates, cell keys, variables, and coordinates:

    http://stable.geo-ds.appspot.com/api/cells/values?xy=-123,39|-123,38&var=alt,bio8&c=true&k=9317-7198,9289-7194

    Closing issue pending feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions