Skip to content

Conversation

ddbdzung
Copy link

@ddbdzung ddbdzung commented Mar 9, 2025

Issue Reference : #331 , #4861 , #4857

Problem

Axios requests with Content-Type: application/json were not properly serialized, causing incorrect payloads.

Solution

  • Convert request body to a JSON string using JSON.stringify().
  • Ensure consistency when sending JSON data.

Impact

✅ Fixes incorrect payload formatting.
✅ Ensures API compatibility.

@ddbdzung ddbdzung closed this Mar 11, 2025
@CuriousCorrelation
Copy link
Member

Hi @ddbdzung, this PR you raised is a good way to fix the serialization issue on the extension side, the current PR raised at the mono-repo around similar ser/de issue addresses several additional concerns including other interceptors and maintaining backwards compatibility. So please feel free to keep this PR open for future considerations. Thanks!

@ddbdzung ddbdzung reopened this Mar 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants