502 Bad Gateway Error when accessing Google Firebase Hosting from Google App Engine

81 views
Skip to first unread message

Martin Hellwagner via StackOverflow

unread,
Jul 11, 2016, 6:04:07 AM7/11/16
to google-appengin...@googlegroups.com

I'm running into a 502 Bad Gateway Error when wanting to access static files hosted on Google Firebase Hosting from a Node.js app hosted on Google App Engine. When accessing the same files from my local machine, everything is working fine. All the CORS headers are defined properly.

Am I missing something else, like an access key for Firebase or so? I believe the problem might lie with my "app.yaml" deployment file.

Thanks for you help!

Screenshot



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/38303991/502-bad-gateway-error-when-accessing-google-firebase-hosting-from-google-app-eng

Martin Hellwagner via StackOverflow

unread,
Jul 11, 2016, 6:29:04 AM7/11/16
to google-appengin...@googlegroups.com

I'm running into a 502 Bad Gateway Error when wanting to access static files hosted on Google Firebase Hosting from a Node.js app hosted on Google App Engine. When accessing the same files from my local machine, everything is working fine. All the CORS headers are defined properly.

Am I missing something else, like an access key for Firebase or so? I believe the problem might lie with my app.yaml deployment file.

502 bad gateway

Martin Hellwagner via StackOverflow

unread,
Jul 14, 2016, 8:34:04 AM7/14/16
to google-appengin...@googlegroups.com

Solved the problem myself! Since most middleware is bundled with Express, it was necessary to manually add the package for my EJS views in package.json.



Please DO NOT REPLY directly to this email but go to StackOverflow:
http://stackoverflow.com/questions/38303991/502-bad-gateway-error-when-accessing-google-firebase-hosting-from-google-app-eng/38374292#38374292

Martin Hellwagner via StackOverflow

unread,
Jul 15, 2016, 4:24:03 AM7/15/16
to google-appengin...@googlegroups.com

Solved the problem myself! Since most middleware is not bundled with Express any more, it was necessary to manually add the package for my EJS views in package.json.

Reply all
Reply to author
Forward
0 new messages