Skip to content

spring boot 3.1.14 completable future appends additional object to response #31521

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

Closed
eldor9797 opened this issue Oct 30, 2023 · 3 comments
Closed
Labels
for: stackoverflow A question that's better suited to stackoverflow.com status: invalid An issue that we don't feel is valid

Comments

@eldor9797
Copy link

eldor9797 commented Oct 30, 2023

Hi, team.

In Spring Boot 3.1.14
Java 17
Gradle
Windows OS
I wrote API using ComletableFuture. while fetching data from Controller, we get back as response the following json in a single response
{ "id": "993b47c0-7322-4a8d-ae79-73db7def776d", "result": { "object": [ { "type": "BANNER", "data": [ { "id": 2, "title" } ] } ] } }{ "code": -999999, "message": "Type definition error: [simple type, class uz.company.dtos.clients.banner.BannerTitle]", "data": null }
photo_2023-10-30_14-37-29

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged or decided on label Oct 30, 2023
@bclozel
Copy link
Member

bclozel commented Oct 30, 2023

Thanks for getting in touch, but it feels like this is a question that would be better suited to Stack Overflow. As mentioned in the guidelines for contributing, we prefer to use the issue tracker only for bugs and enhancements. Feel free to update this issue with a link to the re-posted question (so that other people can find it) or add some more details if you feel this is a genuine bug.

@bclozel bclozel closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
@bclozel bclozel added status: invalid An issue that we don't feel is valid for: stackoverflow A question that's better suited to stackoverflow.com and removed status: waiting-for-triage An issue we've not yet triaged or decided on labels Oct 30, 2023
@eldor9797
Copy link
Author

what do you mean stackoverflow? the json in the response is broken even tho no exception were raised, look at he the response in pic

@bclozel
Copy link
Member

bclozel commented Oct 30, 2023

Sorry, but JSON snippets and screenshots do not qualify as a bug report. I can only assume that an error happens during serialization and that you're getting some response body and the error response mixed together (see #31511 (comment)).

As for why you're getting that serialization error in the first place, I'd suggest creating a well-written question to StackOverflow that helps people to reproduce the problem you're having.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: stackoverflow A question that's better suited to stackoverflow.com status: invalid An issue that we don't feel is valid
Projects
None yet
Development

No branches or pull requests

3 participants