You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue description
Save the session to the database, restart the program, and perform session deserialization will cause a crash.
The following is a simple test, there are two functions, the test1 is gotiny.Marshal and then gotiny.Unmarshal, and the test2 is direct gotiny.Unmarshal. There is no problem executing the two together. But if you comment out the test1 and run the test2 directly, an error will be reported: panic: unknown typ:int
We also need to catch that panic by default and notify the user to use the new RegisterType option.
Do you have any advice regarding the name? Maybe we should support multiple types RegisterTypes: []interface{}?
Fenny
added a commit
to Fenny/fiber
that referenced
this issue
Dec 3, 2020
Fiber version
v2.2.2
Issue description
Save the session to the database, restart the program, and perform session deserialization will cause a crash.
The following is a simple test, there are two functions, the test1 is gotiny.Marshal and then gotiny.Unmarshal, and the test2 is direct gotiny.Unmarshal. There is no problem executing the two together. But if you comment out the test1 and run the test2 directly, an error will be reported: panic: unknown typ:int
Code snippet
The text was updated successfully, but these errors were encountered: