Prod build error broken: 403 Forbidden: ReadOnlyAdminKey: You do not have permission

My prod build just broke with the following error: Error fetching POST https://exuberant-bullfrog-95.convex.cloud/api/prepare_schema 403 Forbidden: ReadOnlyAdminKey: You do not have permission to perform this operation. Why is this happening? I correctly configured the deploy key on the env
No description
10 Replies
Giovani Granzotto
Giovani GranzottoOP6mo ago
And if I just switch the env variable to use another account project's keys/URL it works. I will eventually need to switch to this one though
lee
lee6mo ago
i believe you must be an admin of the project to create a deploy key that can be used for pushing code to the deployment. you could ask a project admin to create a deploy key and use that key to set up the env
lee
lee6mo ago
Convex Dashboard
Manage your Convex apps
Giovani Granzotto
Giovani GranzottoOP6mo ago
So "team admin" isn't enough? But what is the prod deploy key that is enabled for me good for then?
No description
lee
lee6mo ago
a readonly deploy key can be used to read data from convex into another system with a fivetran or airbyte source connector https://docs.convex.dev/production/integrations/streaming-import-export
lee
lee6mo ago
can you #verify your account so we can look it up? i don't understand why you're a team admin but not project admin thanks
Giovani Granzotto
Giovani GranzottoOP6mo ago
Hmmm ok, I'll ask the owner to generate a key when I get the chance then done
lee
lee6mo ago
when did you create this key? i'm looking at the code now, and team admin should be sufficient, as long as you created the key after becoming a team admin
Giovani Granzotto
Giovani GranzottoOP6mo ago
I created it today, a while after the owner granted me the "team admin" role. It could only have been created after I had the role because the button is disabled before that
No description
lee
lee6mo ago
well that's very confusing. we'll look into it on our end. out of curiosity, if you create a new deploy key, does that work?

Did you find this page helpful?