REST service POST endpoint cannot parse json stream

I have exactly the same issue as these guys:

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.

Hi. I’m not able to reproduce this in IS 10.7. My service looks like this:

image

And my request/response looks like this:

What version and patch level are you using?

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.

image

My Postman is the same as yours, with Content-Type: application/json

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.