EEException: Server returned HTTP code: 404 --- Problem testing app with Google App Engine and Google Earth Engine

873 views
Skip to first unread message

Alí Santacruz

unread,
Aug 14, 2015, 10:18:45 AM8/14/15
to Google App Engine

Hi all,

I am trying to test a basic app with Google App Engine using the trendy-lights example with Google Earth Engine App. 

I cloned the trendy-lights app from the GEE github repository and updated the application name in app.yaml, EE_ACCOUNT in config.py and the privatekey.pem file. I didn't do any other change. However the trendy-lights app does not work.

Please see the error I got below. I am trying to figure out why it does not work. (Just FYI, I tried the sample flask app in GAE and it works well, I see the 'Hello World' text when I go to the app webpage). 

Does anyone know what the error I got refers to? I have no clue and I don't know how to debug it.

Another question: For running this app (i.e., the trendy-lights example) using GAE and GEE, do I have to sign up for the free trial or get a paid account? (I am a trusted tester for GEE)

Thanks for any help!

Ali  


user@osgeolive:~/shared/git/earthengine-api/demos/trendy-lights$ /home/user/google_appengine/dev_appserver.py ./
INFO 2015-08-14 14:07:21,304 sdk_update_checker.py:229] Checking for updates to the SDK.
INFO 2015-08-14 14:07:21,735 sdk_update_checker.py:257] The SDK is up to date.
WARNING  2015-08-14 14:07:22,512 simple_search_stub.py:1126] Could not read search indexes from /tmp/appengine.test-project-1036.user/search_indexes
INFO 2015-08-14 14:07:22,516 api_server.py:205] Starting API server at: http://localhost:52519
INFO 2015-08-14 14:07:22,530 dispatcher.py:197] Starting module "default" running at: http://localhost:8080
INFO 2015-08-14 14:07:22,531 admin_server.py:118] Starting admin server at: http://localhost:8000
INFO 2015-08-14 14:07:51,222 client.py:515] Attempting refresh to obtain initial access_token
INFO 2015-08-14 14:07:51,262 client.py:755] Refreshing access_token
ERROR 2015-08-14 14:07:53,438 wsgi.py:263]
Traceback (most recent call last):
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/server.py", line 241, in <module>
ee.Initialize(EE_CREDENTIALS)
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/__init__.py", line 83, in Initialize
ApiFunction.initialize()
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/apifunction.py", line 145, in initialize
signatures = data.getAlgorithms()
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/data.py", line 341, in getAlgorithms
return send_('/algorithms', {}, 'GET')
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/data.py", line 594, in send_
response.status)
EEException: Server returned HTTP code: 404
INFO 2015-08-14 14:07:53,573 module.py:809] default: "GET / HTTP/1.1" 500 -
INFO 2015-08-14 14:07:53,625 client.py:515] Attempting refresh to obtain initial access_token
INFO 2015-08-14 14:07:53,666 client.py:755] Refreshing access_token
ERROR 2015-08-14 14:07:55,192 wsgi.py:263]
Traceback (most recent call last):
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 240, in Handle
handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
handler, path, err = LoadObject(self._handler)
  File "/home/user/google_appengine/google/appengine/runtime/wsgi.py", line 85, in LoadObject
obj = __import__(path[0])
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/server.py", line 241, in <module>
ee.Initialize(EE_CREDENTIALS)
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/__init__.py", line 83, in Initialize
ApiFunction.initialize()
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/apifunction.py", line 145, in initialize
signatures = data.getAlgorithms()
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/data.py", line 341, in getAlgorithms
return send_('/algorithms', {}, 'GET')
  File "/home/user/shared/git/earthengine-api/demos/trendy-lights/ee/data.py", line 594, in send_
response.status)
EEException: Server returned HTTP code: 404
INFO 2015-08-14 14:07:55,198 module.py:809] default: "GET /favicon.ico HTTP/1.1" 500 -

I am running osgeo Lubuntu on VirtualBox running on Windows 8.1. (VirtualBox-5.0.0-101573-Win,
osgeo-live-8.5, Python 2.7.6, Google App Engine 1.9.24).

Nick (Cloud Platform Support)

unread,
Aug 14, 2015, 11:12:11 AM8/14/15
to Google App Engine
Hi Ali,

It seems as though you've produced a perfect question for stackoverflow. However, Google Groups isn't the right place to post it, since this forum is meant for more general / high level discussion of the platform and services. I'd be happy to help out on your stackoverflow question when you post it, so feel free to link back to it in your reply here.

Best wishes,

Nick

Alí Santacruz

unread,
Aug 14, 2015, 12:20:32 PM8/14/15
to Google App Engine

Hi Nick,

Thanks for your answer. I was not sure if this group was the best place to post my question. Thanks for clarifying it. 

I just posted my question on stackoverflow following your suggestion:


Thanks a lot,

Best regards,

Ali

Nick (Cloud Platform Support)

unread,
Aug 17, 2015, 6:36:19 PM8/17/15
to Google App Engine
Hi Ali,

Not to worry, there's a first time for everything! I'm currently following your question and will follow up there. 

Best wishes,

Nick

Alí Santacruz

unread,
Aug 17, 2015, 6:41:31 PM8/17/15
to Google App Engine

Hi Nick,

The issue was solved earlier today by the administrators of the GEE platform,

My account had to be whitelisted by them for the app to be able to run,

So the problem is solved now. I will post the solution on stackoverflow,

Thanks!

Best,

Ali

Nick (Cloud Platform Support)

unread,
Aug 19, 2015, 7:39:46 PM8/19/15
to Google App Engine
Hi Ali,

That's great news. Thanks for updating the stack question as well, you are a great net citizen!

Regards,

Nick
Reply all
Reply to author
Forward
0 new messages