Skip to content

Conversation

@kirre-bylund
Copy link
Contributor

No description provided.

Copy link
Contributor

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 improves exception and error handling in HTTP-related methods by adding try-catch blocks and validation checks to prevent failures and improve debugging.

Key Changes:

  • Added validation to skip query parameters with null or empty keys
  • Wrapped HTTP request listener invocations in try-catch blocks to prevent one failing listener from affecting others
  • Added exception handling to path parameter formatting methods with fallback to unformatted endpoints

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 5 comments.

File Description
Runtime/Game/Utilities/LootLockerHttpUtilities.cs Added null/empty check for query parameter keys in addition to values
Runtime/Client/LootLockerHttpRequestData.cs Wrapped listener invocations in try-catch to isolate listener exceptions
Runtime/Client/LootLockerHTTPClient.cs Reordered operations to call listeners after adding request ID to completed set
Runtime/Client/EndPointClass.cs Added try-catch blocks around string.Format calls with error logging and fallback behavior

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link
Contributor

@JohannesLoot JohannesLoot left a comment

Choose a reason for hiding this comment

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

Tested and verified working, great stuff 👍
Merge it!

@kirre-bylund kirre-bylund force-pushed the fix/safer-http-client branch from f127266 to 21e4fda Compare October 24, 2025 18:27
@kirre-bylund kirre-bylund merged commit 457bb2f into dev Oct 24, 2025
4 of 5 checks passed
@kirre-bylund kirre-bylund deleted the fix/safer-http-client branch October 24, 2025 18:27
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.

3 participants