atyenoria / janus-webrtc-gateway-docker

Perfect Docker Image for Media Streaming Expert User ( https://github.com/meetecho/janus-gateway )
688 stars 200 forks source link

[transports/janus_http.c:janus_http_handler:1239] Invalid url / #48

Closed json1994 closed 1 year ago

json1994 commented 4 years ago

[transports/janus_http.c:janus_http_handler:1239] Invalid url / How to deal with this problem?

maanas commented 4 years ago

The server root (/janus by default, but configurable), which you only POST to in order to create a Janus session;

Ref: https://janus.conf.meetecho.com/docs/rest.html

adiii717 commented 4 years ago

This is not an error and you can ignore this Most probably this occurs when you call API endpoint with just / instead of /janus/info or any other invalid path will be printed in the logs.

To reproduce this error jus try this

curl https://janus.yourhost.com:8088/

you will see in the logs

[ERR] [transports/janus_http.c:janus_http_handler:1213] Invalid url /

While the correct to check the health of the instance should be

curl https://janus.yourhost.com:8088/janus/info