HTTP Origin - JsonParseException Error

asked 2021-07-09 10:31:52 -0500

Faiyazy gravatar image

HTTP_00 - Cannot parse record. HTTP-Status: 200 Reason: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: com.streamsets.pipeline.api.ext.io.OverrunReader@829e43f; line: 1, column: 2]

image description

Please see the screenshot below of my data collector. I used postman to make the same API call and I got the results as shown below: { "expand": "schema,names", "startAt": 0, "maxResults": 50, "total": 60, "issues": [ { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "303279", "self": "https://jira.xxxxxxxx.net/j/rest/api/2/issue/303279", "key": "HCNO-5690", "fields": { "customfield_15983": "343", "customfield_16070": "36006", "updated": "2021-07-07T14:57:58.000-0500" } }, { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "303278", "self": "https://jira.xxxxxxxx.net/j/rest/api/2/issue/303278", "key": "HCNO-5689", "fields": { "customfield_15983": "343", "customfield_16070": "23729", "updated": "2021-07-07T14:57:57.000-0500" } }, { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "303277", "self": "https://jira.xxxxxxxx.net/j/rest/api/2/issue/303277", "key": "HCNO-5688", "fields": { "customfield_15983": "343", "customfield_16070": "91855", "updated": "2021-07-07T14:57:57.000-0500" } }, { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "303276", "self": "https://jira.xxxxxxxx.net/j/rest/api/2/issue/303276", "key": "HCNO-5687", "fields": { "customfield_15983": "343", "customfield_16070": "28086", "updated": "2021-07-07T14:57:56.000-0500" } }, { "expand": "operations,versionedRepresentations,editmeta,changelog,renderedFields", "id": "303275", "self": "https://jira.xxxxxxxx.net/j/rest/api/2/issue/303275", "key": "HCNO-5686", "fields": { "customfield_15983": "343", "customfield_16070": "21770", "updated": "2021-07-07T14:57:56.000-0500" } } ] }

Here is the log details: com.fasterxml.jackson.core.JsonParseException: Unexpected character ('<' (code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') at [Source: com.streamsets.pipeline.api.ext.io.OverrunReader@6263f7c9; line: 1, column: 2] at com.fasterxml.jackson.core.JsonParser._constructError(JsonParser.java:1702) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportError(ParserMinimalBase.java:558) at com.fasterxml.jackson.core.base.ParserMinimalBase._reportUnexpectedChar(ParserMinimalBase.java:456) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser._handleOddValue(ReaderBasedJsonParser.java:1906) at com.fasterxml.jackson.core.json.ReaderBasedJsonParser.nextToken(ReaderBasedJsonParser.java:749) at com.streamsets.datacollector.json.JsonObjectReaderImpl.readObjectFromStream(JsonObjectReaderImpl.java:195) at com.streamsets.datacollector.json.OverrunJsonObjectReaderImpl.readObjectFromStream(OverrunJsonObjectReaderImpl.java:196) at com.streamsets.datacollector.json.JsonObjectReaderImpl.read(JsonObjectReaderImpl.java:110) at com.streamsets.pipeline.lib.parser.json.JsonCharDataParser.parse(JsonCharDataParser.java:70) at com.streamsets.pipeline.lib.parser.WrapperDataParserFactory$WrapperDataParser.lambda$parse$0(WrapperDataParserFactory.java:105) at com.streamsets.pipeline.api.impl.CreateByRef.call(CreateByRef.java:40) at com.streamsets.pipeline.lib.parser.WrapperDataParserFactory$WrapperDataParser.parse(WrapperDataParserFactory.java:105) at com.streamsets.pipeline.stage.origin.http.HttpClientSource.parseResponse(HttpClientSource.java:630) at com.streamsets.pipeline.stage.origin.http.HttpClientSource.processResponse(HttpClientSource.java:958) at com.streamsets.pipeline.stage.origin.http.HttpClientSource.produce(HttpClientSource.java:337) at com.streamsets.pipeline.api.base.configurablestage.DSource.produce(DSource.java:38) at com.streamsets.datacollector.runner.StageRuntime.lambda$execute$2(StageRuntime.java:296) at com.streamsets.datacollector.runner.StageRuntime.execute(StageRuntime.java:244) at com.streamsets.datacollector.runner.StageRuntime.execute(StageRuntime.java:311) at com.streamsets.datacollector.runner.StagePipe.process(StagePipe.java:221) at com.streamsets.datacollector ... (more)

edit retag flag offensive close merge delete