Skip to content

Conversation

@aman19K
Copy link
Contributor

@aman19K aman19K commented Apr 23, 2025

Description
This PR addresses an issue where sending an empty object in the payload results in a 400 Bad Request error. The backend was unable to process the request due to the malformed structure, which returned a generic HTML error response.

Changes Made

  • Validation added to prevent sending an empty object in the request payload.
  • Error handling improved to catch and display complete error when this kind of response is received from the server.
  • version bump

sunil-lakshman
sunil-lakshman previously approved these changes Apr 24, 2025
Copy link
Contributor

@sunil-lakshman sunil-lakshman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aman19K aman19K marked this pull request as ready for review April 28, 2025 09:47
@aman19K aman19K requested a review from a team as a code owner April 28, 2025 09:47
cs-raj
cs-raj previously approved these changes Apr 28, 2025
Copy link
Contributor

@sunil-lakshman sunil-lakshman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@aman19K aman19K merged commit f5ddbb3 into development Apr 28, 2025
9 checks passed
@aman19K aman19K deleted the fix/DX-2410 branch April 28, 2025 11:48
cs-raj pushed a commit that referenced this pull request May 6, 2025
fix: Handle empty object in payload causing 400 Bad Request in GCP region
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.

4 participants