Gemini API error : "[invalid URL removed]"

Hi,
I’m trying to get the wiki pages for a particular historical monument using Gemini, however I keep getting the response - [invalid URL removed]

Its weird because for some monuments it works & for some, it doesn’t.

Does anyone have a solution/workaround for this?

1 Like

It helps to be somewhat specific. Which API did you invoke to get a URL back? The Gemini API is not an index into Wikipedia, although it is fairly certain the model received training from it.

1 Like

I have faced similar issues. When I sent a piece of text to it to analyze it, it first made citation from the website, then it stopped the response. I guess the text was not allowed to use. (copyrighted). I didn’t get a way to get the response. Finally i switched to GPT-4o for that question.