I am trying to deploy my python code (main.py) on Google cloud shell and no errors are seen, however I get a NGINX 502 Gateway error when I try to browse my webpage.
Here are few more finding based on my troubleshooting if that helps
- The problem happens only when I try to call Users.py file from main.py on my cloud shell
import datetime
import Users
- Users.py file is residing in the same directory as main.py
- The code runs perfectly fine on my Pycharm env
- The moment I comment out
import Users
- the error is gone. I am able to browse through my webpage
let me know if you need any more information..
thanks