Skip to content
Back

"Requested route not found" - Functions

  • 0
  • Functions
  • Cloud
apatrck01
16 Apr, 2024, 18:48

Hey I tried connecting to github (which worked) - but once i try to deploy the status gets stuck on “processing” no logs show up. When trying to redeploy I get the error message “The requested route not found”. I tried every possible combination of Entrypoint and Git settings. But nothing worked.

I also tried creating a new repository with a template. But the appropriate cloud did not create any code, just an empty repository. Same issues as well.

Also manual deployment (.tar.gz) does not work.

My sample main function:

TypeScript
import datetime


def main(context):
current_utc_time = datetime.datetime.now(datetime.UTC)
        # Return current UTC time in ISO8601 format
        return context.res.json({"now": current_utc_time.isoformat() + "Z"})

Folder structure: my_git_repository/src/main.py

(pls note i removed the build command [install requirements.txt] since i don't use any additional packages)

What am I doing wrong?

TL;DR
Developer is facing issues deploying their code as the status gets stuck on "processing" with no logs showing up. They have tried various combinations of Entrypoint and Git settings, creating a new repository, and manual deployment, all resulting in the error message "The requested route not found." The provided main function and folder structure seem correct. Solution: 1. Double-check the project ID and function ID. 2. Ensure the correct repository structure. 3. Verify the accuracy of Git settings and Entrypoint configurations. 4. Check if the build command is necessary for the project. 5. Try redeploying the code after making these adjustments
Steven
16 Apr, 2024, 19:52

what's your project id and function id

apatrck01
16 Apr, 2024, 20:28

I shared over pm - hope that's fine for you 🙂

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more