Closed 13xforever closed 4 months ago
exact same error! how to fix it, any ideas?
This issue specifically about OnUpdates not being triggered, for general issue please see pinned #191
I'm having similar issue
Version: 4.1.1
4>An exception occured in the reactor: WTelegram.WTException: Cannot find type for ctor #86e18161
TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
TL.MessageMediaPoll.ReadTL(BinaryReader reader)
TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
at TL.Message.ReadTL(BinaryReader reader)
TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
TL.Serialization.ReadTLVector[T](BinaryReader reader)
TL.Updates.ReadTL(BinaryReader reader)
TL.Serialization.ReadTLObject(BinaryReader reader, UInt32 ctorNb)
WTelegram.Client.ReadFrame(Byte[] data, Int32 dataLen)
WTelegram.Client.Reactor(Stream stream, CancellationTokenSource cts)
Ok, idk how useful this issue anymore, since the old version of the client stopped receiving new message updates yesterday.
Anyway, in case this is indeed related to the old serialized data, a reminder that you can force a clean start by removing your WTelegram.session file and logging back again using the new client version. I can't say if the new version fixes the missing updates yet, but either way I think everyone will be forced to upgrade soon.
I can't tell anything wrong from your logs and without seeing your program. I'd guess you forgot to reassign .OnUpdates after recreating the client on ReactorError.
I do not recreate the client, at worst I restart the whole app. After upgrading to 4.1.1 and removing all state, there are no deserialization errors, but I still do not get any events in OnUpdates
, and as you said yourself, there's absolutely nothing in the logs. I'm pretty sure it's the issue with redesigned event handling in v4 in general.
You should catch OnOther(ReactorError) and at minimal log that error, or else you might be missing an important piece of info that might explain why your Client seems totally disabled. See Examples/Program_ReactorError.cs
There was no event redesign in v4, only renamed OnUpdate => OnUpdates (UpdateManager code is independent from Client code, and you don't seem to use it)
In #191 it is stated:
But I've tried to upgrade twice from 3.7.2 (first to 4.0, and today to 4.1.1), and all I get are these exceptions and no events being triggered in
OnUpdates
at all, so basically nothing works, and rolling back eats the events that were received by 4.x client.full stack trace I get in the logs on new message: