Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

gemini api error 500

I am getting this error every time the artificial intelligence has to decide to use a function, but it works when you give it an example like "hello". This didn't happen until I saw that they updated the function calling documentation and added 2 more models. Please check the API...

{
"errorMessage": "The service was not able to process your request",
"errorDetails": {
"rawErrorMessage": [
"500 - \"{\\n \\\"error\\\": {\\n \\\"code\\\": 500,\\n \\\"message\\\": \\\"An internal error has occurred. Please retry or report in https://developers.generativeai.google/guide/troubleshooting\\\",\\n \\\"status\\\": \\\"INTERNAL\\\"\\n }\\n}\\n\""
],
"httpCode": "500"
},
"n8nDetails": {
"nodeName": "Texto existe",
"nodeType": "n8n-nodes-base.httpRequest",
"nodeVersion": 4.1,
"itemIndex": 0,
"time": "11/4/2024, 10:36:48",
"n8nVersion": "1.33.1 (Self Hosted)",
"binaryDataMode": "default",
"stackTrace": [
"NodeApiError: The service was not able to process your request",
" at Object.execute (/usr/local/lib/node_modules/n8n/node_modules/n8n-nodes-base/dist/nodes/HttpRequest/V3/HttpRequestV3.node.js:1571:35)",
" at processTicksAndRejections (node:internal/process/task_queues:95:5)",
" at Workflow.runNode (/usr/local/lib/node_modules/n8n/node_modules/n8n-workflow/dist/Workflow.js:724:19)",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:660:53",
" at /usr/local/lib/node_modules/n8n/node_modules/n8n-core/dist/WorkflowExecute.js:1062:20"
]
}
}.  url https://generativelanguage.googleapis.com/v1beta/models/gemini-1.0-pro:generateContent

6 1 2,200
1 REPLY 1

I understand that it is in beta version and that's why this function stopped working correctly