Skip to content
Troubleshooting Goo...
 
Notifications
Clear all

Troubleshooting Google Gemini Location Errors

19 Posts
4 Users
0 Reactions
6 Views
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

Hello everyone,

I'm encountering a location error when attempting to call the Google Gemini API. I suspect this is due to my callin.io server being located in the EU. Are there any known workarounds for this?

Data:
json
{
"error": {
"code": 400,
"message": "User location is not supported for the API use.",
"status": "FAILED_PRECONDITION"
}
}

 
Posted : 15/02/2024 12:19 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

The workaround involves utilizing the Google Maps “Get a location” Module and then passing the Formatted Address variable to Gemini.

 
Posted : 15/02/2024 1:54 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

Interesting!!

:slight_smile:

I've added the module, but how do I integrate this into the HTTP request?

 
Posted : 15/02/2024 2:06 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Oh, I understood you were looking to retrieve your location using Gemini.

It appears Gemini is not accessible for your use case. I'm uncertain if a workaround exists for this.

You might consider using ScrapeNinja to perform the HTTP call – it allows you to select different servers.

 
Posted : 15/02/2024 2:11 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

Ah, interesting! Thanks, I'll look into that.

 
Posted : 15/02/2024 2:12 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Screenshot of module that shows US as a possible option

Screenshot_2024-02-15_131327

 
Posted : 15/02/2024 2:14 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

That's great! Now I'm trying to figure out how to get a ScrapeNinja account, which isn't straightforward.

 
Posted : 15/02/2024 2:17 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

See RapidAPI Error Code 403 - #2 by samliew for screenshots

 
Posted : 15/02/2024 2:20 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

WOW there is NO way I would have figured that out. Thank you <3

 
Posted : 15/02/2024 2:21 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

It appears I can scrape data, but I'm unable to make API calls from a proxy location?

 
Posted : 15/02/2024 2:24 am
karimzynera
(@karimzynera)
Posts: 6
Active Member
 

How did you manage to establish a successful connection? I'm consistently encountering a 403 error, despite ensuring the API key is correctly entered.

 
Posted : 15/02/2024 2:29 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

Could you please share the error message you're encountering?

 
Posted : 15/02/2024 2:30 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 
 
Posted : 15/02/2024 2:32 am
samliew
(@samliew)
Posts: 293
Reputable Member
 

It appears there's an extra / at the beginning of your URL, which is unusual.

Try testing it using the callin.io sandbox: ScrapeNinja Live Sandbox

 
Posted : 15/02/2024 2:35 am
KyleBehrend
(@kylebehrend)
Posts: 14
Active Member
Topic starter
 

Ok so that worked

Then I think I need to use the Scrape module because I can choose US:

but it doesn't work

 
Posted : 15/02/2024 2:46 am
Page 1 / 2
Share: