Skip to content

Pass response type to axios for file decrypt requests#216

Merged
lfarrel6 merged 4 commits intomasterfrom
liam/etr-3436-pass-response-type-to-axios-for-file-decrypt-requests
May 30, 2025
Merged

Pass response type to axios for file decrypt requests#216
lfarrel6 merged 4 commits intomasterfrom
liam/etr-3436-pass-response-type-to-axios-for-file-decrypt-requests

Conversation

@lfarrel6
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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