简体   繁体   中英

Can't deploy Flask application to Google App Engine with web3 library

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!

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM