Skip to content

🐛 fix V2 hangs on GET - #272

Open
sebastianMindee wants to merge 2 commits into
mainfrom
fix-empty-body
Open

sebastianMindee wants to merge 2 commits into
mainfrom
fix-empty-body

Conversation

@sebastianMindee

Copy link
Copy Markdown
Collaborator

Description

Fixes #271

Types of changes

  • Docs change / refactoring / dependency upgrade
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires a change to the official Guide documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot review overview

🟡 Changes recommended

A regression test is needed to prevent the hanging GET behavior from returning.

Review effort: Balanced
Findings: 1 Low severity

Open (1)
What changed in this PR

Fixes V2 GET requests hanging while adding connection timeout handling.

Changes:

  • Removes chunked transfer encoding from V2 GET requests.
  • Applies open and read timeouts and updates Net::HTTP typing.
File Description
lib/​mindee/​v2/​http/​mindee_api_v2.rb Corrects GET headers and configures HTTP timeouts.
sig/​custom/​net_http.rbs Adds open_timeout to the HTTP signature.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@@ -145,9 +146,11 @@ def poll(url)
'User-Agent' => @settings.user_agent,
}
req = Net::HTTP::Get.new(uri, headers)

This branch has not been deployed

No deployments
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.

V2 client hangs on every GET: Transfer-Encoding: chunked is set on requests without a body

2 participants