Skip to content

HTTP PUT - Endpoint Not Found #30

Description

@drveresh

I am getting the below error with the EdgeFunction (EF) when trying to update a record of table of SQLite database instance. The error indicates neither a real technical issue nor a meaningful(unauthorized) issue. Please clarify and address this issue asap, I'm blocked on this.

{
    "error": {
        "status": "404",
        "title": "Not found",
        "detail": "PUT /v2/functions/myFunction was not found"
    }
}

Below is the EF code:

if ( request.method === "PUT" ) {
        const query = putQuery(request); //Returns "UPDATE Temp set status='${status}' WHERE id=${id}"
        result = await connection.sql(query);
        message = `Number of updates: ${result.length}`;
}

In the Console Logs, it is definitely a PUT type request created via local POSTMAN app.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions