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

Bug: Unable to add the fixer API key #652

Open
danblu opened this issue Dec 7, 2024 · 3 comments
Open

Bug: Unable to add the fixer API key #652

danblu opened this issue Dec 7, 2024 · 3 comments

Comments

@danblu
Copy link

danblu commented Dec 7, 2024

When i try to add the fixer API key and press save, i get the following error. "SyntaxError: Unexpected token '<', "
"... is not valid JSON"
Capture 2024-12-07 at 23 22 44

Checking at the browser console under network and select 'fixer_api_key.php' i get the following details:

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for data.fixer.io failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 25

Warning: file_get_contents(http://data.fixer.io/api/latest?access_key={value}): Failed to open stream: php_network_getaddresses: getaddrinfo for data.fixer.io failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 25

Warning: Trying to access array offset on value of type null in /var/www/html/endpoints/currency/fixer_api_key.php on line 29
{"success":false,"message":"Ung\u00fcltiger API Key."}

But if i test my API key with postman, it is valid and i get the response.

My Wallos instance is running on a container with the latest version v2.39.1

@noinlijin
Copy link

I have the same error

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.apilayer.com failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 22

Warning: file_get_contents(https://api.apilayer.com/fixer/latest?base=USD&symbols=EUR): Failed to open stream: php_network_getaddresses: getaddrinfo for api.apilayer.com failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 22

Warning: Trying to access array offset on value of type null in /var/www/html/endpoints/currency/fixer_api_key.php on line 29
{"success":false,"message":"API \u5bc6\u94a5\u65e0\u6548\u3002"}

@noinlijin
Copy link

I have the same error

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for api.apilayer.com failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 22

Warning: file_get_contents(https://api.apilayer.com/fixer/latest?base=USD&symbols=EUR): Failed to open stream: php_network_getaddresses: getaddrinfo for api.apilayer.com failed: Try again in /var/www/html/endpoints/currency/fixer_api_key.php on line 22

Warning: Trying to access array offset on value of type null in /var/www/html/endpoints/currency/fixer_api_key.php on line 29
{"success":false,"message":"API \u5bc6\u94a5\u65e0\u6548\u3002"}

network error, change to other network it's work success

@ellite
Copy link
Owner

ellite commented Jan 12, 2025

Hi. It seems that something on your network is preventing you from reaching api.apilayer.com
The url is correct.
You can try the fixer.io instead.

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

3 participants