StatusCode Error 500 on exp publish


#1

I’m using latest exp 47.4.4, with RN 0.51 and expo SDK 24.0. The project works fine on iOS simulator, but when I try to publish it (with exp publish), here’s the output:
[exp] Starting React Native packager…
[exp] Scanning folders for symlinks in /Users/ABC/Documents/Programming/react-native-expo/node_modules (10ms)
[exp] Loading dependency graph.
[exp] Dependency graph loaded.
[exp] Tunnel connected.
[exp] Publishing…
[exp] Building iOS bundle
[exp] Failed building JavaScript bundle.
[exp] 500 - “{“type”:“InternalError”,“errors”:[],“message”:“Metro Bundler has encountered an internal error, please check your terminal error output for more details”}”
[exp] StatusCodeError: 500 - "{“type”:“InternalError”,“errors”:[],“message”:“Metro Bundler has encountered an internal error, please check your terminal error output for more details”}"
at new StatusCodeError (/usr/local/lib/node_modules/exp/node_modules/request-promise-core/lib/errors.js:32:15)
at Request.plumbing.callback (/usr/local/lib/node_modules/exp/node_modules/request-promise-core/lib/plumbing.js:104:33)
at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/exp/node_modules/request-promise-core/lib/plumbing.js:46:31)
at Request.self.callback (/usr/local/lib/node_modules/exp/node_modules/request/request.js:186:22)
at emitTwo (events.js:106:13)
at Request.emit (events.js:194:7)
at Request. (/usr/local/lib/node_modules/exp/node_modules/request/request.js:1163:10)
at emitOne (events.js:96:13)
at Request.emit (events.js:191:7)
at IncomingMessage. (/usr/local/lib/node_modules/exp/node_modules/request/request.js:1085:12)
at Object.onceWrapper (events.js:293:19)
at emitNone (events.js:91:20)
at IncomingMessage.emit (events.js:188:7)
at endReadableNT (_stream_readable.js:975:12)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)

Any advice how to resolve this error? Thanks.


#2

Hi-

Does your project work before publishing?
There is probably something in your code or in your project that is causing the bundler to barf. Can you share your code here? That will make it much easier to help you.


#3

Thanks for replying. Yes the project works before publishing.

From the error log, it appeared to be core node modules related to request-promise – so I upgraded node from v7 to v9, and that error disappeared.


#4

glad you figured out a workaround.


closed #5

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.