Issue with Axios and BigInt Serialization #6278
Unanswered
kartik-gupta-ij
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Axios Community,
I hope this message finds you well. I am currently facing an issue related to the serialization of BigInt in Axios, and I'm seeking guidance on how to resolve it.
I've identified that the error is occurring in the following code snippet from Axios:
The error message I'm encountering is:
As part of my debugging process, I've created custom parser and encoder functions specifically designed for handling BigInts when parsing JSON data. However, I'm struggling to understand how to pass these custom functions to Axios so that they are utilized by the
stringifySafely
function.Here is a simplified version of my custom functions:
My question is: How can I properly configure Axios to utilize these custom parser and encoder functions within the
stringifySafely
function? I believe this is the key to resolving the BigInt serialization issue I am facing.Any guidance or suggestions on the best approach to integrate custom parser and encoder functions with Axios would be highly appreciated.
Thank you in advance for your assistance.
Beta Was this translation helpful? Give feedback.
All reactions