OpenSight / janus-cloud

a cluster solution for Janus WebRTC server, by API proxy approach
GNU Affero General Public License v3.0
207 stars 49 forks source link

Question: Do we need to install the janus gateway dependancies on the janus-proxy vm? #29

Closed mirr254 closed 2 years ago

mirr254 commented 3 years ago

I am struggling to make janus-proxy work.

I am getting this error

[Tue Oct 05 2021 11:11:52.613]  LOG      {"async": true, "cache": false, "conten
tType": "application/json", "data": "{\"janus\":\"create\",\"transaction\":\"fKh
cjWeL66Ut\"}", "dataType": "json", "error": [Function error], "success": [Functi
on success], "type": "POST", "url": "https://52.90.187.34:8288"}
[Tue Oct 05 2021 11:11:52.613]  WARN     creating session....
[Tue Oct 05 2021 11:11:52.998]  LOG      *********error***********
[Tue Oct 05 2021 11:11:53.470]  LOG      {"DONE": 4, "HEADERS_RECEIVED": 2, "LOA
DING": 3, "OPENED": 1, "UNSENT": 0, "_aborted": false, "_cachedResponse": undefi
ned, "_hasError": true, "_headers": {"content-type": "application/json"}, "_incr
ementalEvents": false, "_lowerCaseResponseHeaders": {}, "_method": "POST", "_per
fKey": "network_XMLHttpRequest_https://52.90.187.34:8288", "_requestId": null, "
_response": "Handshake failed", "_responseType": "", "_sent": true, "_subscripti
ons": [], "_timedOut": false, "_trackingName": "unknown", "_url": "https://52.90
.187.34:8288", "readyState": 4, "responseHeaders": undefined, "status": "error",
 "timeout": 0, "upload": {}, "withCredentials": true}

Looking at the logs only thing I see is /janus 500 and some unreadable characters

I am not sure how to debug this

jamken commented 3 years ago

what is this log? and whant actions make this log out? It looks strange to me, and it's output by janus-proxy core

mirr254 commented 3 years ago

@jamken I can't create a session. "_cachedResponse": undefined, "_hasError": true, "_headers": {"content-type": "application/json"}, "_incrementalEvents": false, "_lowerCaseResponseHeaders": {}, "_method": "POST", "_perfKey": "network_XMLHttpRequest_https://52.90.187.34:8288", "_requestId": null, " _response": "Handshake failed",

I can see "_requestId": null, " and also handshake failed

jamken commented 3 years ago

Hi mirr254, Janus-cloud does not support http(restful) API of Janus, it only support websocket API of Janus, So that you should use the websocket API to create the session instead of http(restful) API。 also, your infomation may be a log of a http client tool which I don't know, maybe you can use curl as http client and give me the post url