spring-cloud / spring-cloud/spring-cloud-gateway

reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response

Open
#2,135 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

feedback-provided
Dominant language
Java
Stars
4.9k
Forks
3.5k
Avg merge
20h 57m
Merged PRs (30d)
8

Description

Hi Team,

Seeing below exceptions occasionally in PRODUCTION logs -

1) reactor.netty.http.client.PrematureCloseException: Connection prematurely closed BEFORE response
2) reactor.netty.http.client.PrematureCloseException: Connection has been closed BEFORE response, while sending request body

Below is the tech stack being used -

SCG - HOXTON.RELEASE
Sprint Boot - 2.2.1.RELEASE

Since this is production, it would take time and testing to do a version upgrade. Besides version upgrade, are there any other checks/fixes that can be done to correct this issue?

Regards,
Jacob

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file, test, or entry point is named. Start by reviewing the reported PrematureCloseException variants and the SCG HoxTon.RELEASE and Spring Boot 2.2.1.RELEASE versions, then examine the comment thread for diagnostic context. Done means identifying a reproducible cause and an actionable fix or configuration change beyond a version upgrade.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
api, backend, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.