Help! Request failed with status code 500

Hi,
I am getting “Request failed with status code 500”, when I try to update the android app project.30

Hi again @labmoonwalk :smile:

This was a temporary issue, and looks to have been solved. Could you try again, and set EXPO_DEBUG=true this time? That may give us some more information.

Also, this is on an existing project that already had credentials, or a new one?

Hi @charliecruzan :slight_smile:

I have been facing this error a long time.
Yes, this is an existing project that already had credentials.
I tried to expo_debug, but nothing appears, as you can see below.

MacBook-Air-de-Alex:react-new-app alexmoret$ expo build:android
Checking if there is a build in progress…

Request failed with status code 500
Error: Request failed with status code 500
at createError (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11)
at IncomingMessage.emit (events.js:203:15)
at IncomingMessage.EventEmitter.emit (domain.js:448:20)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
MacBook-Air-de-Alex:react-new-app alexmoret$ EXPO_DEBUG=true

The command you’d run is EXPO_DEBUG=true expo build:android

@charliecruzan, here is the output

MacBook-Air-de-Alex:react-new-app alexmoret$ expo build:android
Checking if there is a build in progress…

Request failed with status code 500
Set EXPO_DEBUG=true in your env to view the stack trace.
MacBook-Air-de-Alex:react-new-app alexmoret$ EXPO_DEBUG=true expo build:android
Checking if there is a build in progress…

Request failed with status code 500
Error: Request failed with status code 500
at createError (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/createError.js:16:15)
at settle (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/core/settle.js:17:12)
at IncomingMessage.handleStreamEnd (/usr/local/lib/node_modules/expo-cli/node_modules/axios/lib/adapters/http.js:237:11)
at IncomingMessage.emit (events.js:203:15)
at IncomingMessage.EventEmitter.emit (domain.js:448:20)
at endReadableNT (_stream_readable.js:1129:12)
at process._tickCallback (internal/process/next_tick.js:63:19)
MacBook-Air-de-Alex:react-new-app alexmoret$

do you have owner set in app.json?
Actually- better to share your entire app.json file here :smile:

