M_Nolan
(M Nolan)
July 1, 2021, 6:16pm
1
I have exactly the same issue as these guys:
I am having an issue accepting json as a stream in a new service.
I have set the following property through IS:
watt.server.http.jsonFormat=stream
And I am getting the jsonStream parameter, but the value is com.wm.net.HttpInputStream. This is causing the following error when I try to call pub.json:jsonStreamToDocument:
{“$errorDump”:“Server error occurred”,“$errorInfo”:{“$errorDump”:“Server error occurred”,“$error”:“[ISS.0086.9250] Parameter [jsonStream] is not of type: [InputStream]”,“$loc…
but no fix is mentioned.
I’m POSTing Content-Type: application/json to a wM REST endpoint using Postman. I can see the data in the pipeline as jsonStream com.wm.net.HttpInputStream
When I try to call pub.io :streamToString , I get:
[ISS.0086.9250] Parameter [inputStream] is not of type: [InputStream]
Just wondering if anyone had some suggestions. I can try the workaround, but it should just work.
Thanks for any tips.
michael6
(Michael Scalia)
July 3, 2021, 3:40am
2
Hi. I’m not able to reproduce this in IS 10.7. My service looks like this:
And my request/response looks like this:
What version and patch level are you using?
M_Nolan
(M Nolan)
July 5, 2021, 4:51pm
3
Hi,
Sorry for the delay.
Version is 10.5 CoreFix_5. One thing I’ve noticed is that the json comes in as a string. I would have expected an object.
My Postman is the same as yours, with Content-Type: application/json
system
(system)
Closed
October 3, 2021, 4:52pm
4
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.