-
-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to decode last_error? #449
Comments
I'm using the |
This should be straight forward to resolve.
Let me know if 2 works because it should work out of the box. |
Also, please note that the error type does not expect to be |
Oh, I'm already trying to deserialize it as |
I think I can work on the error handling layer to allow using crates like https://docs.rs/serde-error/latest/serde_error/ |
But its important to note this message on the crate:
|
Yeah, you're probably right. It looks like the original error isn't serialized, so the inner error is just converted using to_string. |
Hey @geofmureithi,
It looks like Apalis always serializes the original error inside FailedError, e.g.
How are consumers of that string supposed to deserialize it? I want to access the original error type.
Is there a way to remove the error envelope? I added ErrorHandlingLayer, but it did not change how errors are serialized.
The text was updated successfully, but these errors were encountered: