-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Failed to parse channel schema on example_msg #278
Comments
When I run Screen.Recording.2022-11-21.at.3.47.24.PM.movWhich version of studio are you using? Does it work on studio.foxglove.dev? |
Thanks for the quick reply, it's Foxglove Studio version 1.31.1 in ubuntu, it does not work on studio.foxglove.dev, shows a similar error. Error: invalid encoding |
Have you modified anything in the example server? This sounds like a base64 decoding error, coming from here. Can you use the chrome dev tools to inspect the websocket messages and see what channel/schema data the app is receiving? |
I have not modified anything in the server.
Also did that for the python server that works.
Are they meant to be different? The fact that cpp version shows up to have a 'C\u' seems like an issue, what can I do for the decoding? |
Yes, the \u0000 (null byte) is definitely wrong. It could be an error in this function, but I don't see the same error. On my machine I get:
No, the two examples you shared are not expected to be the same because they are using different schemas (ExampleMsg vs foxglove.SceneUpdate). However, this python example also uses SceneUpdate. |
@windsice can you please try out this change and let me know if that fixes the problem? https://github.com/foxglove/ws-protocol/pull/279/files |
Yes that fixed it, thank you. |
You need to enable the topic manually. See: https://foxglove.dev/docs/studio/panels/3d#introduction |
**Public-Facing Changes** Fixed a base64 encoding issue in the C++ example_server. **Description** Fixes #278
Description
I was trying out the Cpp live example_server, and got the following error when I try to view the data. I tried with the python server example, that one works, but not the cpp, can someone can look into that? thanks.
Failed to parse channel schema on example_msg
Error: invalid encoding
at base64.decode (file:///snap/foxglove-studio/20/resources/app.asar/renderer/main.js:434:42123)
at EventEmitter. (file:///snap/foxglove-studio/20/resources/app.asar/renderer/main.js:4808:481)
at EventEmitter.emit (file:///snap/foxglove-studio/20/resources/app.asar/renderer/main.js:1202:12257)
at ws.onmessage (file:///snap/foxglove-studio/20/resources/app.asar/renderer/main.js:4807:210908)
Steps To Reproduce
make example_server under the cpp folder.
Expected Behavior
Able to see protobuf message from studio.
Actual Behavior
Shows up the error as what Description described.
The text was updated successfully, but these errors were encountered: