Problems in some browsers
adominguez opened this issue · comments
Alberto Dominguez Martin commented
Hi, I'm using your Api to get the user location.
I'm using javascript to get this information like:
fetch('https://ipapi.co/json/')
.then( resp => resp.text())
.then( data => {
const {country_code: countryCode} = JSON.parse(data)
fetch(`https://xxxxxxxxxx.com?country=${countryCode}`)
.then( response=> response.json() )
.then((data) => console.log('some code with ', data));
})
sometimes it works ok and other times wrong.
Sometimes in Google Chrome I have this error: Failed to fetch --> testint with Chrome 38, Chrome81, Chrome80
Sometimes in Opera I have this error: Failed to fetch --> version Chrome67
Normally in Firefox I have this error: TypeError: NetworkError when attempting to fetch resource. --> version Firefox75
Can you help me please?
Thank you
IP Location commented
@adominguez Can you please send a support request here : https://ipapi.co/contact/ . We'll be glad to be of assistance.