Body:
Hi FreeCodeCamp team,
I’m currently working on the Backend Development and APIs certification and am encountering persistent test failures on two projects, even though both applications function correctly when deployed.
URL Shortener Microservice
Failing Test:
“When you visit /api/shorturl/<short_url>, you will be redirected to the original URL.”
What I’ve Verified
- POST
/api/shorturlworks correctly and returns:
{ "original_url": "https://freecodecamp.org", "short_url": 1 }
-
Visiting
/api/shorturl/1properly redirects. -
Using curl on the deployed Render app:
curl -I https://fcc-url-shortener-microservice-i0q2.onrender.com/api/shorturl/1
Returns:
HTTP/1.1 302 Found
Location: https://freecodecamp.org
So the server is clearly returning a valid 302 redirect with the correct Location header.
Render Deployment:
https://fcc-url-shortener-microservice-i0q2.onrender.com
Despite this correct behavior, Test #3 continues to fail.
File Metadata Microservice
Failing Test:
File upload test (Test #4).
What I’ve Verified
-
The endpoint
/api/fileanalyseaccepts multipart/form-data. -
Uploading a file returns JSON in the exact expected format:
{
"name": "example.txt",
"type": "text/plain",
"size": 123
}
- The project works locally and when deployed.
At this point, both applications appear to meet the project specifications and behave exactly as required, but the FCC tests are still failing.
I’ve tested locally, in other environments, and on Render. The behavior is consistent and correct, which makes me suspect a possible issue with the automated test runner or deployment environment compatibility.
Since this is blocking certification completion, I’d really appreciate clarification on whether this is a known issue or if there’s something specific the test runner requires that may not be documented.
Thank you for your time and assistance.
