swimos / swim

Full stack application platform for building stateful microservices, streaming APIs, and real-time UIs
https://www.swimos.org
Apache License 2.0
489 stars 39 forks source link

Exception when sending a JSON array as the request body to an HTTPLane. #125

Closed brohitbrose closed 1 year ago

brohitbrose commented 1 year ago

The root cause is here:

https://github.com/swimos/swim/blob/f0eabb587f4f73bce50f51fb293c460e86e84e35/swim-java/swim-runtime/swim-core/swim.http/src/main/java/swim/http/HttpMessage.java#L216

documentParser() does not handle top-level arrays.

Replacing this call with valueParser() may solve this.