Firebase deploy HTTP 500 error internal error encountered
See original GitHub issueCLI Version: 7.2.3 Platform: win32 Node Version: v8.11.4
Error when updating website
[debug] [2019-08-19T20:02:31.501Z] ----------------------------------------------------------------------
[debug] [2019-08-19T20:02:31.506Z] Command: C:\Program Files\nodejs\node.exe C:\Users\nath_\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js deploy
[debug] [2019-08-19T20:02:31.506Z] CLI Version: 7.2.3
[debug] [2019-08-19T20:02:31.506Z] Platform: win32
[debug] [2019-08-19T20:02:31.506Z] Node Version: v8.11.4
[debug] [2019-08-19T20:02:31.507Z] Time: Mon Aug 19 2019 21:02:31 GMT+0100 (GMT Summer Time)
[debug] [2019-08-19T20:02:31.507Z] ----------------------------------------------------------------------
[debug]
[debug] [2019-08-19T20:02:31.517Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2019-08-19T20:02:31.519Z] > authorizing via signed-in user
[debug] [2019-08-19T20:02:31.519Z] [iam] checking project humphrey-stretton for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"]
[debug] [2019-08-19T20:02:31.520Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/humphrey-stretton:testIamPermissions
[debug] [2019-08-19T20:02:32.737Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:32.741Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/humphrey-stretton
[debug] [2019-08-19T20:02:33.040Z] <<< HTTP RESPONSE 200
[warn] ! functions: package.json indicates an outdated version of firebase-functions.
Please upgrade using npm install --save firebase-functions@latest in your functions directory.
[info]
[info] === Deploying to 'humphrey-stretton'...
[info]
[info] i deploying functions, hosting
[debug] [2019-08-19T20:02:34.957Z] > [functions] package.json contents: {
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"dependencies": {
"firebase-admin": "~7.0.0",
"firebase-functions": "^2.2.0"
},
"private": true,
"engines": {
"node": "8"
}
}
[info] i functions: ensuring necessary APIs are enabled...
[debug] [2019-08-19T20:02:34.960Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/cloudfunctions.googleapis.com
[debug] [2019-08-19T20:02:34.962Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/runtimeconfig.googleapis.com
[debug] [2019-08-19T20:02:35.911Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:35.942Z] <<< HTTP RESPONSE 200
[info] + functions: all necessary APIs are enabled
[debug] [2019-08-19T20:02:35.946Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/humphrey-stretton/adminSdkConfig
[debug] [2019-08-19T20:02:36.189Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:36.189Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions
[debug] [2019-08-19T20:02:37.587Z] <<< HTTP RESPONSE 200
[info] i functions: preparing functions directory for uploading...
[debug] [2019-08-19T20:02:37.591Z] >>> HTTP REQUEST GET https://runtimeconfig.googleapis.com/v1beta1/projects/humphrey-stretton/configs
[debug] [2019-08-19T20:02:37.955Z] <<< HTTP RESPONSE 200
[info] i hosting[humphrey-stretton]: beginning deploy...
[info] i hosting[humphrey-stretton]: found 49 files in ./dist
[debug] [2019-08-19T20:02:38.247Z] [hosting] hash cache [ZGlzdA] load error: lines is not defined
[debug] [2019-08-19T20:02:39.418Z] [hosting] hash cache [ZGlzdA] stored for 49 files
[debug] [2019-08-19T20:02:39.418Z] [hosting][hash queue][FINAL]
[debug] [2019-08-19T20:02:39.418Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions/58d5b600938d6162:populateFiles
<request body omitted>
[debug] [2019-08-19T20:02:41.231Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:41.232Z] [hosting][populate queue][FINAL]
[debug] [2019-08-19T20:02:41.232Z] [hosting] uploads queued: 0
[debug] [2019-08-19T20:02:41.232Z] [hosting][upload queue][FINAL]
[info] + hosting[humphrey-stretton]: file upload complete
[debug] [2019-08-19T20:02:41.233Z] [hosting] deploy completed after 3024ms
[debug] [2019-08-19T20:02:41.234Z] >>> HTTP REQUEST GET https://cloudfunctions.googleapis.com/v1/projects/humphrey-stretton/locations/-/functions
[debug] [2019-08-19T20:02:41.847Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:41.848Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/cloudscheduler.googleapis.com
[debug] [2019-08-19T20:02:42.768Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:02:42.770Z] [
{
"config": {
"public": "./dist",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"site": "humphrey-stretton"
},
"site": "humphrey-stretton",
"version": "sites/humphrey-stretton/versions/58d5b600938d6162"
}
]
[info] i hosting[humphrey-stretton]: finalizing version...
[debug] [2019-08-19T20:02:42.772Z] >>> HTTP REQUEST PATCH https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions/58d5b600938d6162?updateMask=status
[debug] [2019-08-19T20:02:43.691Z] <<< HTTP RESPONSE 500
[debug] [2019-08-19T20:02:43.691Z] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Internal error encountered.
[debug] [2019-08-19T20:02:43.697Z] Error Context: {
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"headers": {
"vary": "X-Origin, Referer, Origin,Accept-Encoding",
"content-type": "application/json; charset=UTF-8",
"date": "Mon, 19 Aug 2019 20:02:37 GMT",
"server": "ESF",
"cache-control": "private",
"x-xss-protection": "0",
"x-frame-options": "SAMEORIGIN",
"x-content-type-options": "nosniff",
"alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
"accept-ranges": "none",
"transfer-encoding": "chunked"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "firebasehosting.googleapis.com",
"port": 443,
"hostname": "firebasehosting.googleapis.com",
"hash": null,
"search": "?updateMask=status",
"query": "updateMask=status",
"pathname": "/v1beta1/sites/humphrey-stretton/versions/58d5b600938d6162",
"path": "/v1beta1/sites/humphrey-stretton/versions/58d5b600938d6162?updateMask=status",
"href": "https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions/58d5b600938d6162?updateMask=status"
},
"method": "PATCH"
}
}
}
[debug] [2019-08-19T20:03:31.159Z] ----------------------------------------------------------------------
[debug] [2019-08-19T20:03:31.163Z] Command: C:\Program Files\nodejs\node.exe C:\Users\nath_\AppData\Roaming\npm\node_modules\firebase-tools\lib\bin\firebase.js deploy
[debug] [2019-08-19T20:03:31.163Z] CLI Version: 7.2.3
[debug] [2019-08-19T20:03:31.163Z] Platform: win32
[debug] [2019-08-19T20:03:31.163Z] Node Version: v8.11.4
[debug] [2019-08-19T20:03:31.164Z] Time: Mon Aug 19 2019 21:03:31 GMT+0100 (GMT Summer Time)
[debug] [2019-08-19T20:03:31.164Z] ----------------------------------------------------------------------
[debug]
[debug] [2019-08-19T20:03:31.176Z] > command requires scopes: ["email","openid","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","https://www.googleapis.com/auth/cloud-platform"]
[debug] [2019-08-19T20:03:31.178Z] > authorizing via signed-in user
[debug] [2019-08-19T20:03:31.178Z] [iam] checking project humphrey-stretton for permissions ["cloudfunctions.functions.create","cloudfunctions.functions.delete","cloudfunctions.functions.get","cloudfunctions.functions.list","cloudfunctions.functions.update","cloudfunctions.operations.get","firebase.projects.get","firebasehosting.sites.update"]
[debug] [2019-08-19T20:03:31.179Z] >>> HTTP REQUEST POST https://cloudresourcemanager.googleapis.com/v1/projects/humphrey-stretton:testIamPermissions
[debug] [2019-08-19T20:03:31.753Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:31.756Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/humphrey-stretton
[debug] [2019-08-19T20:03:32.311Z] <<< HTTP RESPONSE 200
[warn] ! functions: package.json indicates an outdated version of firebase-functions.
Please upgrade using npm install --save firebase-functions@latest in your functions directory.
[info]
[info] === Deploying to 'humphrey-stretton'...
[info]
[info] i deploying functions, hosting
[debug] [2019-08-19T20:03:35.057Z] > [functions] package.json contents: {
"name": "functions",
"description": "Cloud Functions for Firebase",
"scripts": {
"serve": "firebase serve --only functions",
"shell": "firebase functions:shell",
"start": "npm run shell",
"deploy": "firebase deploy --only functions",
"logs": "firebase functions:log"
},
"dependencies": {
"firebase-admin": "~7.0.0",
"firebase-functions": "^2.2.0"
},
"private": true,
"engines": {
"node": "8"
}
}
[info] i functions: ensuring necessary APIs are enabled...
[debug] [2019-08-19T20:03:35.060Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/cloudfunctions.googleapis.com
[debug] [2019-08-19T20:03:35.061Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/runtimeconfig.googleapis.com
[debug] [2019-08-19T20:03:36.331Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:36.395Z] <<< HTTP RESPONSE 200
[info] + functions: all necessary APIs are enabled
[debug] [2019-08-19T20:03:36.397Z] >>> HTTP REQUEST GET https://firebase.googleapis.com/v1beta1/projects/humphrey-stretton/adminSdkConfig
[debug] [2019-08-19T20:03:36.893Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:36.894Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions
[debug] [2019-08-19T20:03:38.838Z] <<< HTTP RESPONSE 200
[info] i functions: preparing functions directory for uploading...
[debug] [2019-08-19T20:03:38.842Z] >>> HTTP REQUEST GET https://runtimeconfig.googleapis.com/v1beta1/projects/humphrey-stretton/configs
[debug] [2019-08-19T20:03:40.063Z] <<< HTTP RESPONSE 200
[info] i hosting[humphrey-stretton]: beginning deploy...
[info] i hosting[humphrey-stretton]: found 49 files in ./dist
[debug] [2019-08-19T20:03:40.348Z] [hosting] hash cache [ZGlzdA] load error: lines is not defined
[debug] [2019-08-19T20:03:41.655Z] [hosting] hash cache [ZGlzdA] stored for 49 files
[debug] [2019-08-19T20:03:41.657Z] [hosting][hash queue][FINAL]
[debug] [2019-08-19T20:03:41.657Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions/3132ad5d71caec6a:populateFiles
<request body omitted>
[debug] [2019-08-19T20:03:43.448Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:43.448Z] [hosting][populate queue][FINAL]
[debug] [2019-08-19T20:03:43.448Z] [hosting] uploads queued: 0
[debug] [2019-08-19T20:03:43.448Z] [hosting][upload queue][FINAL]
[info] + hosting[humphrey-stretton]: file upload complete
[debug] [2019-08-19T20:03:43.450Z] [hosting] deploy completed after 3129ms
[debug] [2019-08-19T20:03:43.452Z] >>> HTTP REQUEST GET https://cloudfunctions.googleapis.com/v1/projects/humphrey-stretton/locations/-/functions
[debug] [2019-08-19T20:03:44.390Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:44.395Z] >>> HTTP REQUEST GET https://serviceusage.googleapis.com/v1/projects/humphrey-stretton/services/cloudscheduler.googleapis.com
[debug] [2019-08-19T20:03:45.371Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:45.373Z] [
{
"config": {
"public": "./dist",
"rewrites": [
{
"source": "**",
"destination": "/index.html"
}
],
"site": "humphrey-stretton"
},
"site": "humphrey-stretton",
"version": "sites/humphrey-stretton/versions/3132ad5d71caec6a"
}
]
[info] i hosting[humphrey-stretton]: finalizing version...
[debug] [2019-08-19T20:03:45.376Z] >>> HTTP REQUEST PATCH https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/versions/3132ad5d71caec6a?updateMask=status
[debug] [2019-08-19T20:03:46.564Z] <<< HTTP RESPONSE 200
[debug] [2019-08-19T20:03:46.565Z] [hosting] finalized version for humphrey-stretton:
[info] + hosting[humphrey-stretton]: version finalized
[info] i hosting[humphrey-stretton]: releasing new version...
[debug] [2019-08-19T20:03:46.571Z] >>> HTTP REQUEST POST https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/releases?version_name=sites/humphrey-stretton/versions/3132ad5d71caec6a
[debug] [2019-08-19T20:03:47.542Z] <<< HTTP RESPONSE 500
[debug] [2019-08-19T20:03:47.542Z] <<< HTTP RESPONSE BODY
[error]
[error] Error: HTTP Error: 500, Internal error encountered.
[debug] [2019-08-19T20:03:47.552Z] Error Context: {
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"response": {
"statusCode": 500,
"body": {
"error": {
"code": 500,
"message": "Internal error encountered.",
"status": "INTERNAL"
}
},
"headers": {
"vary": "X-Origin, Referer, Origin,Accept-Encoding",
"content-type": "application/json; charset=UTF-8",
"date": "Mon, 19 Aug 2019 20:03:41 GMT",
"server": "ESF",
"cache-control": "private",
"x-xss-protection": "0",
"x-frame-options": "SAMEORIGIN",
"x-content-type-options": "nosniff",
"alt-svc": "quic=\":443\"; ma=2592000; v=\"46,43,39\"",
"accept-ranges": "none",
"transfer-encoding": "chunked"
},
"request": {
"uri": {
"protocol": "https:",
"slashes": true,
"auth": null,
"host": "firebasehosting.googleapis.com",
"port": 443,
"hostname": "firebasehosting.googleapis.com",
"hash": null,
"search": "?version_name=sites/humphrey-stretton/versions/3132ad5d71caec6a",
"query": "version_name=sites/humphrey-stretton/versions/3132ad5d71caec6a",
"pathname": "/v1beta1/sites/humphrey-stretton/releases",
"path": "/v1beta1/sites/humphrey-stretton/releases?version_name=sites/humphrey-stretton/versions/3132ad5d71caec6a",
"href": "https://firebasehosting.googleapis.com/v1beta1/sites/humphrey-stretton/releases?version_name=sites/humphrey-stretton/versions/3132ad5d71caec6a"
},
"method": "POST"
}
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:36 (9 by maintainers)
Top Results From Across the Web
Firebase Error: HTTP Error: 500, Internal error encountered
It does show that Hosting service is undergoing "Service Outage". But I'm not sure if it's the cause. Share.
Read more >Firebase deploy fails with "Error: HTTP Error: 500, Internal ...
500 errors mean that the backend is experiencing an unexpected issue and GitHub is not a great place to get help with urgent...
Read more >Firebase deploy Error: HTTP Error: 500, Internal error ...
This can happen if you have too many files being saved on the project or if you are making lots of deployments and...
Read more >Firebase Error: HTTP Error: 500, Internal error encountered
HTML : Firebase Error : HTTP Error: 500, Internal error encountered [ Beautify Your Computer : https://www.hows.tech/p/recommended.html ] ...
Read more >500 Internal Server Error | Apigee Edge
The HTTP status code 500 is a generic error response. It means that the server encountered an unexpected condition that prevented it from...
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 Free
Top 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
Error: HTTP Error: 500, Internal error encountered. FROM Egypt !!!
Same in Berlin