Uploaded image for project: 'mod-eusage-reports'
  1. mod-eusage-reports
  2. MODEUR-79

/report-titles/from-counter failing with: Text '1' could not be parsed at index 0

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • TBD
    • Resolution: Done
    • None
    • None
    • None
    • eUsage Sprint 123
    • Thor

    Description

      POSTing

      {"providerId":"4a6f19c9-af86-44dc-a7b3-5ac88b817b30"}
      

      to https://thor-okapi.ci.folio.org/eusage-reports/report-titles/from-counter is failing with 400 Bad Request:

      GET /counter-reports?limit=1&offset=0&query=providerId%3D%3D4a6f19c9-af86-44dc-a7b3-5ac88b817b30 returned bad JSON: Text '1' could not be parsed at index 0

      16:05:58 ERROR EusageReportsApi GET /counter-reports?limit=1&offset=0&query=providerId%3D%3D4a6f19c9-af86-44dc-a7b3-5ac88b817b30 returned bad JSON: Text '1' could not be parsed at index 0
      java.time.format.DateTimeParseException: Text '1' could not be parsed at index 0
      at java.time.format.DateTimeFormatter.parseResolved0(DateTimeFormatter.java:2050) ~[?:?]
      at java.time.format.DateTimeFormatter.parse(DateTimeFormatter.java:1952) ~[?:?]
      at java.time.LocalDate.parse(LocalDate.java:429) ~[?:?]
      at org.folio.eusage.reports.api.EusageReportsApi.handleReport(EusageReportsApi.java:665) ~[mod-eusage-reports-fat.jar:?]
      at org.folio.eusage.reports.api.EusageReportsApi.lambda$populateCounterReportTitles$42(EusageReportsApi.java:756) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl.handleEvent(JsonParserImpl.java:141) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl.lambda$handleEvent$2(JsonParserImpl.java:124) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl$BufferingHandler.handle(JsonParserImpl.java:424) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl$BufferingHandler.handle(JsonParserImpl.java:390) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl.checkPending(JsonParserImpl.java:254) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl.handle(JsonParserImpl.java:160) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.parsetools.impl.JsonParserImpl.handle(JsonParserImpl.java:42) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.ext.web.codec.impl.JsonStreamBodyCodec$1.write(JsonStreamBodyCodec.java:37) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.ext.web.codec.impl.JsonStreamBodyCodec$1.write(JsonStreamBodyCodec.java:22) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.ext.web.codec.impl.StreamingBodyCodec$1.write(StreamingBodyCodec.java:82) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.ext.web.codec.impl.StreamingBodyCodec$1.write(StreamingBodyCodec.java:60) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.streams.impl.PipeImpl.lambda$to$1(PipeImpl.java:81) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.impl.AbstractContext.dispatch(AbstractContext.java:96) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.HttpEventHandler.handleChunk(HttpEventHandler.java:51) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.HttpClientResponseImpl.handleChunk(HttpClientResponseImpl.java:239) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.Http1xClientConnection$StreamImpl.lambda$new$0(Http1xClientConnection.java:380) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.streams.impl.InboundBuffer.handleEvent(InboundBuffer.java:240) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.streams.impl.InboundBuffer.write(InboundBuffer.java:130) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.Http1xClientConnection$StreamImpl.handleChunk(Http1xClientConnection.java:583) ~[mod-eusage-reports-fat.jar:?]
      at io.vertx.core.impl.EventLoopContext.execute(EventLoopContext.java:70) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.impl.DuplicatedContext.execute(DuplicatedContext.java:162) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.Http1xClientConnection.handleResponseChunk(Http1xClientConnection.java:784) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.Http1xClientConnection.handleHttpMessage(Http1xClientConnection.java:682) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.http.impl.Http1xClientConnection.handleMessage(Http1xClientConnection.java:649) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.net.impl.ConnectionBase.read(ConnectionBase.java:155) [mod-eusage-reports-fat.jar:?]
      at io.vertx.core.net.impl.VertxHandler.channelRead(VertxHandler.java:154) [mod-eusage-reports-fat.jar:?]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:379) [mod-eusage-reports-fat.jar:?]
      at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:365) [mod-eusage-reports-fat.jar:?]
      at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:357) [mod-eusage-reports-fat.jar:?]
      at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:436) [mod-eusage-reports-fat.jar:?]
      at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:324) [mod-eusage-reports-fat.jar:?]

      TestRail: Results

        Attachments

          Activity

            People

              adam Adam Dickmeiss
              mike Mike Taylor
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                TestRail: Runs

                  TestRail: Cases