Home > Back-end >  Can't deploy Flask application to Google App Engine with web3 library
Can't deploy Flask application to Google App Engine with web3 library

Time:08-11

If I include the line from web3 import Web3 and deploy my flask server to app engine it says deploy successful, but when I open the page in browser I get the error: 502 bad gateway (nginx).

If I run it locally everything works fine.

Why could this be happening?

I would appreciate any help!

CodePudding user response:

Most likely it wasn't installed in production(it works in local environment because it's installed in your local environment).

You need to include it in your requirements.txt file and then Google will install it when your App is first started

  • Related