TypeError: Cannot read property 'headers' of undefined [resolved]

APP ID = 272493151797-error.log (462.6 KB)

TypeError: Cannot read property ‘headers’ of undefined
at Request._callback (/Users/administrator/app-builder/STAGING/client/buildHooks/dist/downloadImages.js:206:14)
at self.callback (/Users/administrator/app-builder/STAGING/client/node_modules/request/request.js:185:22)
at Request.emit (events.js:182:13)
at Request.EventEmitter.emit (domain.js:442:20)
at Request.onRequestError (/Users/administrator/app-builder/STAGING/client/node_modules/request/request.js:877:8)
at ClientRequest.emit (events.js:187:15)
at ClientRequest.EventEmitter.emit (domain.js:442:20)
at TLSSocket.socketOnData (_http_client.js:447:9)
at TLSSocket.emit (events.js:182:13)
at TLSSocket.EventEmitter.emit (domain.js:442:20)
at addChunk (_stream_readable.js:283:12)
at readableAddChunk (_stream_readable.js:264:11)
at TLSSocket.Readable.push (_stream_readable.js:219:10)
at TLSWrap.onStreamRead (internal/stream_base_commons.js:94:17)

Hi!

This error is caused by having an image url in your app that does not return appropriate headers, which then causes an error in the build script.
This will be fixed in the new 2.x runtime which will be released very soon.

Sorry for the inconvenience!

This was resolved, it was the package name (com.xxxxx.app) was different from my google-service.json package name. App is now building in less than 6 minutes.

1 Like