{
“expo”: {
“sdkVersion”: “32.0.0”,
“name”: “Prize Burger”,
“slug”: “prizeburger”,
“icon”: “./assets/img/brand/launcher.png”,
“version”: “5.0.3”,
“facebookAppId”: “155974085181281”,
“facebookDisplayName”: “Prize Burger”,
“facebookScheme”: “fb155974085181281”,
“splash”: {
“image”: “./assets/img/brand/splash_screen.png”,
“resizeMode”: “cover”
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“notification”: {
“icon”: “./assets/img/brand/launcher.png”
},
“ios”: {
“bundleIdentifier”: “br.prizeburger.app”,
“config”: {
“googleMapsApiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
},
“infoPlist”: {
“NSLocationWhenInUseUsageDescription”: “Por questão de segurança, precisamos da sua localização para garantir que você está dentro da loja”,
“NSCameraUsageDescription”: “Para que você marque seu ponto, é necessário que nos dê acesso a sua câmera”
}
},
“android”: {
“package”: “br.com.moonwalk.prize”,
“versionCode”: 1,
“googleServicesFile”: “./google-services.json”,
“config”: {
“googleMaps”: {
“apiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
}
},
“permissions”: [
“CAMERA”,
“ACCESS_COARSE_LOCATION”,
“ACCESS_FINE_LOCATION”,
“NOTIFICATIONS”
]
},
“assetBundlePatterns”: [
“./assets/img/*”
],
“extra”: {
“apiBaseUrl”: “https://api.moonwalk.com.br”,
“UUID”: “1689a690f2d04c4da62e20e4577d6d08”,
“moonwalkPasswordClientID”: “NVPYSCKlKRh=9YNnhd9BTP;diUJ8DmhjU0xEK-Hn”,
“moonwalkFacebookClientID”: “24W03s8GHqdXVtFy=BQ9iVgTwiDW1wiFaEwy.B1f”,
“primaryColor”: “#000000”,
“iconColor”: “#EC6E43”,
“drawerIconColor”: “#FFFFFF”,
“navBarTextColor”: “#FFFFFF”,
“buttonTextColor”: “#FFFFFF”,
“borderColor”: “#F1F1F1”,
“secondaryColor”: “#CCC”,
“navIconColor”: “#939393”,
“defaultLocale”: “pt-BR”,
“statusBarStyle”: “light-content”,
“backgroundImageExists”: false,
“menu”: [
{
“name”: “aboutUs”,
“icon”: 1,
“type”: “aboutUs”
},
{
“name”: “products”,
“icon”: 8,
“type”: “products”
},
{
“name”: “loyalty”,
“icon”: 3,
“type”: “loyalty”
},
{
“name”: “notifications”,
“icon”: 6,
“type”: “notifications”
},
{
“name”: “contactUs”,
“icon”: 4,
“type”: “contactUs”
},
{
“name”: “localization”,
“icon”: 5,
“type”: “localization”
},
{
“name”: “help”,
“icon”: 2,
“type”: “help”
}
],
“help”: [
{
“section”: “welcome”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “loyalty”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “account”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
}
]
}
}
}

@charliecruzan

Can you help me?

Best,

I’m looking into this on our end, but quick question- have you been able to publish this app to the playstore yet?

Hi @charliecruzan

Yes, The 1st version is already published, Im trying to update this project but, im facing this error.
Best,

Hi @charliecruzan

I just updated for Expo 33, but the error persists.
Here is my app.json:

expo": {
“sdkVersion”: “33.0.0”,
“name”: “Prize Burger”,
“slug”: “prizeburger”,
“icon”: “./assets/img/brand/launcher.png”,
“version”: “5.0.5”,
“facebookAppId”: “155974085181281”,
“facebookDisplayName”: “Prize Burger”,
“facebookScheme”: “fb155974085181281”,
“splash”: {
“image”: “./assets/img/brand/splash_screen.png”,
“resizeMode”: “cover”
},
“updates”: {
“fallbackToCacheTimeout”: 0
},
“notification”: {
“icon”: “./assets/img/brand/launcher.png”
},
“ios”: {
“bundleIdentifier”: “br.prizeburger.app”,
“config”: {
“googleMapsApiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
},
“infoPlist”: {
“NSLocationWhenInUseUsageDescription”: “Por questão de segurança, precisamos da sua localização para garantir que você está dentro da loja”,
“NSCameraUsageDescription”: “Para que você marque seu ponto, é necessário que nos dê acesso a sua câmera”
}
},
“android”: {
“package”: “br.com.moonwalk.prize”,
“versionCode”: 201,
“googleServicesFile”: “./google-services.json”,
“config”: {
“googleMaps”: {
“apiKey”: “AIzaSyALaOjCr8T2NcHJmdwIoYBY8w1UraSUEAg”
}
},
“permissions”: [
“CAMERA”,
“ACCESS_COARSE_LOCATION”,
“ACCESS_FINE_LOCATION”,
“NOTIFICATIONS”
]
},
“assetBundlePatterns”: [
“./assets/img/*”
],
“extra”: {
“apiBaseUrl”: “https://api.moonwalk.com.br”,
“UUID”: “1689a690f2d04c4da62e20e4577d6d08”,
“moonwalkPasswordClientID”: “NVPYSCKlKRh=9YNnhd9BTP;diUJ8DmhjU0xEK-Hn”,
“moonwalkFacebookClientID”: “24W03s8GHqdXVtFy=BQ9iVgTwiDW1wiFaEwy.B1f”,
“primaryColor”: “#000000”,
“iconColor”: “#EC6E43”,
“drawerIconColor”: “#FFFFFF”,
“navBarTextColor”: “#FFFFFF”,
“buttonTextColor”: “#FFFFFF”,
“borderColor”: “#F1F1F1”,
“secondaryColor”: “#CCC”,
“navIconColor”: “#939393”,
“defaultLocale”: “pt-BR”,
“statusBarStyle”: “light-content”,
“backgroundImageExists”: false,
“menu”: [
{
“name”: “aboutUs”,
“icon”: 1,
“type”: “aboutUs”
},
{
“name”: “products”,
“icon”: 8,
“type”: “products”
},
{
“name”: “loyalty”,
“icon”: 3,
“type”: “loyalty”
},
{
“name”: “notifications”,
“icon”: 6,
“type”: “notifications”
},
{
“name”: “contactUs”,
“icon”: 4,
“type”: “contactUs”
},
{
“name”: “localization”,
“icon”: 5,
“type”: “localization”
},
{
“name”: “help”,
“icon”: 2,
“type”: “help”
}
],
“help”: [
{
“section”: “welcome”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “loyalty”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
},
{
“section”: “account”,
“url”: “Moonwalk Tech | O delivery mais fácil pelo WhatsApp
}
]
}
}
}

Hi @charliecruzan

Any news?

Best,
Alex

Hi @wodin

Can you help me with this error?

Best,

Hi @labmoonwalk

You should edit out the API keys etc. in your comments about the app.json above.

About the “500” error, it sounds like something in the deployment is causing the server to crash. Although reading the message in the screenshot it seems that it did build your app correctly and crashed when checking the status of the build.

Unfortunately I’m unfamiliar with exactly what requests are made to which servers etc. and anyway the server is unlikely to provide enough information (for security reasons) for you to figure this out on your end without a lot of trial and error. I think this is why running with EXPO_DEBUG=true did not give any useful information. You might be able to get some more info by using Charles proxy as mentioned here (although some of that information is specific to the iOS simulator which is not relevant to your problem.)

@labmoonwalk, if you go to the build URL mentioned in the screenshot (“You can monitor the build at https://expo.io/builds/dfe5b04b…”) does it give any more information about what went wrong?

@charliecruzan if @labmoonwalk tries again and gives you the date/time, build and artifact URLs would you be able to check the server logs to see if there’s more info about this internal server error?

The build URL should show the full stack trace which could give us a better idea of the problem

1 Like

Hi @charliecruzan

Note that the build URL is not generate after run expo build:android.

best,

@wodin @charliecruzan

Any idea?

Best,

Hi. I still think one of the Expo team members will need to check the server logs. @charliecruzan?

Have you tried clearing your credentials? You can do this safely by first backing up your credentials to a safe location with expo fetch:android:keystore, then run expo build:android -c

@charliecruzan I got a new error:

Last login: Tue Aug 20 18:10:40 on ttys000
MacBook-Air-de-Alex:~ alexmoret$ cd react-new-app
MacBook-Air-de-Alex:react-new-app alexmoret$ expo fetch:android:keystore
┌─────────────────────────────────────────────────────────────┐
│ │
│ There is a new version of expo-cli available (3.0.10). │
│ You are currently using expo-cli 3.0.9 │
│ Run npm install -g expo-cli to get the latest version │
│ │
└─────────────────────────────────────────────────────────────┘
An unknown error occurred.
MacBook-Air-de-Alex:react-new-app alexmoret$