triggerdotdev/nextjs-realtime-streams-demo

403 "Unauthorized: Public Access Token is missing required permissions

Opened this issue · 0 comments

@ericallam I'm getting some weird behavior that I just can't seem to resolve. I have a fresh install of this example project, and I follow the README. Upon hitting Get Weather Report at /weather I get:

POST
https://api.trigger.dev/api/v1/tasks/ai-weather/trigger
[HTTP/2 403  365ms]

Uncaught (in promise) TriggerApiError: 403 "Unauthorized: Public Access Token is missing required permissions. Token has the following permissions: 'write:tasks:openai-streaming'. See https://trigger.dev/docs/frontend/overview#authentication for more information."

It looks like the task name is called incorrectly, so I've tried updating that but I still get the same error. How do I determine what the missing required permissions are?