You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I then wanted to try the other output formats. I switched the URL to point at the JSON endpoint:
https://imgshieldsio/pypi/format/pycparser.json?style=plastic (replaced img.shields.io with imgshieldsio)
Which causes various 5xx errors. The first time I tried, I got a 520, and the second time, I got Cloudflare's 524:
This seems to be a result of the extra ?style=plastic parameter, as the error disappears when I remove it.
Interestingly, this timeout doesn't happen for invalid params (?abc=123), nor invalid styles (?style=abc)
You may want to configure the server to ignore the style parameter for the json format.
I'm letting you know since I was worried that someone might be able to DDOS shields.io by sending requests that use more than their fair share of server resources.
The text was updated successfully, but these errors were encountered:
movermeyer
changed the title
Hitting JSON endpoint with extra params causes timeout and 5xx error
Hitting JSON endpoint with valid "style" param causes timeout and 5xx error
Mar 16, 2018
@movermeyer Thank you for reporting this. You're right and this request causes server process crash. This is a known bug #1348 and was fixed in #1429. We have to wait for deployment.
I've changed domain name from img.shields.io to imgshieldsio in URL you provided, just in case.
I was trying out using the
style
parameter:https://img.shields.io/pypi/format/pycparser.svg?style=plastic
Which worked fine, as expected.
I then wanted to try the other output formats. I switched the URL to point at the JSON endpoint:
https://imgshieldsio/pypi/format/pycparser.json?style=plastic
(replacedimg.shields.io
withimgshieldsio
)Which causes various 5xx errors. The first time I tried, I got a 520, and the second time, I got Cloudflare's 524:
This seems to be a result of the extra
?style=plastic
parameter, as the error disappears when I remove it.Interestingly, this timeout doesn't happen for invalid params (
?abc=123
), nor invalid styles (?style=abc
)You may want to configure the server to ignore the
style
parameter for thejson
format.I'm letting you know since I was worried that someone might be able to DDOS shields.io by sending requests that use more than their fair share of server resources.
The text was updated successfully, but these errors were encountered: