Hi, I have the following code:
export function fetchOrder() {
wixData.query("Stores/Orders")
.find()
.then((results) => {
const firstResult = results.items[0];
let toUpdate = {
"_id": firstResult._id,
"buyerLanguage": "fr",
};
wixData.update("Stores/Orders", toUpdate)
.then((response) => {
console.log('success');
console.log(response);
})
.catch((e) => {
console.log(e);
});
}
);
return;
}
It always ends up in the catch() and the error is:
Unknown error. Request ID: 1624433954.2523405571903426858. Message: Request failed with status code 404.
I’m not sure how to solve this. Anyone has encountered this previously?
Thanks!