Webrtc: PATCH method not allowed #4307
-
QuestionI deployed my mediamtx server in k8s to serve webrtc stream. Without nginx it works fine, but once I add nginx I get 405 method not allowed, in the request (Method Patch) /live/1/whep/session_id Bellow is my nginx config. I've been stuck with this for more than 2 days, your help would be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
I'm posting this answer in case someone encounters the same issue in the future. To fix this, you have two options:
I hope this helps! |
Beta Was this translation helpful? Give feedback.
I'm posting this answer in case someone encounters the same issue in the future.
The problem was that signaling started from /stream/live, while the route in MediaMTX was /live. As a result, the later PATCH request was sent to /live/SESSION_ID, which didn’t exist in my Nginx configuration.
To fix this, you have two options:
I hope this helps!