-
Notifications
You must be signed in to change notification settings - Fork 903
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error on firebase serve "An unexpected error has occurred." #485
Comments
What does your firebase.json look like? |
I think you probably have a misformatted firebase.json. Best way to fix it is to ensure that firebase.json looks like: { Please re-open if this does not fix it. |
Had the same problem. the default |
hi bug is sloved |
In Mac to start a local server we have to giv admin rights or use sudo at start. by using $sudo firebase serveproblem fix. |
If you installed firebase tools without using sudo (i.e. |
@laurenzlong even though I installed
Here is the error from
|
@neerajyadav Make sure your |
@thechenky I'm assuming this file is created when either when we install |
@neerajyadav can you open a new issue with the full contents of your debug log? It's easier to track new issues like this as... well, new issues. You have most of the information ready that the new issue template asks, and it would be great if you could provide the output of |
sudo firebase serve |
Hi @laurenzlong, I'm not sure I should be opening a new issue, for this one:
|
Lauren, here's my
|
|
@hpoit open a new issue with the required information (including relevant parts of the debug log). Thanks. |
Version info
3.12.0
Steps to reproduce
I work in macOS Sierra
1.- firebase init
2.- create a index.html
3.- firebase server
ERROR
I reinstalled firebase-tools
Expected behavior
Start a local server
Actual behavior
[debug] [2017-10-03T02:27:50.194Z] ----------------------------------------------------------------------
[debug] [2017-10-03T02:27:50.197Z] Command: /usr/local/Cellar/node/8.5.0/bin/node /usr/local/bin/firebase serve
[debug] [2017-10-03T02:27:50.197Z] CLI Version: 3.12.0
[debug] [2017-10-03T02:27:50.197Z] Platform: darwin
[debug] [2017-10-03T02:27:50.197Z] Node Version: v8.5.0
[debug] [2017-10-03T02:27:50.198Z] Time: Mon Oct 02 2017 23:27:50 GMT-0300 (-03)
[debug] [2017-10-03T02:27:50.198Z] ----------------------------------------------------------------------
[debug]
[debug] [2017-10-03T02:27:50.211Z] > 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] [2017-10-03T02:27:50.211Z] > authorizing via signed-in user
[debug] [2017-10-03T02:27:50.214Z] > refreshing access token with scopes: ["email","https://www.googleapis.com/auth/cloud-platform","https://www.googleapis.com/auth/cloudplatformprojects.readonly","https://www.googleapis.com/auth/firebase","openid"]
[debug] [2017-10-03T02:27:50.214Z] >>> HTTP REQUEST POST https://www.googleapis.com/oauth2/v3/token { refresh_token: '1/XIefl2qhxtkuDgmPe_cio0pfzWJt-JWWGo-MFXs5wrk',
client_id: '563584335869-fgrhgmd47bqnekij5i8b5pr03ho849e6.apps.googleusercontent.com',
client_secret: 'j9iVZfS8kkCEFUPaAeJV0sAi',
grant_type: 'refresh_token',
scope: 'email https://www.googleapis.com/auth/cloud-platform https://www.googleapis.com/auth/cloudplatformprojects.readonly https://www.googleapis.com/auth/firebase openid' }
Mon Oct 02 2017 23:27:50 GMT-0300 (-03)
[debug] [2017-10-03T02:27:50.649Z] <<< HTTP RESPONSE 200
[debug] [2017-10-03T02:27:50.725Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/projects/all-new-thiares-admin
Mon Oct 02 2017 23:27:50 GMT-0300 (-03)
[debug] [2017-10-03T02:27:52.357Z] <<< HTTP RESPONSE 200
[debug] [2017-10-03T02:27:52.358Z] >>> HTTP REQUEST GET https://admin.firebase.com/v1/database/all-new-thiares-admin/tokens
Mon Oct 02 2017 23:27:52 GMT-0300 (-03)
[debug] [2017-10-03T02:27:53.241Z] <<< HTTP RESPONSE 200
[info]
[info] === Serving from '/Users/cristoferfuentes/Documents/Proyectos/AllNewThiaresAdmin'...
[info]
[debug] [2017-10-03T02:27:53.244Z] >>> HTTP REQUEST GET https://cloudresourcemanager.googleapis.com/v1/projects/all-new-thiares-admin
Mon Oct 02 2017 23:27:53 GMT-0300 (-03)
[debug] [2017-10-03T02:27:54.539Z] <<< HTTP RESPONSE 200
[debug] [2017-10-03T02:27:54.539Z] >>> HTTP REQUEST GET https://mobilesdk-pa.googleapis.com/v1/projects/387704735326/clients/_:getWebAppConfig
Mon Oct 02 2017 23:27:54 GMT-0300 (-03)
[debug] [2017-10-03T02:27:55.998Z] <<< HTTP RESPONSE 200
[debug] [2017-10-03T02:27:56.015Z] TypeError: Cannot read property 'public' of undefined
at Server. (/usr/local/lib/node_modules/firebase-tools/lib/serve/hosting.js:34:17)
at Object.onceWrapper (events.js:314:30)
at emitNone (events.js:105:13)
at Server.emit (events.js:207:7)
at emitListeningNT (net.js:1370:10)
at _combinedTickCallback (internal/process/next_tick.js:135:11)
at process._tickDomainCallback (internal/process/next_tick.js:218:9)
[error]
[error] Error: An unexpected error has occurred.
The text was updated successfully, but these errors were encountered: