Skip to content

Error Invalid operation #9

@platonov-denis

Description

@platonov-denis

When I try to run the script, I get the following notification:

Gemini error: Invalid operation: The
`response.parts` quick accessor requires a
single candidate, but but
`response.candidates` is empty.
This appears to be caused by a blocked
prompt, see `response.prompt_feedback`:
block_reason: PROHIBITED_CONTENT

Can this be fixed? And what is this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions