Replies: 15 comments
-
I don't understand how to interpret the first image, because those are not logs that come from this package. What does the red rectangle indicate? Can you generate logs from this package for an event that isn't being reported? |
Beta Was this translation helpful? Give feedback.
-
The red box means that it does not receive information from the @sio.on('sub_gps') event, and the blue box means that it did. The information that I print is in HEX value taken from the event. I attach the log that I have at the time that I do not receive all the information |
Beta Was this translation helpful? Give feedback.
-
How can I make your HEX values to logged messages? That's the only way I can find what's different about the events for which you don't receive data. |
Beta Was this translation helpful? Give feedback.
-
I think that I expressed myself wrong, the data comes to me in json and later I convert it into HEX. I am using the next libraries and I enable the logger and the log prints the following message with correct data But sometimes the log prints empyt data The problem is that the server always sends information, but I receive empty data. |
Beta Was this translation helpful? Give feedback.
-
@jona972 you are mixing up two different levels of logging. The |
Beta Was this translation helpful? Give feedback.
-
There is some way to detect when no information arrives in events because the server always sends information and I don't know where it is getting lost. Additionally, when I restart my client, all the information arrives without getting lost. |
Beta Was this translation helpful? Give feedback.
-
@jona972 you are still not giving me any information I can use to troubleshoot this. I understand that you have found some issue with the data that arrives with events, but now I need to see how this reflects in my logs. As I said, each event that arrives in your client will print two lines in the log:
What you haven't shown me yet, is logs that show missing data. All the |
Beta Was this translation helpful? Give feedback.
-
I understand you, but sometimes my client receives only the following messages:
|
Beta Was this translation helpful? Give feedback.
-
These are all correct. I need to see a log line that starts with |
Beta Was this translation helpful? Give feedback.
-
Oh I got you, I always receive the two logs message but in my code I print the data received:
message.hex() is the data transformed to hex string For example:
Also you can see more data printed in the first image, but in the logs that I attached, the data received is not printed (I even waited all day and it didn't print), so I think that my client doesn't receive data. When I restart my client the data are printed normally. I don't know if I need to add a |
Beta Was this translation helpful? Give feedback.
-
I think I did not interpret the problem correctly. Based on what you reported, my assumption was that your If the handler isn't being called, then there can be many reasons, like maybe the async application is blocked. I can't really help you address the issue, as it is likely it is something your application is doing to block the asyncio loop. |
Beta Was this translation helpful? Give feedback.
-
I think the event is not called because the message is not printed, is there any way to detect when the |
Beta Was this translation helpful? Give feedback.
-
@jona972 if your server does not respond to requests, then it is blocked. |
Beta Was this translation helpful? Give feedback.
-
For example, I have two devices A and B, the server always sends information from the two devices, but after a long time my client stops receiving information from device B but from device A if I get information. I need to reboot the system so that I can get back information from both devices. In this case also |
Beta Was this translation helpful? Give feedback.
-
@jona972 You are asking me questions that I cannot really answer, as I don't have the whole picture. You are missing some messages, right? You say that the server is sending these messages, but the client isn't receiving them. That is very unlikely, and you haven't provided any confirmation that the server is sending data that the client is not receiving. As I said several times before, this is something that you need to debug on your server and clients, and if you determine that the server is sending data that the client isn't receiving then I can investigate. So far you haven't shown any confirmation of this, or any code that I can use to reproduce the issue or understand your use case better, so I can't really comment any more. I just don't know. Sorry! |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have a client made in python, it must always be connected, but after a certain time the information does not reach me complete
As can be seen in the image there is information that does not arrive but from others.
In this image you can see that the information was received, but in the @sio.on() event I did not receive any information.
I really don't understand why that happens, the only way I found is by restarting the program and there if I get all the information again. I hope you can help me, thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions