Details
-
Bug
-
Status: Closed (View Workflow)
-
P2
-
Resolution: Done
-
None
-
None
-
CP: sprint 110, CP: sprint 111
-
3
-
Core: Platform
Description
Overview:
The functionality of streaming of jsons via http is used in mod-oai-pmh.
For vert.x 3.9.1 is works well.
After migration to vert.x 4.0.2 it fails on big ammount of data ethier using HttpClient or WebClient.
The documentation for this functionality is: https://vertx.io/docs/vertx-web-client/java/#_decoding_responses
This approach is used for WebClient:
JsonParser parser = JsonParser.newParser().objectValueMode(); parser.handler(event -> { JsonObject object = event.objectValue(); System.out.println("Got " + object.encode()); }); client .get(8080, "myserver.mycompany.com", "/some-uri") .as(BodyCodec.jsonStream(parser)) .send() .onSuccess(res -> System.out.println("Received response with status code" + res.statusCode())) .onFailure(err -> System.out.println("Something went wrong " + err.getMessage()));
Steps to Reproduce:
Make a request to any env and you will receive the next message with 500 error - http://okapi-bugfest-honeysuckle.folio.ebsco.com:443/inventory-hierarchy/updated-instance-ids?deletedRecordSupport=true&skipSuppressedFromDiscoveryRecords=true
Expected Results:
Normal response
Actual Results:
Error
TestRail: Results
Attachments
Issue Links
- is cloned by
-
MODOAIPMH-316 Vertx WebClient fails to proccess JsonEvent stream (wait for Vert.x to fix)
-
- Closed
-
- relates to
-
MODOAIPMH-285 Update RMB version
-
- Closed
-
-
MODOAIPMH-291 Revert RMB 32 update
-
- Closed
-
-
FOLIO-3140 Make PR for JsonParser bug
-
- Closed
-
-
RMB-845 Release RMB 33.0.0-pre4
-
- Closed
-