Connection to ws://...?format=json&schemaVersion=2.2.0 is failed #94
-
Hi
I found out that Observer My problems:
|
Beta Was this translation helpful? Give feedback.
Replies: 12 comments 4 replies
-
Hi, I will take a look on this soon, thank you for raising it. The server side does not log whats the problem with the session if it has, that's something we need to add. Has the websocket onerror at the client side send a reason or message? if observer closes it should have some reason observer:1.0.0 fully compatible with 2.2.0, and 2.1.0 schema, so that's certainly not the issue. |
Beta Was this translation helpful? Give feedback.
-
Ran to this problem before. Before client-monitor-js:1.3.0, the package.json had the dependency pointing to schemas:^2.1.0, I think and then it tries the highest version available at the moment of resolving the package. so that one is fixed from 1.3.0 because the package version of the schema is fixed. but like I said compatibility is not the issue between schema:2.2.0 and observer:1.0.0 |
Beta Was this translation helpful? Give feedback.
-
Thanks, This is good news... |
Beta Was this translation helpful? Give feedback.
-
I tried client 1.1.1 and it's working but client 1.3 still disconnects with this error:
And this is the server log:
|
Beta Was this translation helpful? Give feedback.
-
updated the compatibility table #95 |
Beta Was this translation helpful? Give feedback.
-
I checked the full-stack-eaxmple with docker, and running local but the client-monitor was connected.
and the last line is the version. I made a new branch #95 and added warn logs for not accepted samples as well. |
Beta Was this translation helpful? Give feedback.
-
Oh, That was my mistake. I had Beta version inside docker compose. Changed it to 1.0.0 but it didn't fix. This is my docker-compose: observer:
restart: always
image: observertc/observer:1.0.1-SNAPSHOT.version-1.0.1
ports:
- 7080:7080
environment:
- MICRONAUT_CONFIG_FILES=/my-config.yaml
volumes:
- ./observer-config/config.yaml:/my-config.yaml
|
Beta Was this translation helpful? Give feedback.
-
@rostamiani , please try run observer with command:
there is a log line:
tells the supported schema versions.
Or something like this.
Please keep me update how it goes |
Beta Was this translation helpful? Give feedback.
-
I ran your image and my local schema is in the supported list:
Server:
But nothing happened in the server log when I tried to connect!
|
Beta Was this translation helpful? Give feedback.
-
I removed all Observer images and downloaded again. Now this is the schema list:
But error still exists. ws connection fails and there is no logs at observer! |
Beta Was this translation helpful? Give feedback.
-
Oh, I forgot to send my code 😅 let monitor;
function observeRtcStart() {
monitor = createClientMonitor({
collectingPeriodInMs: 3000,
samplingPeriodInMs: 3000,
sendingPeriodInMs: 3000,
sampler: {
roomId: 'room-id-12345',
},
sender: {
websocket: {
urls: [
'ws://localhost:7080/samples/myService/my-webrtc-app',
]
},
format: 'json'
}
});
const mediaDevice = streamingModule.getMediasoupDevice();
const statsCollector = monitor.collectors.addMediasoupDevice(mediaDevice);
} |
Beta Was this translation helpful? Give feedback.
-
Check your local firewall rules or maybe your VPN was enabled, don't know but it does not seem to be an observer issue but a network connectivity issue. |
Beta Was this translation helpful? Give feedback.
Check your local firewall rules or maybe your VPN was enabled, don't know but it does not seem to be an observer issue but a network connectivity issue.