Skip to content
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

StackOverflowError #303

Closed
bsideup opened this issue Mar 2, 2018 · 0 comments
Closed

StackOverflowError #303

bsideup opened this issue Mar 2, 2018 · 0 comments
Labels
type/bug A general bug
Milestone

Comments

@bsideup
Copy link
Contributor

bsideup commented Mar 2, 2018

Expected behavior

GET with body as ByteArray works just fine

Actual behavior

StackOverflowError

java.lang.StackOverflowError: null
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.currentContext(MonoFlatMapMany.java:218)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.currentContext(MonoFlatMapMany.java:218)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.currentContext(MonoFlatMapMany.java:218)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.currentContext(MonoFlatMapMany.java:218)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoFlatMapMany$FlatMapManyInner.currentContext(MonoFlatMapMany.java:218)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.InnerOperator.currentContext(InnerOperator.java:32)
	at reactor.core.publisher.MonoCollect.subscribe(MonoCollect.java:62)

Steps to reproduce

HttpClient.create()
        .get(
                "https://httpbin.org/get",
                req -> req
                        .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE)
                        .sendByteArray(Mono.defer(() -> Mono.just("Hello".getBytes())))
        )
        .flatMap(it -> it.receive().aggregate().asString())
        .block();

Reactor Netty version

0.7.1.RELEASE

JVM version (e.g. java -version)

Any

OS version (e.g. uname -a)

Any

@violetagg violetagg added this to the 0.7.6.RELEASE milestone Mar 2, 2018
@violetagg violetagg added the type/bug A general bug label Mar 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug A general bug
Projects
None yet
Development

No branches or pull requests

2 participants