Skip to content

Fix: 400 status code bad request in case of invalid json fetch binary URL #95

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kamal-kaur04
Copy link
Collaborator

@kamal-kaur04 kamal-kaur04 commented Jul 24, 2025

Fix 400 status code bad request in case of invalid json fetch binary URL

@kamal-kaur04 kamal-kaur04 requested a review from a team as a code owner July 24, 2025 15:27
@kamal-kaur04 kamal-kaur04 changed the title Fix 400 status code bad request in case of invalid json fetch binary URL Fix: 400 status code bad request in case of invalid json fetch binary URL Jul 24, 2025
@kamal-kaur04 kamal-kaur04 requested a review from Copilot July 24, 2025 15:39
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a 400 bad request status code issue that occurs when fetching binary URLs with invalid JSON. The main change replaces manual JSON string construction with proper JSON object handling to ensure valid JSON format.

  • Replaces manual string concatenation for JSON with JSONObject for proper formatting
  • Updates package version from 1.1.6 to 1.1.7 across the codebase
  • Improves JSON parameter handling in the fetchSourceUrl method

Reviewed Changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
src/main/java/com/browserstack/local/LocalBinary.java Replaces manual JSON string construction with JSONObject for proper formatting and error handling
src/main/java/com/browserstack/local/Local.java Updates package version constant to 1.1.7
pom.xml Updates Maven project version to 1.1.7

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