[Bug]: Getting ERR_EMPTY_RESPONSE trying to run ngrok server on Termux #7485
-
Problem descriptionI want to run a Python server on Android using Python FastAPI package. For that I need a server which will run my program, such as daphne. I also need to make it online, with the help of a service like pagekite or ngrok. As Pagekite had some server issues and it's servers were unreachable, I've decided to use ngrok. What steps will reproduce the bug?I followed the steps on using ngrok over ssh carefully. When I run What is the expected behavior?I get the JSON response when going to the ngrok provided online public IP. System informationtermux-info:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Switch to http mode
Try to use curl instead, especially if server returns a plain json output:
Just have tried it with |
Beta Was this translation helpful? Give feedback.
Switch to http mode
Try to use curl instead, especially if server returns a plain json output:
Just have tried it with
python -m http.server 8000
- it worked in both plain tcp and http forwarding. So issue is not with Ngrok, instructions provided on Wiki or Termux itself.