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
Following up on #1483, one of the main causes of 500 errors on our site is the use of invalid search parameters. These would only appear if the user is manually changing the value in the URL. For example:
Following up on #1483, one of the main causes of 500 errors on our site is the use of invalid search parameters. These would only appear if the user is manually changing the value in the URL. For example:
https://cantusdatabase.org/source/620437/chants/?folio=104 will cause
Exception Type: ValueError
Exception Value: '104' is not in list
http://localhost/source/620437/chants/?feast=hello will cause
Exception Type: ValueError
Exception Value: Field 'id' expected a number but got 'hello'
We should include an exception block that checks for
ValueError
when retrieving search parameters anywhere on the site.The text was updated successfully, but these errors were encountered: