-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.18.0-rc2: 400 when "Accept: application/json, text/plain" #9520
Comments
We've also come across this problem and believe its from this PR #9335 |
Thank you for reporting this. Confirmed, this is still the problem with Repro: $ curl -H "Accept: application/json" "http://127.0.0.1:8080/ipfs/bafybeieznmzzuxoxqwmkgy5yycefaehgoswvc6yiu6mfhbblzkkj77w7oa"
{"Data":{"/":{"bytes":"CAIStwJ7Im5hbWUiOiJNQURFLi4uIiwiZGVzY3JpcHRpb24iOiIuLi4gc2l0dGluZyBvbiBhIGNoYWlyIGluIHRoZSBza3kgLiIsImltYWdlIjoiaHR0cHM6Ly9jaWwuYXBpLmJhbmR3YWdvbmZhbmNsdWIuY29tL2NvbGxlY3Rpb25zL3BvZXQvaW1hZ2VzL0d4YkhnNHROYlNhaXVOaTJteXpMaUJrWk4xNjZYNDV5UkxZbzNyaHZqZEtVIiwidGFncyI6WyJwYWludGluZyIsImRpZ2l0YWxwYWludCIsImZyYW1lYnlmcmFtZSIsImFuaW1hdGlvbiIsImdpZiJdLCJwb2V0T3duZXIiOiIweGFiMzYyNzMxN2M0M2QzOTRlYjE3MTE3MGY4MTgxNTNiOTc2ZDI4YTMifRi3Ag"}},"Links":[]}
$ curl -H "Accept: application/json, plain/text" "http://127.0.0.1:8080/ipfs/bafybeieznmzzuxoxqwmkgy5yycefaehgoswvc6yiu6mfhbblzkkj77w7oa"
error while processing the Accept header: mime: unexpected content after media subtype This is a bug in the way we parse Will prepare fix shortly in #9533 and will ship it in final 0.18. |
Block/CAR responses always had single explicit type, and we did not bother with implementing/testing lists. With the introduction of JSON people may start passing a list. This is the most basic fix which will return on the first matching type (in order). This does not implements weights (can be added in future, if needed). Closes #9520
Block/CAR responses always had single explicit type, and we did not bother with implementing/testing lists. With the introduction of JSON people may start passing a list. This is the most basic fix which will return on the first matching type (in order). This does not implements weights (can be added in future, if needed). Closes #9520
Block/CAR responses always had single explicit type, and we did not bother with implementing/testing lists. With the introduction of JSON people may start passing a list. This is the most basic fix which will return on the first matching type (in order). This does not implements weights (can be added in future, if needed). Closes #9520
Block/CAR responses always had single explicit type, and we did not bother with implementing/testing lists. With the introduction of JSON people may start passing a list. This is the most basic fix which will return on the first matching type (in order). This does not implements weights (can be added in future, if needed). Closes #9520
Checklist
Installation method
ipfs-desktop
Version
Config
Default for docker container.
Description
Pinata made my Christmas interesting by making rc0.18 their prod-facing release, so apologies if this RC isn't to the point of stability where you care about this sort of thing, but since I did all the work to track it down, here's the info. :) Best!
Suspect this was introduced in fdd1965 with error on line
kubo/core/corehttp/gateway_handler.go
Line 898 in fdd1965
The text was updated successfully, but these errors were encountered: