Missing newline in JSON stream from proxy API pin/ls #1885
Labels
effort/hours
Estimated to take one or several hours
exp/beginner
Can be confidently tackled by newcomers
good first issue
Good issue for new contributors
help wanted
Seeking public contribution on this issue
kind/bug
A bug in existing code (including security flaws)
P1
High: Likely tackled by core team if no one steps up
status/ready
Ready to be worked
Milestone
Additional information:
Describe the bug:
When calling the proxy API for
pin/ls
on port 9095, the returned format is not a valid newline-separated JSON.Entries are returned like:
curl -X POST "http://127.0.0.1:9095/api/v0/pin/ls?type=recursive&stream=true"
While the original API of the ipfs on port 5001 returns data like this:
curl -X POST "http://127.0.0.1:5001/api/v0/pin/ls?type=recursive&stream=true"
It seams that this leads to problems with clients (e.g. webui) parsing the JSON stream.
The text was updated successfully, but these errors were encountered: