Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use multiples api endpoints to prevent dns blocking services. #2

Closed
arthurfiorette opened this issue Sep 27, 2021 · 1 comment
Closed

Comments

@arthurfiorette
Copy link

I'm behind my homelab network with pihole, so when looking up for the https://api.vytal.io/ip/ at

const fetchAPI = (setData) => {
fetch('https://api.vytal.io/ip/')
.then((response) => response.json())
.then((json) => {
setData(json);
});
, the request fails with connection.js:5 GET https://api.vytal.io/ip/ net::ERR_CONNECTION_REFUSED.

I think a catch block to show a message about it or use multiples apis (or just domains) to bypass it.

came by reddit <3

@z0ccc
Copy link
Owner

z0ccc commented Sep 27, 2021

I accidentally took down api.vytal.io when renewing the ssl certificate lol. Its back up now.

@z0ccc z0ccc closed this as completed Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants