Error retrieving WixEvent

I’m developing a new page on a website where I’m the owner.
For some reason that I can’t fathom when retrieving an event I’m getting this error

message: 'PERMISSION_DENIED: Requires WIX_EVENTS.READ_EVENT_DASHBOARD permission; MemberIdentity id=''d49175fc-9943-4d34-8ed2-881e5749741f'': Forbidden' details:   applicationError:     description: Forbidden     code: FORBIDDEN     data: {}

the code in the backend is very simple.

import { wixEvents } from "wix-events-backend";
export function getEventDetails(eventId) {
    console.log(eventId);
    let eventData;
    return wixEvents.getEvent(eventId)
        .then((result) => {
            console.log(result);
            eventData = result;
        })
        .catch((error) => {
            console.error(error);
        });
}

Can anyone shed any light on why the owner who should have unrestricted permissions is getting this error?

Hi Doug, if you have a look at velo docs it cleary says that Only those with “Manage Events” permissions can get Wix events. So in order to get specific event you need to have that permission. If you explain your idea here I might be able to give some suggestions.

Yes, it does. But when in developer mode as owner it doesn’t matter. What I didn’t make clear is that this has been working while developing the new page but suddenly stopped.
It would seem to be a general Wix problem as there’s another thread where someone else is experiencing similar problems.

did you get this resolved? I’m experiencing the same issue, working on a old wix data website as an owner, i wonder if my account need some refreshing to get the newer permissions?

Hello Nicolas,
If it still persists, I suggest you to report it to the CC so they can take a look and further investigate this behaviour for you.
https://community.wix.com/velo/forum/coding-with-velo/how-to-report-a-bug-1

Did you resolve this issue, I have the same exact issue.