Only one connection receive subscriber allowed

See original GitHub issue

The problem is related to: #https://github.com/spring-cloud/spring-cloud-gateway/issues/541

occurs only with springBootVersion = ‘2.0.5.RELEASE’ with 2.0.4.RELEASE and lower works fine. webflux is included by means of starter: ‘org.springframework.boot:spring-boot-starter-webflux’

Sample controller:

@RestController
@RequestMapping("/path/{param1}/path2")
public class MyController {

    @PostMapping(value = "/path3")
    String onUploadSuccess(@PathVariable("param1") long param, @RequestBody MultiValueMap<String,String> body) {
        return "OK. param=" + param + " body=" + body;
    }

}

Post request with payload such as:

key=f9a922bd-3007-4393-a76e-925fc009639c.txt&uuid=f9a922bd-3007-4393-a76e-925fc009639c&name=rubycsv.txt&bucket=fineuploadertest&etag=123

Response: {"timestamp":"2018-09-19T06:45:02.595+0000","path":"/path/123/path2/path3","status":500,"error":"Internal Server Error","message":"Only one connection receive subscriber allowed."}

stacktrace.txt

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:12
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
sneakythr0wscommented, Sep 19, 2018

Maybe downgrade reactor?

1reaction
wilkinsonacommented, Sep 19, 2018

Sorry, but I don’t think this has anything to do with Boot itself. It’s most likely due to a change in Reactor Netty. The existing Spring Cloud issue, which @violetagg is already aware of, is sufficient for now. Spreading the issue over multiple repositories just risks wasting people’s time. Once the underlying cause has been identified, we can either re-open this or open a Reactor Netty issue as required.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spring WebFlux: Only one connection receive subscriber ...
First of all .just is a cold operator, it allows as many as possible subscribers which receive the same data at any point...
Read more >
Only one connection receive subscriber allowed when using ...
I do see that you have connection close Channel closed, now: 1 active connections, 4 inactive connections and 0 pending acquire requests.
Read more >
reactor/reactor-netty - Gitter
Operators: : Operator called default onErrorDropped java.lang.IllegalStateException: Only one connection receive subscriber allowed. at reactor.netty.channel.
Read more >
Spring webflux “Only one connection receive subscriber ...
The problem here is in fact that WebClient allows only one subscriber per connection. If you try to subscribe to the same exchanged...
Read more >
spring cloud gateway only one connection receive subscriber ...
spring cloud gateway only one connection receive subscriber allowed. This project provides a library for building an API Gateway on top of Spring...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found