Skip to content
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

Connecting to server results in bad method error #14

Open
kletze opened this issue Aug 19, 2023 · 1 comment
Open

Connecting to server results in bad method error #14

kletze opened this issue Aug 19, 2023 · 1 comment

Comments

@kletze
Copy link
Contributor

kletze commented Aug 19, 2023

Sending commands from client to server results in a bad method error.

Steps to reproduce the error:

The server is up and running.
Sending commands via netcat from the client:
echo -e "PING0\x0\x0\x0\x0" | nc 10.42.0.200 4001
Server and client are directly connected via lan. The error also occurs when sending the command directly from the raspberry pi to the localhost.

Behaviour of the server:

server returns a bad method error:
Error: bad method
It seems like the method ws.accept() in main fails.

Comment

I followed all the steps in the tutorial. The simple_opencv_app and the usb_test_rpiasgige are running without problems.
Am I missing something related to the network connection?
Could this be related to this Issue?

@kletze
Copy link
Contributor Author

kletze commented Aug 20, 2023

The error is caused by the command using the syntax echo 'PING' | websocat ws://10.42.0.200:4001 returns the expected PONG

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant