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
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:
TypeError: Do not know how to serialize a BigInt at stringify
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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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