Exception after connection
See original GitHub issueIt used to and works fine but throws following exception after socket is connected
INFO: Exception thrown from onError method public void it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(java.lang.Throwable). java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:568) at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553) at org.glassfish.tyrus.core.AnnotatedEndpoint.onError(AnnotatedEndpoint.java:583) at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:556) at org.glassfish.tyrus.core.AnnotatedEndpoint.access$100(AnnotatedEndpoint.java:66) at org.glassfish.tyrus.core.AnnotatedEndpoint$WholeHandler$1.onMessage(AnnotatedEndpoint.java:652) at org.glassfish.tyrus.core.TyrusSession.notifyMessageHandlers(TyrusSession.java:559) at org.glassfish.tyrus.core.TyrusEndpointWrapper.onMessage(TyrusEndpointWrapper.java:800) at org.glassfish.tyrus.core.TyrusWebSocket.onMessage(TyrusWebSocket.java:183) at org.glassfish.tyrus.core.frame.BinaryFrame.respond(BinaryFrame.java:70) at org.glassfish.tyrus.core.ProtocolHandler.process(ProtocolHandler.java:819) at org.glassfish.tyrus.client.TyrusClientEngine$TyrusReadHandler.handle(TyrusClientEngine.java:725) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter$ProcessTask.execute(GrizzlyClientFilter.java:452) at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:91) at org.glassfish.tyrus.container.grizzly.client.TaskProcessor.processTask(TaskProcessor.java:68) at org.glassfish.tyrus.container.grizzly.client.GrizzlyClientFilter.handleRead(GrizzlyClientFilter.java:248) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:88) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:248) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:181) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:121) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:99) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:51) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:510) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:82) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:83) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:34) at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:101) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:535) at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:515) at java.base/java.lang.Thread.run(Thread.java:833) Caused by: java.lang.RuntimeException: An uncaught exception was thrown during the WebSocket lifecycle at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onError(WhatsappWebSocket.java:243) ... 33 more Caused by: java.lang.IllegalArgumentException: Cannot deserialize { "1" : { "1" : "917012233980@s.whatsapp.net", "2" : 1, "3" : "3ADCD8A5A7E5AF5BEC9F" }, "2" : { "8" : { "17" : { "1" : "3AC991E84A0028B65BC4", "2" : "917012233980@s.whatsapp.net", "3" : { "8" : { "1" : "https://mmg.whatsapp.net/d/f/AgowQNNAOk9-2Jv6BFyN4hfvOOn968zuYr9NLrgZ8CYB.enc", "18" : "pE/gRyY+LahBLg==", "2" : "audio/ogg; codecs=opus", "19" : ", *'\u001DF[ZddddcO/Yddd
_dddddddddddd\E(\u0019\u00192_O\cbbdb_V-\u001F]cdddddV8"\u0017\u0015\u0012",
“3” : “jVV5soWHA8GehKc7unbO9jfkaWTyzBPQ3nLOAwCToMs=”,
“4” : 20392,
“5” : 8,
“6” : 1,
“7” : “RI/7VOLRSpZvQReECjN4NmWEKGht1cmeJNqRTXgdO5c=”,
“8” : “LZ0HReglxq1aXX+pjFU7rOEwQibLdcOiVCD3Lp7oJjE=”,
“9” : “/v/t62.7117-24/32124920_133048572471208_6352557858052594146_n.enc?ccb=11-4&oh=01_AVxL8UeFf1I0T9fXgTQ9dEb81D8Kr1B6jpvslceqOfkxJA&oe=61E6C0B5”,
“10” : 1640150826
}
}
},
“1” : “https://mmg.whatsapp.net/d/f/AjeRdlL9yU73ggy_SeUk5BnKRDtVAd2MUJ6Y0buuKMnT.enc”,
“18” : “���C-��\r��\r���3���", "2" : "audio/ogg; codecs=opus", "19" : "\u0014%-Q;&WddE
_bG\u001B\u000Faa_ddd7%8[NbdVdLd=:$)\u0011\u001CHdX^NDdWWTYbY5/SU2NQ\u001C\r\r\u0014\u0013”,
“3” : “+89ecCCO3Q+RmTzSEJKc968icrYz0lz9MpzDAA/dLbA=”,
“4” : 66615,
“5” : 28,
“6” : 1,
“7” : “EdpWsK4Bi3E0q6IUIocSZlxLRbLSDPv8QSlWE6OyC6o=”,
“8” : “Zc0ZtUZgxpegmcSDt3p4uijzkSsJsZlD7uUQadG/Xsw=”,
“9” : “/v/t62.7117-24/30081163_312109604121683_1434762101187545757_n.enc?ccb=11-4&oh=01_AVwsuZH9jbifSAwyIAwFdvejiLMk2yBasKXH1SaVHdRXKA&oe=61E9DC05”,
“10” : 1640150870
}
},
“3” : 1640150899,
“4” : 5
}
at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:206)
at it.auties.whatsapp4j.binary.BinaryDecoder.parseMessage(BinaryDecoder.java:199)
at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187)
at it.auties.whatsapp4j.binary.BinaryDecoder.lambda$readList$3(BinaryDecoder.java:211)
at java.base/java.util.stream.IntPipeline$1$1.accept(IntPipeline.java:180)
at java.base/java.util.stream.Streams$RangeIntSpliterator.forEachRemaining(Streams.java:104)
at java.base/java.util.Spliterator$OfInt.forEachRemaining(Spliterator.java:711)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:509)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:575)
at java.base/java.util.stream.AbstractPipeline.evaluateToArrayNode(AbstractPipeline.java:260)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:616)
at java.base/java.util.stream.ReferencePipeline.toArray(ReferencePipeline.java:622)
at java.base/java.util.stream.ReferencePipeline.toList(ReferencePipeline.java:627)
at it.auties.whatsapp4j.binary.BinaryDecoder.readList(BinaryDecoder.java:211)
at it.auties.whatsapp4j.binary.BinaryDecoder.readNode(BinaryDecoder.java:187)
at it.auties.whatsapp4j.binary.BinaryDecoder.decodeDecryptedMessage(BinaryDecoder.java:48)
at it.auties.whatsapp4j.whatsapp.internal.WhatsappWebSocket.onBinary(WhatsappWebSocket.java:233)
at jdk.internal.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.glassfish.tyrus.core.AnnotatedEndpoint.callMethod(AnnotatedEndpoint.java:553)
… 26 more
��`�3���": Illegal character ‘�’ (code 0xfffd) in base64 content
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: it.auties.whatsapp4j.protobuf.info.MessageInfo[“2”]->it.auties.whatsapp4j.protobuf.message.model.MessageContainer[“8”]->it.auties.whatsapp4j.protobuf.message.standard.AudioMessage[“18”])
at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:4394)
at com.fasterxml.jackson.databind.ObjectMapper.convertValue(ObjectMapper.java:4325)
at it.auties.protobuf.decoder.ProtobufDecoder.decode(ProtobufDecoder.java:25)
at it.auties.whatsapp4j.binary.BinaryDecoder.decodeMessage(BinaryDecoder.java:204)
… 47 more
��`�3���": Illegal character ‘�’ (code 0xfffd) in base64 content`
Issue Analytics
- State:
- Created 2 years ago
- Comments:9 (5 by maintainers)
Top GitHub Comments
This is a completely different exception, you are not running with preview features enabled(–enable-preview)