HTTP GET response(JSON format) is truncated

41 views
Skip to first unread message

Kuttaiah Robin

unread,
Jun 24, 2019, 12:43:11 PM6/24/19
to dropwizard-user
Hello,

Am using 2.0.0-rc3.

I see Jetty server is coming up fine without any issues and all our REST resources are deployed properly.

But HTTP GET responses from the REST API are truncated hence client receives partial JSON payload.

Has anyone encountered this? If yes, could you please help me with solution?

regards,
Robin Kuttaiah

Jochen Schalanda

unread,
Jun 25, 2019, 4:29:22 PM6/25/19
to dropwiz...@googlegroups.com
Hi,

could you please upload a minimal project to reproduce the issue and some example cURL command to send a request to the application?

Thanks,
Jochen

Kuttaiah Robin

unread,
Jun 27, 2019, 1:28:33 PM6/27/19
to dropwizard-user
Thank you Jochen . Not Sure how I can provide a standalone application. Let me have a try.

What I observed further is as below;

I have two microservices -
1. microservice1 - nodejs based microservice.
2. microservice2 - Dropwizzard based which contains all our REST api's/resources.

microservice1 is the entry point for us, hence for the REST API invoke, request goes from microservice1 to  microservice2. The same with response which is sent  back via  microservice1.  

Observation: 
1. Invoke REST API via microservice1. Fails.  Its truncated.
2. Replace dropwizzard with oracle helidon in microservice2, Now invoke REST API via microservice1, it works with out any issue.
3. I can also invoke  microservice2(with dropwizard) directly with some hack. it works and I can see full json response in this case.

The difference in Response headers between case1 and case2 is as below. The working one contains two additional headers.
Transfer-Encoding: chunked
Content-Encoding: gzip

Any encoding has to be set in Dropwizzard? Any clue please.

regards,
Robin Kuttaiah

Jochen Schalanda

unread,
Jun 28, 2019, 2:20:36 AM6/28/19
to dropwiz...@googlegroups.com
Hi,

without any code to see what you're doing, it will be hard or impossible to help you.

Best regards,
Jochen

--
You received this message because you are subscribed to the Google Groups "dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to dropwizard-us...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/dropwizard-user/ea3147ad-7b6d-4096-b23f-f7aafe197d1f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages