Hola a todos, un gusto conectar con la comunidad. Necesito apoyo con un problema técnico urgente: estoy desarrollando una app de frases y consejos que utiliza la API de Google para generar contenido con IA. Aunque seguí las guías de Gemini para el desarrollo, me he topado con un error que no logro resolver. La IA ha entrado en un bucle de respuestas repetitivas sin dar con la solución, por lo que agradecería mucho si alguien pudiera echarme una mano para identificar el fallo.
Eliminate the empty socket.
Good morning, my friend! I'm new to App Inventor, but tell me what you mean—could you show me with an image, please? ![]()
Use Do it to get your json text you are trying to send and then check, if the json is valid
use Do it to debug your blocks, see also tip 4 here App Inventor: How to Learn | Pura Vida Apps
see also Live Development, Testing, and Debugging Tools
Taifun
PS: and next time please switch the language to English before taking a screenshot
(post deleted by author)
Google does not like your API key.
Show how you are supposed to send it, and show how you are actually sending it.
(post deleted by author)
This is how I'm sending it.
https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash:generateContent?key=(api)
You probably used the round brackets for the API key? Remove them
Taifun
I didn't actually include parentheses; I just used them to show where I put the API key
What about
Taifun
(post deleted by author)
Where can I see that???
Where are your instructions?
From where did you get that url?
Probably you have to provide the API key in the request header
Taifun
PS: you do not have to write your answers always twice... just keep the first version...
I'm attaching my instructions as a photo.
I copied the URL from Gemini; it told me to use that one with my API key. I'm a first-year Systems Engineering student and I'm working on this small project for Tuesday. To be honest, I don't know much about APIs yet, as I'll probably learn about servers in a few years.
Use again Do it to find out, if the url makes sense... no spaces inside?
Where did you get the API key from? Generate a new one
Taifun











