flutter-webrtc / flutter-webrtc-server

A simple WebRTC signaling server for flutter-webrtc.
MIT License
756 stars 304 forks source link

Error while running on Production #22

Closed mrkahfi closed 4 years ago

mrkahfi commented 4 years ago

Thank you for this great work. I have tested this server app on my localhost (address: 0.0.0.0:8086) and it worked seamlessly. However when i tested it on production (Ubuntu VPS), it said that the server cannot be reached. I have tried using Nginx as a reverse proxy and i got still the same. Last, i tried to deploy using Heroku. But when i accessed it from browser (through address: mpfamily-webrtc.herokuapp.com or mpfamily-webrtc.herokuapp.com:8086), i got these errors.

Process exited with status 1
2019-12-10T07:42:20.470667+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=mpfamily-webrtc.herokuapp.com request_id=29d78ba3-a655-4c85-8a42-4f285f734ab4 fwd="182.1.89.131" dyno= connect= service= status=503 bytes= protocol=https
2019-12-10T07:42:21.632697+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=mpfamily-webrtc.herokuapp.com request_id=1aff0606-3b70-40c0-a6fc-8b7d94d346e3 fwd="182.1.89.131" dyno= connect= service= status=503 bytes= protocol=https

I supposed that it is a problem with the port. But i still cannot figure out how to cope with this error, since basically i'm a mobile developer, not a NodeJS developer.

Is there any specific step i missed while deploying on production? Thank you