Can anyone explain why I’m getting this message:-
message: ''
details:
applicationError:
description: Forbidden
code: FORBIDDEN
data: {}
I’ve extracted the function into a smaller .jsw :-
import { wixEvents } from "wix-events-backend";
import wixData from 'wix-data';
export function eventUpdate(eventId, toUpdateEvent) {
console.log(eventId, toUpdateEvent);
let updateOptions={
"language": "en"
};
wixEvents.updateEvent(eventId, toUpdateEvent, updateOptions)
.then((results) => {
console.log(results);
return results;
})
.catch((error) => {
console.error(error);
});
}
One other slightly odd behaviour is that I have to have the language option even though the API documentation says it’s optional.
This is really holding up the release of the website so I hope someone can help fix it.
Many thanks