TypeError: Cannot read property '0' of undefined at Request._callback (/app/app.js:117:55)
See original GitHub issueHello, I have deployed the app on GAE and Cloud Function, but I have a problem when app is started. This is a stacktrace of the command
gcloud app logs tail -s default
2017-05-03 11:02:07 default[20170503t125523] GET /_ah/health 200 2.579 ms - 1004
2017-05-03 11:02:07 default[20170503t125523] GET /_ah/health 200 0.507 ms - 1004
2017-05-03 11:02:07 default[20170503t125523] { kind: 'storage#object',
2017-05-03 11:02:07 default[20170503t125523] id: 'video-intelligence-json/google-home-superbowlmp4.json/1493804433756714',
2017-05-03 11:02:07 default[20170503t125523] selfLink: 'https://www.googleapis.com/storage/v1/b/video-intelligence-json/o/google-home-superbowlmp4.json',
2017-05-03 11:02:07 default[20170503t125523] name: 'google-home-superbowlmp4.json',
2017-05-03 11:02:07 default[20170503t125523] bucket: 'video-intelligence-json',
2017-05-03 11:02:07 default[20170503t125523] generation: '1493804433756714',
2017-05-03 11:02:07 default[20170503t125523] metageneration: '1',
2017-05-03 11:02:07 default[20170503t125523] contentType: 'application/json',
2017-05-03 11:02:07 default[20170503t125523] timeCreated: '2017-05-03T09:40:33.601Z',
2017-05-03 11:02:07 default[20170503t125523] updated: '2017-05-03T09:40:33.601Z',
2017-05-03 11:02:07 default[20170503t125523] storageClass: 'MULTI_REGIONAL',
2017-05-03 11:02:07 default[20170503t125523] timeStorageClassUpdated: '2017-05-03T09:40:33.601Z',
2017-05-03 11:02:07 default[20170503t125523] size: '40178',
2017-05-03 11:02:07 default[20170503t125523] md5Hash: 'O15kbUixMKzQM41DOAhG/A==',
2017-05-03 11:02:07 default[20170503t125523] mediaLink: 'https://www.googleapis.com/download/storage/v1/b/video-intelligence-json/o/google-home-superbowlmp4.json?generation=1493804433756714&alt=media',
2017-05-03 11:02:07 default[20170503t125523] crc32c: 'D1ouWQ==',
2017-05-03 11:02:07 default[20170503t125523] etag: 'CKqkjZW309MCEAE=' }
2017-05-03 11:02:08 default[20170503t125523] /app/app.js:117
2017-05-03 11:02:08 default[20170503t125523] annotations: body.annotation_results[0]
2017-05-03 11:02:08 default[20170503t125523] ^
2017-05-03 11:02:08 default[20170503t125523]
2017-05-03 11:02:08 default[20170503t125523] TypeError: Cannot read property '0' of undefined at Request._callback (/app/app.js:117:55) at Request.self.callback (/app/node_modules/request/request.js:188:22) at emitTwo (events.js:106:13) at Request.emit (events.js:191:7) at Request.<anonymous> (/app/node_modules/request/request.js:1171:10) at emitOne (events.js:96:13) at Request.emit (events.js:188:7) at IncomingMessage.<anonymous> (/app/node_modules/request/request.js:1091:12) at IncomingMessage.g (events.js:291:16) at emitNone (events.js:91:20)
2017-05-03 11:02:08 default[20170503t125523]
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Linux 3.16.0-4-amd64
2017-05-03 11:02:08 default[20170503t125523] npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "start"
2017-05-03 11:02:08 default[20170503t125523] npm ERR! node v6.10.2
2017-05-03 11:02:08 default[20170503t125523] npm ERR! npm v3.10.10
2017-05-03 11:02:08 default[20170503t125523] npm ERR! code ELIFECYCLE
2017-05-03 11:02:08 default[20170503t125523] npm ERR! appengine-express@0.0.1 start: `node ./bin/www`
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Exit status 1
2017-05-03 11:02:08 default[20170503t125523] npm ERR!
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Failed at the appengine-express@0.0.1 start script 'node ./bin/www'.
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Make sure you have the latest version of node.js and npm installed.
2017-05-03 11:02:08 default[20170503t125523] npm ERR! If you do, this is most likely a problem with the appengine-express package,
2017-05-03 11:02:08 default[20170503t125523] npm ERR! not with npm itself.
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Tell the author that this fails on your system:
2017-05-03 11:02:08 default[20170503t125523] npm ERR! node ./bin/www
2017-05-03 11:02:08 default[20170503t125523] npm ERR! You can get information on how to open an issue for this project with:
2017-05-03 11:02:08 default[20170503t125523] npm ERR! npm bugs appengine-express
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Or if that isn't available, you can get their info via:
2017-05-03 11:02:08 default[20170503t125523] npm ERR! npm owner ls appengine-express
2017-05-03 11:02:08 default[20170503t125523] npm ERR! There is likely additional logging output above.
2017-05-03 11:02:08 default[20170503t125523]
2017-05-03 11:02:08 default[20170503t125523] npm ERR! Please include the following file with any support request:
2017-05-03 11:02:08 default[20170503t125523] npm ERR! /app/npm-debug.log
Any feedback are appreciated!
Thanks
Onofrio
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
Cannot read property "0" from undefined. Error Google Apps ...
I think the only thing that could cause that error is if emptyCell is bigger than the colunaDias array, i.e. if your sheet...
Read more >Cannot read property '0' of undefined for email · Issue #139 ...
This is the error that I'm getting currently newUser.facebook.email = profile.emails[0].value; ^ TypeError: Cannot read property '0' of ...
Read more >Getting "Cannot read property '0' of undefined" exception ...
I am having the exception “Cannot read property '0' of undefined” while using Custom Database Create Action Script.
Read more >TypeError: Cannot read property '0' of undefined - Dash Python
I am rendering a datatable which is returned by a function call 'top_leads' that invokes a python script. Here's my code: layout =...
Read more >Solved: Cannot read property 'name' of undefined
Solved: Hello, currently I'm building a Canvas that connect to D365 FO. We connect to multiple tables and one of them has error...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@sararob Hello, the error, object of the isssue, is no longer present. At this time however on App Engine I see this error:
GCS error getting files {ApiError: Not Found At Object.parseHttpRespBody (/app/node_modules/@google-cloud/common/src/util.js:191:30) At Object.handleResp (/app/node_modules/@google-cloud/common/src/util.js:131:18) At /app/node_modules/@google-cloud/common/src/util.js:465:12 At Request.onResponse [as _callback] (/app/node_modules/retry-request/index.js:120:7) At Request.self.callback (/app/node_modules/request/request.js:188:22) At emitTwo (events.js: 106: 13) At Request.emit (events.js: 191: 7) At Request. <Anonymous> (/app/node_modules/request/request.js:1171:10) At emitOne (events.js: 96: 13) At Request.emit (events.js: 188: 7)
@shoreshgithub The problem seems to be with the missing “annotation_results” tag in the json result. Compare the output generated by the API with the sample annotation of superbowl. Another problem is all the tags in the result JSON have changed to camel case. so replacing that to lower case with underscores might also help.