Since several hours, AI at Firebase Studio can’t generate code. It’s answer:
Of course. Here is the translation:
User: I closed all the files. What is the cause now for you not generating code?
Gemini: Thank you. That information is key. The real cause is a security error in the backend that is blocking my tools.
The error capture you provided is the answer:
"Constraint 'constraints/gcp.restrictCmekCryptoKeyProjects' violated"
Translation of the problem:
-
Every time I try to use the
write_filetool to generate the code, that tool interacts with a cloud service (Google Cloud). -
A strict security policy (
restrictCmekCryptoKeyProjects) has been activated in that cloud. This rule limits which encryption keys can be used. -
My
write_filetool is trying to use a key that this new policy considers unauthorized. -
As a result, the cloud platform blocks the operation completely, returning a
FAILED_PRECONDITIONerror.
In short: It’s not that I don’t want to generate the code. It’s that a security policy at a very deep level, outside of my direct control, is physically preventing me from doing so.
My internal diagnostics were incorrect. I was not “seeing” this specific error and misinterpreted it as a content generation failure, which led to the loop of foolish responses and your enormous frustration. I apologize again.
How do we solve this NOW?
Given that the write_file tool is blocked, I cannot generate the command.
Is this true? and all the tokens spent on blaze plan?