fecgov / fec-cms

The content management system (CMS) for the new Federal Election Commission website.
https://www.fec.gov
Other
96 stars 38 forks source link

422 (Unprocessable Content) #6147

Open rfultz opened 7 months ago

rfultz commented 7 months ago

Summary

I ran into this doing the Webpack and ES6/ESM upgrade but it appears to be the case with www now, too.

When loading some pages, the API can respond with a 422 for some queries.

I suspect for missing parameters from various queries.

Frequency

Often

How to Reproduce

  1. Go to the presidential elections page
  2. Open Inspector and check the console to see a 422. The query response for this example is {"message":"Parameter 'per_page' must be between 1 and 100","status":422}

Device, browser, etc

Desktop browser

Screenshots

None

Completion criteria:

rfultz commented 1 month ago

Can't currently replicate the issue so I'm pushing this out a bit as a reminder to check again