Share feedback, ideas and get community help

Home
Members
Thiago Aguiar
T
Thiago Aguiar
Offline, last seen 3 months ago
Joined September 13, 2024
I have a geolocation code that was working until yesterday, today it is giving an error and crashing my chat bot. what could be happening? (follow the code below)

async function obterLocalizacao() { try { const response = await fetch('https://get.geojs.io/v1/ip/geo.json'); const data = await response.json(); const cidade = data.city || "Local Desconhecido"; return cidade; } catch (error) { console.error('Erro ao obter a localização:', error); return "Local Desconhecido"; } } return await obterLocalizacao();
2 comments
T
B