Open
Description
I am getting the below error with the EdgeFunction (EF) when trying to update a 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": "401",
"title": "Unauthorized",
"detail": "PATCH /v2/functions/myFunction was unauthorized"
}
}
Below is the EF code:
if ( request.method === "PATCH" ) {
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 PATCH type request created via local POSTMAN app.
Metadata
Metadata
Assignees
Labels
No labels