openverse-api icon indicating copy to clipboard operation
openverse-api copied to clipboard

Incorrectly formatted OAuth requests cause uncaught errors

Open sarayourfriend opened this issue 3 years ago • 3 comments

Description

https://sentry.io/share/issue/48770754fc364b67ae219941798970cf/

If you send a malformed OAuth request it will raise a 500.

Reproduction

  1. Run the API
  2. Send an OAuth POST with query params
  3. Note the unhandled error

Expectation

We should expect this error and respond with a normal Bad Request and not 500.

Resolution

  • [ ] 🙋 I would be interested in resolving this bug.

sarayourfriend avatar Feb 03 '22 01:02 sarayourfriend

Reprioritizing this to low as it hasn't happened for over 30 days.

sarayourfriend avatar Apr 25 '22 15:04 sarayourfriend

Hi @sarayourfriend , This issue seems to be a good initiation of my journey towards contribution to FOSS projects. Can you please assign this to me?

Akshat977 avatar Sep 09 '22 04:09 Akshat977

Hey @Akshat977, please go ahead. Assigning this to you.

dhruvkb avatar Sep 10 '22 23:09 dhruvkb