Troubleshooting of Google Gemini: Difference between revisions

Jump to navigation Jump to search
Line 41: Line 41:
=== How to fix: TInvalid or unsupported file uri ===
=== How to fix: TInvalid or unsupported file uri ===
After upload the video, when I tried to analysis the video by the Gemini API
After upload the video, when I tried to analysis the video by the Gemini API
'''Error message'''
'''Error message'''
<pre>
<pre>
Line 56: Line 57:
* Please verify the format of your file URL. It should follow this pattern:
* Please verify the format of your file URL. It should follow this pattern:
`https://generativelanguage.googleapis.com/v1beta/files/XXXXX`
`https://generativelanguage.googleapis.com/v1beta/files/XXXXX`
=== How to fix: Invalid JSON payload received. Unknown name "responseSchema" at 'generation_config' ===
After upload the video, when I tried to analysis the video by the Gemini API
'''Error message'''
<pre>
{
  "error": {
    "code": 400,
    "message": "Invalid JSON payload received. Unknown name \"responseSchema\" at 'generation_config': Proto field is not repeating, cannot start list.",
    "status": "INVALID_ARGUMENT",
    "details": [
      {
        "@type": "type.googleapis.com/google.rpc.BadRequest",
        "fieldViolations": [
          {
            "field": "generation_config",
            "description": "Invalid JSON payload received. Unknown name \"responseSchema\" at 'generation_config': Proto field is not repeating, cannot start list."
          }
        ]
      }
    ]
  }
}
</pre>
Solution
* The parameter "responseSchema" could not be an empty array


== Further reading ==
== Further reading ==

Navigation menu