As I construct an editing feature for objects within my postgres database, I am encountering an issue related to form submission. Specifically, when attempting to update fields defined in the schema, I am receiving an error message: client_fetch_error undefined
. The process of posting data to the database functions smoothly without any hiccups. (For context, I am relatively new to web development as a whole).
The current versions I am using are next 12.1.2 and next-auth 4.24.6.
If I have omitted any pertinent information that would aid in resolving this issue, please do not hesitate to inquire further.
Attached below is the route containing all the necessary code for the edit page:
(...Code Snippet for Edit Page Route...)
Below you will find the associated API page responsible for handling edit and delete functionalities by id:
(...Code Snippet for API Page Handling Edits and Deletions...)
Here is the console output during the process:
https://next-auth.js.org/errors#client_fetch_error undefined {
error: {},
url: 'http://localhost:3000/api/auth/session',
message: undefined
}
got to api
clv5u15cn0000udk0yd2rt9i1