Closed pbonte closed 2 years ago
Thanks for reporting!
I just tested this within my pod on solidcommunity.net via Node.js, and everything seems to be working just fine.
Could you provide additional details on what you're doing differently?
Ok, so the root cause of this issue is that apparently browsers don't yet support passing ReadableStream
as body to fetch
, and they just stringify it instead:
So I'll look into a temporary workaround.
Fixed in Comunica 2.2.1. (Might require a lockfile+node_modules reset)
Issue type:
Description:
When inserting data using the SPARQL INSERT DATA clause on a solid pod, an UnsupportedMediaTypeHttpError is thrown. Inspecting the payload of the message sent from comunica to the solid server shows that a stream object
[object ReadableStream]
is transmitted (instead of the content of the stream). The following code fragment was used to insert the data:Fixing the destination types did not solve the problem.
Environment:
Crash log:
https://pastebin.com/EFNFhAR7