Trouble Connecting to the Database - FunctionError: insert not permitted
#21
-
Hello, I am having some issues connecting to my Database in my "insert.py" program, when I attempt to post the payload, using the endpoint_url and the insertOne function, I get the error: "Response: (400), msg = Failed to insert document: FunctionError: insert not permitted I can infer from the error that the issue is that my DataAPI user does not have the write permission to the database but I am not sure how to solve this issue. Thank you for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved The issue was that in my schema for the API I did not set up the values of the payload and because of this the database was not able to insert data. |
Beta Was this translation helpful? Give feedback.
Solved
The issue was that in my schema for the API I did not set up the values of the payload and because of this the database was not able to insert data.