EOFError: EOF read where object expected

335 views
Skip to first unread message

M M via StackOverflow

unread,
Mar 5, 2015, 8:09:36 PM3/5/15
to google-appengin...@googlegroups.com

Recently there have been strange errors on GAE, like this one:

Traceback (most recent call last): File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle handler = _config_handle.add_wsgi_middleware(self._LoadHandler()) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler handler, path, err = LoadObject(self._handler) File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject __import__(cumulative_path) EOFError: EOF read where object expected

Not sure if the fault is in my app or on GAE. Anyone else seeing this?



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/28890754/eoferror-eof-read-where-object-expected

lehoa via StackOverflow

unread,
Mar 6, 2015, 3:19:51 AM3/6/15
to google-appengin...@googlegroups.com

I think scope of API that are defined too much.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/28890754/eoferror-eof-read-where-object-expected/28894657#28894657

user4639135 via StackOverflow

unread,
Mar 6, 2015, 5:34:55 AM3/6/15
to google-appengin...@googlegroups.com

Recently there have been strange errors on GAE, like this one:

Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
    __import__(cumulative_path)
EOFError: EOF read where object expected

Not sure if the fault is in my app or on GAE. Anyone else seeing this?



rgutierrez1014 via StackOverflow

unread,
Mar 6, 2015, 7:50:26 PM3/6/15
to google-appengin...@googlegroups.com

If there is an instance currently running for your project, shut it down and startup a new instance. That seemed to fix it for me.


P.S. I had a weird error the other day that looked like this:

Traceback (most recent call last):
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 240, in Handle
    handler = _config_handle.add_wsgi_middleware(self._LoadHandler())
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 299, in _LoadHandler
    handler, path, err = LoadObject(self._handler)
  File "/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 85, in LoadObject
    obj = __import__(path[0])
  File "/base/data/home/apps/s~ccp-ir-upload/1.382634162944669763/upload.py", line 11, in <module>
    import traceback
SystemExit: -1

This error seems similar, in that it contains some of the same lines, but leads me to think that some instances were started incorrectly or something like that. Stopping the instance and starting up a new one fixed this error as well.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/28890754/eoferror-eof-read-where-object-expected/28910127#28910127

alzy via StackOverflow

unread,
Mar 7, 2015, 2:56:10 PM3/7/15
to google-appengin...@googlegroups.com

I am seeing exactly this error. Nothing to do with your app, I think, just some kind of transient problem with App Engine. I noticed a few instances of it around 4am GMT yesterday.

"/base/data/home/runtimes/python27/python27_lib/versions/1/google/appengine/runtime/wsgi.py", line 96, in LoadObject
__import__(cumulative_path)
EOFError: EOF read where object expected


Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/28890754/eoferror-eof-read-where-object-expected/28919259#28919259

benbeadle via StackOverflow

unread,
Mar 7, 2015, 3:51:10 PM3/7/15
to google-appengin...@googlegroups.com

I'm having the same exact issue. It must be something wrong with App Engine. They've been having issues.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/28890754/eoferror-eof-read-where-object-expected/28919795#28919795

benbeadle via StackOverflow

unread,
Mar 7, 2015, 5:21:14 PM3/7/15
to google-appengin...@googlegroups.com

I'm having the same exact issue. It must be something wrong with App Engine. They've been having issues.

Update: Following rgutierrez1014's tip to shutdown any instances currently running fixed the issue.

Reply all
Reply to author
Forward
0 new messages