Brotli fails to decode some HTTP response bodies received from yelp.com #507

Open
opened 2026-01-29 20:44:57 +00:00 by claunia · 1 comment
Owner

Originally created by @guoye-zhang on GitHub (Apr 10, 2024).

> curl -H 'accept-encoding: br' 'https://www.yelp.com/biz/Qy_RVSvDoUfCETQ6vuq6Tw/props?override_cta=Get+a+Quote&original_request_id=40d132c208636611' | ./brotli -d -c -
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 4810 0 4810 0 0 2575 0 --:--:-- 0:00:01 --:--:-- 2574
corrupt input [con]

This specific URL loads fine in Chrome.

The archive might not have been terminated correctly.

Originally created by @guoye-zhang on GitHub (Apr 10, 2024). ``` > curl -H 'accept-encoding: br' 'https://www.yelp.com/biz/Qy_RVSvDoUfCETQ6vuq6Tw/props?override_cta=Get+a+Quote&original_request_id=40d132c208636611' | ./brotli -d -c - % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4810 0 4810 0 0 2575 0 --:--:-- 0:00:01 --:--:-- 2574 corrupt input [con] ``` This specific URL loads fine in Chrome. The archive might not have been terminated correctly.
Author
Owner

@perkfly commented on GitHub (May 6, 2024):

I also find the same error, it seems that curl 8.5 and 8.6 has some issues, but curl 8.7.1 works fine for me.

@perkfly commented on GitHub (May 6, 2024): I also find the same error, it seems that curl 8.5 and 8.6 has some issues, but curl 8.7.1 works fine for me.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/brotli#507