Closed wf4java closed 10 months ago
what version are you using? can you show me your code?
version 3.4.0
code:
I also noticed when this happens, sometimes these errors:
java.io.UncheckedIOException: Cannot read smile
at it.auties.whatsapp.util.Smile.readValue(Smile.java:95)
at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:368)
at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:355)
at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeKeysFromId(DefaultControllerSerializer.java:188)
at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeKeys(DefaultControllerSerializer.java:176)
at it.auties.whatsapp.controller.Keys.of(Keys.java:233)
at it.auties.whatsapp.api.OptionsBuilder.
version 3.4.0
code:
I'll test it when I'm home
can you test with the Master branch?
I don't know why, but I can't compile the project, I downloaded it and I can't compile. Should I wait for the release in maven?
I don't know why, but I can't compile the project, I downloaded it and I can't compile. Should I wait for the release in maven?
Can you try now? I've pushed a new commit Also delete your session when testing
I'm doing tests, please wait
The error has not disappeared, but right now it somehow arises differently, I do not fully understand how. But he was able to work several hours in a row several times. And the same error
i figured it out, I'll push a commit later today
java.io.UncheckedIOException: Cannot read smile
at it.auties.whatsapp.util.Smile.readValue(Smile.java:95)
at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:368)
at it.auties.whatsapp.controller.DefaultControllerSerializer$SmileFile.read(DefaultControllerSerializer.java:355)
at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeStoreFromId(DefaultControllerSerializer.java:208)
at it.auties.whatsapp.controller.DefaultControllerSerializer.deserializeStore(DefaultControllerSerializer.java:196)
at it.auties.whatsapp.controller.Store.of(Store.java:398)
at it.auties.whatsapp.api.OptionsBuilder.
I downloaded master branch 2 hours ago and here are the errors
I downloaded master branch 2 hours ago and here are the errors
delete that session switch fo 3.4.2, the latest release try again
wait for maven central(10/15 minutes) or use the master branch
The error didn't go away.
WARNING: Cannot decode message(id: 3A4F24E1629B0619A557, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found
июн. 02, 2023 8:02:23 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt
WARNING: Cannot decode message(id: 3A63D5CCD91FA467DAB5, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found
июн. 02, 2023 8:02:23 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt
WARNING: Cannot decode message(id: 3A6435F8F229421F27D5, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found
Connected
Logged in
июн. 02, 2023 8:02:25 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt
WARNING: Cannot decode message(id: 13770A2223034F7A, from: 79635946310:48@s.whatsapp.net): Key used already or never filled
The error didn't go away.
WARNING: Cannot decode message(id: 3A4F24E1629B0619A557, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found июн. 02, 2023 8:02:23 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt WARNING: Cannot decode message(id: 3A63D5CCD91FA467DAB5, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found июн. 02, 2023 8:02:23 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt WARNING: Cannot decode message(id: 3A6435F8F229421F27D5, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found Connected Logged in июн. 02, 2023 8:02:25 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt WARNING: Cannot decode message(id: 13770A2223034F7A, from: 79635946310:48@s.whatsapp.net): Key used already or never filled
did you delete all of the sessions?
Yes, I deleted all sessions
Yes, I deleted all sessions
when does the error happen exactly?
Before, this error occurred after 1-2 hours or when I restarted the program there was a chance that this error would occur. But this time it was different, it worked for 4-5 hours, and I went to sleep and turned off the computer. After 12-15 hours I turned it on again, and the error happened again.
Before, this error occurred after 1-2 hours or when I restarted the program there was a chance that this error would occur. But this time it was different, it worked for 4-5 hours, and I went to sleep and turned off the computer. After 12-15 hours I turned it on again, and the error happened again.
this is very good. in short when you start the bot, all of the messages that were sent while you were offline are sent to you for decryption. the decryption process needs to happen in chronological order(it has to do with the signal protocol), but if the bot receives too many messages the possibility of the order mixing up grows exponentially as the decoding actually happens asynchronously. I thought I fixed this error, but it looks like that's not the case. I'll have a fix shortly, in the meanwhile if you don't stop your bot it will not happen again.
Could be fixed in 3.4.5
Hi Auties00. Got an another “Cannot decode message” warning at v3.5.1.
nov. 25, 2023 3:24:35 PM it.auties.whatsapp.socket.MessageHandler decodeMessage WARNING: Cannot decode message(id: 3A1B6CE56625C2FE1AD3, from: 554499981486@s.whatsapp.net): message_decryption
nov. 25, 2023 3:24:47 PM it.auties.whatsapp.socket.MessageHandler decodeMessage WARNING: Cannot decode message(id: 3A2EC2F9F74D0D467271, from: 120363145496978942@g.us): Cannot find state with id 1586454393
Could you help me?
Hi Auties00. Got an another “Cannot decode message” warning at v3.5.1.
nov. 25, 2023 3:24:35 PM it.auties.whatsapp.socket.MessageHandler decodeMessage WARNING: Cannot decode message(id: 3A1B6CE56625C2FE1AD3, from: 554499981486@s.whatsapp.net): message_decryption
nov. 25, 2023 3:24:47 PM it.auties.whatsapp.socket.MessageHandler decodeMessage WARNING: Cannot decode message(id: 3A2EC2F9F74D0D467271, from: 120363145496978942@g.us): Cannot find state with id 1586454393
Could you help me?
Use the master branch, this issue has already been fixed a long time ago
2023 2:38:57 PM it.auties.whatsapp.socket.MessageHandler sendRetryReceipt WARNING: Cannot decode message(id: 3A38DB588622A0317A6B, from: 79635946310@s.whatsapp.net): Cannot decrypt message: no suitable session found
Tranlate: Waiting for a message. It can take some time. More ↓↓↓↓↓↓↓↓↓↓↓↓
Tranlate: Synchronization is in progress. Don't close the app ↓↓↓↓↓↓↓↓↓↓↓↓
The first time everything is fine for 30-60 minutes, then this garbage starts