Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: PRO-2630 Delete sessionKey fix - ContentType in APIDelete Request #37

Merged
merged 2 commits into from
Aug 28, 2024

Conversation

kanthgithub
Copy link
Contributor

Delete sessionKey fix - ContentType in APIDelete Request

Description

Bug
SessionSDK fails to delete session-key

Error: Body cannot be empty when content-type is set to 'application/json'
at SessionKeyValidator.deleteSessionKey (/home/bacancy/e2e-sdk-modular/etherspot-modular-sdk/dist/sdk/SessionKeyValidator/SessionKeyValidator.js:319:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async SessionKeyValidator.disableSessionKey (/home/bacancy/e2e-sdk-modular/etherspot-modular-sdk/dist/sdk/SessionKeyValidator/SessionKeyValidator.js:137:17)
at async file:///home/bacancy/e2e-sdk-modular/test/specs/testnet/sessionkey/userOpsSessionkey.spec.js:405:32
at async run (file:///home/bacancy/e2e-sdk-modular/test/utils/baseTest.js:8:9)

Fix:
content-type is not needed for deleteSessionKey as all request data is being sent as queryparams

Types of changes

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Copy link

linear bot commented Aug 22, 2024

Copy link

Yooo! You forgot to bump the version in package.json!

@kanthgithub kanthgithub self-assigned this Aug 23, 2024
@kanthgithub kanthgithub merged commit d8a997f into master Aug 28, 2024
3 of 4 checks passed
@kanthgithub kanthgithub deleted the fix/PRO-2630-delete-sessionkey-error branch August 28, 2024 09:58
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.

3 participants