-
Notifications
You must be signed in to change notification settings - Fork 32
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
Error reading frame header
error on sendOneFrameText call
#38
Comments
Error reading frame header
error on sendOneFrameText call
well this was a while ago, but the issue seems to exist in https://github.com/oatpp/example-websocket example also.. built it with tags 1.3.0 for oatpp, oatpp-websocket and the example-websocket, and it seems to fail pretty much the same..
no reaction at all on the server side.. also tried to use latest git commit on oatpp and websocket but that gives same issue. |
So, looks like we need to wait for @lganzzzo attention. BTW: I will try to run the test example and see if it fails on my PC. |
@bjornstromberg What test do you run exactly? I tried client and server tests – both are OK in my setup. |
The output in my case is just invalid API key error:
|
on ubuntu 20.04-lts i built & ran the client and server (the folder names in example-websocket) i expect them to connect to each other via localhost, and the connection message on client gives me the impression that they actually do connect to each other like expected, but i have not analysed the code, its more of an expectation that the client and server modules should work together not with a third party, so i might assume something incorrectly here. i do not see a reason to start a project with a dependency that does not build or the examples are not working since it minimize my irritation of looking for bugs in my code when its really in the library project. edit: to clarify my assumption, the headers for the logic says its a 'ping' 'pong' type of server / client example, so that is what i expected to happen, not a thrown exception, incorrectly marked as info message, although the message is cosmetic issue the exception is not. right now i don't have the free time to diagnose this more, i'll solve the issue at hand with periodic polling instead of websocket which would have been prefeered. more details: |
Ok, I will try a Linux build as well. From my understanding, the client test project tries to connect to the auto connectionProvider = oatpp::network::tcp::client::ConnectionProvider::createShared({"demo.piesocket.com", 80});
auto connector = oatpp::websocket::Connector::createShared(connectionProvider);
auto connection = connector->connect("v3/channel_1?api_key=oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm¬ify_self"); |
yea had to check to update oatpp/example-websocket#7 so half of it is a 'assumption is the mother of all fuckups' type of issue but it still does throw when running the example so other half is still a issue in both cases.. |
There must be something special to the hardware etc. I have the issue reports only for 2 people from ˜1000. For the rest it works as expected. The test pipelines in the repository are also OK: https://dev.azure.com/lganzzzo/lganzzzo/_build/results?buildId=12683&view=logs&j=0cfa9771-412f-553c-ddf2-7b1509abac1d&t=7b592fa4-1f09-5e38-86b4-b4ae55b2ac10 If I were able to reproduce the issue... |
yea would not even have tried the examples if the library would have flagged anything as issues.. unfortunately this is not prioritized for me at this time, my bottleneck is hours in a day.. |
Hello guys, It looks like two different issues to me. The first one (the easy one) @bjornstromberg: as @rhard mentioned:
The WS client example connects to the |
Hey @rhard , Can you please post your
|
I am currently using version 1.3.0, and this issue occurs on Windows, but not on Linux. |
I have a strange error for one of the users which I cannot debug as I can't reproduce it locally. Basically, the WS connection started normally and can receive messages with no problem. However, when for the first time the message needs to be sent by calling
sendOneFrameText
, I have an immediate error in thelisten()
loop. Next you can find the log and the WS client implementation. Note the short time betweensendOneFrameText
call and the error, so there shouldn't be any response yet from the server.Do you have an idea, what can it be? For most of the users, the code is working without any problem.
OATPP Version 1.3.0
The text was updated successfully, but these errors were encountered: