alexdlaird / pyngrok

A Python wrapper for ngrok
https://pyngrok.readthedocs.io
MIT License
421 stars 59 forks source link

Ngrok not working in colab #76

Closed debparth closed 3 years ago

debparth commented 3 years ago

Describe the Bug It was working fine before Dec 2020 but in Jan 2021. I'm not able to create a tunnel.

Before, I was able to create tunnel and then use it for streamlit app. But now, I'm not able too cause whenever the link gets generated and I open it then it says Tunnel XXXXXX.ngrok.io not found.

Steps to Reproduce I tried both ways:

  1. Downloading the zip file in colab and then creating tunnel
  2. Installing the pyngrok and then creating tunnel

but neither of them is working.

Expected Behavior It should be able to create a tunnel.

Environment

Additional Context You can try it here: https://colab.research.google.com/drive/1BZFSfzLGiZ-1inZ8S9xQPCQFVemzPrpO?usp=sharing

github-actions[bot] commented 3 years ago

While pyngrok is a wrapper for ngrok, we have no official affiliation with ngrok and thus cannot triage issues related to it.

For help troubleshooting ngrok, ask a question on a support forum like Stack Overflow. You can refer to pyngrok's documentation and ngrok's documentation to help you write the best possible question.

github-actions[bot] commented 3 years ago

This is a bug tracker and not a support forum.

While we'd love to be able to support every person on their projects, that would simply be infeasible. Luckily, that's what the helpful developer community over at Stack Overflow is for! Please create a question there with the \"pyngrok\" tag if what you're looking for is a programming question or you need help with an integration. You can refer to pyngrok's own documentation to help you write the best possible question.

alexdlaird commented 3 years ago

Relevant Stack Overflow questions to follow, for others who come across this. It appears Colab changed something. Thus far no solution has been found.

https://stackoverflow.com/questions/65966425/tunnel-not-found-error-pyngrok-streamlit-collab https://stackoverflow.com/questions/65976692/ngrok-not-working-in-colab-after-dec-2020 https://stackoverflow.com/questions/65950128/need-help-flask-ngrok-in-colab-not-working-anymore

alexdlaird commented 3 years ago

I reached out to ngrok, and they just got back to me. They confirmed that they had inadvertently started blocking connections to Colab in the last week, and they have now fixed this. I just tested this again myself as well, and sure enough, it's fixed!

debparth commented 3 years ago

Thanks @alexdlaird for letting me know. Yea... it's fixed.