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

Uncaught TypeError: trim() expects parameter 1 to be string, bool given in /app/updater.php:12 #2

Closed
drevel123 opened this issue Aug 2, 2021 · 2 comments

Comments

@drevel123
Copy link

drevel123 commented Aug 2, 2021

Updating the IPv4 doesn't work, for some reason the url 'https://v4.ident.me' returns 'false' when using the script via docker. Opening the url in the webbrowser returns my IPv4 as intended. The same goes for IPv6 (the error is in line 18 then). Somehow, every now and then it works without throwing errors.

today at 20:46:45
today at 20:46:45 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name does not resolve in /app/updater.php on line 12
today at 20:46:45
today at 20:46:45 Warning: file_get_contents(https://v4.ident.me): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name does not resolve in /app/updater.php on line 12
today at 20:46:45
today at 20:46:45 Fatal error: Uncaught TypeError: trim() expects parameter 1 to be string, bool given in /app/updater.php:12
today at 20:46:45 Stack trace:
today at 20:46:45 #0 /app/updater.php(12): trim(false)
today at 20:46:45 #1 {main}
today at 20:46:45 thrown in /app/updater.php on line 12

@bench-marc
Copy link

I have the same issue.
Somehow the container has no access to the internet.
Might be a problem with DNS.

@bench-marc
Copy link

I fixed the issue for me by updating libseccomp on my host (raspberry pi) as described in this post:
alpinelinux/docker-alpine#135 (comment)

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