davidroyer / nuxt-ssr-firebase

Nuxt.js Universal App with SSR via Firebase Functions and Firebase Hosting
https://nuxtssrfire.firebaseapp.com/
278 stars 62 forks source link

Nuxt Server Error Page shows up on deployment to firebase #1

Closed chanlito closed 7 years ago

chanlito commented 7 years ago

I'm try to setup a nuxt project with cloud functions, but it's not working. I'm following your project here as a guide. But I still got Nuxt Server Error Page.

davidroyer commented 7 years ago

I’ll try to do in the next few days. If the meantime, if you have repo with the source you could share or provide more details such as which version of nuxt you’re using, etc, feel free to share

davidroyer commented 7 years ago

@BruceHem I tried deploying last night and I received the same issue. I attempted to resolve the issue but was unable. Something has changed since I had last deployed but not sure what. Planning to spend more time this weekend and I'll update you when resolved. Thanks for making me aware of the issues.

viktorvillalobos commented 7 years ago

The same for me ," 504 Gateway Time-out" in deploy.

chanlito commented 7 years ago

@viktorvillalobos I get 504 when i set it nuxt config dev to true.

viktorvillalobos commented 7 years ago

@BruceHem now it is returning error 500, reviewing the log I realize this error

"Billing account not configured. External network is not accessible and quotas are severely limited. Configure billing account to remove these restrictions"

Stackoverflow answer:

"The restriction is about outbound access - e.g. can your Function request resources from the general internet. Its absolutely fine to use a function to respond to a webhook, or to access Google-internal services such a the Realtime Database.

If you wanted to call a third party web service (for example) you'd need to enable billing."

So we need to pay. 🗡

jelmerf commented 7 years ago

Deploy seems fine here. It's just that visiting the site subsequently results in a 504 gateway timeout.

@viktorvillalobos what external network calls are taking place making that message the explanation of our 504 error? Isn't it just a warning?

It would be great if we could get this to work; nuxt and firebase together would be a potent combination IMO.

chanlito commented 7 years ago

@viktorvillalobos I'm on paid plan, can't either. Get Nuxt server error page.

@jelmerf Yes, Firebase + Nuxt = Powerful 🔥

chanlito commented 7 years ago

https://github.com/nuxt/nuxt.js/issues/2047#issuecomment-347015230