404 “NOT_FOUND” on after python app deployment

Hi,

This is my error code:
404: NOT_FOUNDCode: NOT_FOUNDID: arn1::klvwr-1752237780908-7356655bf710

This is my build log:
[15:50:17.484] Running build in Washington, D.C., USA (East) – iad1
[15:50:17.487] Build machine configuration: 2 cores, 8 GB
[15:50:17.516] Cloning github.com/userxp2000/codespaces-blank2 (Branch: main, Commit: c6e7aaa)
[15:50:18.211] Cloning completed: 695.000ms
[15:50:18.343] Restored build cache from previous deployment (h82zke5jPtLwqtULi34Z3xPe4iFe)
[15:50:18.555] Running “vercel build”
[15:50:19.053] Vercel CLI 44.3.0
[15:50:19.239] Build Completed in /vercel/output [14ms]
[15:50:19.258] Deploying outputs…
[15:50:20.365]
[15:50:20.509] Deployment completed
[15:50:21.291] Uploading build cache [4.00 kB]…
[15:50:21.358] Build cache uploaded: 70.709ms
[15:50:23.578] Exiting build container

This is my vercel.json:

{
“routes”: [
{
“dest”: “/api/$1.js”,
“src”: “/api/(.*)”
}
],
“version”: 2
}

Thanks in advance.

There’s another community post with 404 debugging tips that might be helpful. Please give these solutions a try and let us know how it goes.

A human should be around soon to offer more advice. But you can also get helpful information quickly by asking v0.

Are you having trouble reaching your python functions? I notice the vercel.json you show is mapping to JS files in the API, is that correct?

{
  "version": 2,
  "routes": [
    {
      "src": "/api/(.*)",
      "dest": "/api/$1.py"
    }
  ]
}

If you intend to have JS functions there and it’s a Python web app, then the most common reason is a misconfigured Build Framework setting for the project. Have you chosen the correct framework?