I am submitting form data using this:
const { SiteClient } = require("datocms-client")
const client = new SiteClient("APIKEYREMOVED")
export default async function createRecord(fields) {
console.log('@submit function ',fields)
const record = await client.items.create(fields)
console.log(record)
}
This is the error information, but I can't make heads or tails of it.
The form's handle submit function successfully call createRecord() from the form page. So, problem would seem to be from the snippet provided.
I sourced said snippet from here: DatoCMS create record simple example
