URL Shortener project not passing tests

I know this question has been asked multiple times. But 99% sure that my code returns what the tests are expecting me to, but it just can’t seem to pass tests 2 and 3. I’ve checked my payloads and headers; it looks identical to the one from the example.

Here is the code: replit

Link to the challenge:

Would love any help you can provide me.

Try submitting the following valid url to your app:

https://freecodecamp.org/news