Skip to content

Conversation

@lfarrel6
Copy link
Member

Why

Without passing a response type, axios assumes that responses contain json. This is causing decrypted files to be corrupted when returned from the SDK.

How

Pass response type to the decrypt post request as arraybuffer for files, so we can return the raw octet stream

@changeset-bot
Copy link

changeset-bot bot commented May 30, 2025

🦋 Changeset detected

Latest commit: ba7d6a5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@evervault/sdk Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

jakekgrog
jakekgrog previously approved these changes May 30, 2025
@lfarrel6
Copy link
Member Author

resolves #215

@lfarrel6 lfarrel6 merged commit 3685050 into master May 30, 2025
8 checks passed
@lfarrel6 lfarrel6 deleted the liam/etr-3436-pass-response-type-to-axios-for-file-decrypt-requests branch May 30, 2025 13:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants