You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hop.apache.org by "Barryetter (via GitHub)" <gi...@apache.org> on 2025/01/09 16:59:21 UTC

[I] [Bug]: HTTP Post fails to parse response (hop)

Barryetter opened a new issue, #4769:
URL: https://github.com/apache/hop/issues/4769

   ### Apache Hop version?
   
   2.11.0
   
   ### Java version?
   
   17.0.2
   
   ### Operating system
   
   Docker
   
   ### What happened?
   
   I have a pipeline with an HTTP Post at the end. 
   URL: https://pcsupport.lenovo.com/us/en/api/v4/upsell/redport/getIbaseInfo
   Request body: {"serialNumber": "MZ00TFJM","machineType": "12U2", "country": "us", "language": "en" }
   
   The response is successful, but the response body is not parsed correctly. Instead, midway through parsing, there is a JSON parse error interjected.
   
   {"code":103,"costMillis":240,"requestId":"07E4803EDEB7","responseHost":"eservice-upsell-7cf7dcf4d4-6hw4d","msg":{"desc":"JSON parse error: Unexpected character '{' (code 123) in prolog; expected '<'\n at [row,col {unknown-source}]: [1,1]; nested exception is com.fasterxml.jackson.core.JsonParseException: Unexpected character '{' (code 123) in prolog; expected '<'\n at [row,col {unknown-source}]: [1,1]","value":null},"data":null}
   
   
   
   ### Issue Priority
   
   Priority: 3
   
   ### Issue Component
   
   Component: Transforms


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: HTTP Post fails to parse response (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva closed issue #4769: [Bug]: HTTP Post fails to parse response
URL: https://github.com/apache/hop/issues/4769


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug]: HTTP Post fails to parse response (hop)

Posted by "hansva (via GitHub)" <gi...@apache.org>.
hansva commented on issue #4769:
URL: https://github.com/apache/hop/issues/4769#issuecomment-4833720584

   I have taken a look at this, by default our content-type is XML in the post is XML.
   You need to add a content-type header with value application/json.
   
   Will use this ticket to add a dropdown to set the content type.
   
   .take-issue


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@hop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org