Closed spawn81 closed 2 years ago
Hi there, we're cleaning up the Valet issue tracker and are moving all feature requests/support questions to the Discussions tab. We'll be using the issue tracker solely for bugs with Valet from now on. You're welcome to continue the discussion on in the Discussions tab. Thanks!
Clear description of your problem
I have a Mac M1 and I want to share a site using valet share, but I have this error: Tunnel 'command_line' specifies an invalid or malformed address 'tailtest. The tld is tailtest.test, it's served over https and locally it's working. I read the #790 so I tried *ngrok http ${PWD##/}.test:80 -host-header=rewrite** but got 503 error after clicking on the links.
Expected behavior
getting the ngrok shareable links
Current behavior
Tunnel 'command_line' specifies an invalid or malformed address 'tailtest. or 503 error
Steps to Reproduce
Output of these steps
NAME: http - start an HTTP tunnel
USAGE: ngrok http [command options] [arguments...]
DESCRIPTION: Starts a tunnel listening for HTTP/HTTPS traffic with a specific hostname. The HTTP Host header on incoming public requests is inspected to determine which tunnel it matches.
HTTPS endpoints terminate TLS traffic at the ngrok server using the ngrok.io certificates. The decrypted, HTTP traffic is then forwarded through the secure tunnel and then to your local server. If you don't want your TLS traffic to terminate at the ngrok server, use a TLS or TCP tunnel.
EXAMPLES: ngrok http 8080 # forward ngrok.io subdomain to port 80 ngrok http example.com:9000 # forward traffic to example.com:9000 ngrok http -subdomain=bar 80 # request subdomain name: 'bar.ngrok.io' ngrok http -hostname=ex.com 1234 # request tunnel 'ex.com' (DNS CNAME) ngrok http -auth='falken:joshua' 80 # enforce basic auth on tunnel endpoint ngrok http -host-header=ex.com 80 # rewrite the Host header to 'ex.com' ngrok http file:///var/log # serve local files in /var/log ngrok http https://localhost:8443 # forward to a local https server
OPTIONS: --auth enforce basic auth on tunnel endpoint, 'user:password' --authtoken ngrok.com authtoken identifying a user --bind-tls "both" listen for http, https or both: true/false/both --config path to config files; they are merged if multiple --host-header set Host header; if 'rewrite' use local address hostname --hostname host tunnel on custom hostname (requires DNS CNAME) --inspect enable/disable http introspection --log "false" path to log file, 'stdout', 'stderr' or 'false' --log-format "term" log record format: 'term', 'logfmt', 'json' --log-level "info" logging level --region ngrok server region [us, eu, au, ap, sa, jp, in] (default: us) --subdomain host tunnel on a custom subdomain
ERROR: Tunnel 'command_line' specifies an invalid or malformed address 'tailtest. ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::offsetExists($key) should either be compatible with ArrayAccess::offsetExists(mixed $offset): bool, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1411 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::offsetGet($key) should either be compatible with ArrayAccess::offsetGet(mixed $offset): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1422 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::offsetSet($key, $value) should either be compatible with ArrayAccess::offsetSet(mixed $offset, mixed $value): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1434 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::offsetUnset($key) should either be compatible with ArrayAccess::offsetUnset(mixed $offset): void, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1449 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1366 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Collection.php on line 1356 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\Collection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 842 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\LazyCollection::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 1350 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\LazyCollection::getIterator() should either be compatible with IteratorAggregate::getIterator(): Traversable, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/LazyCollection.php on line 1340 ERROR:
ERROR: Deprecated: Return type of Tightenco\Collect\Support\LazyCollection::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /Users/leon/.composer/vendor/tightenco/collect/src/Collect/Support/Traits/EnumeratesValues.php on line 842 ERROR: test:60': strange hostname
Possible solution
Diagnosis
sw_vers
valet --version
cat ~/.config/valet/config.json
cat ~/.composer/composer.json
composer global diagnose
composer global outdated
ls -al /etc/sudoers.d/
brew config
brew services list
brew list --formula --versions | grep -E "(php|nginx|dnsmasq|mariadb|mysql|mailhog|openssl)(@\d\..*)?\s"
brew outdated
brew tap
php -v
which -a php
php --ini
nginx -v
curl --version
php --ri curl
~/.composer/vendor/laravel/valet/bin/ngrok version
ls -al ~/.ngrok2
brew info nginx
brew info php
brew info openssl
openssl version -a
openssl ciphers
sudo nginx -t
which -a php-fpm
/opt/homebrew/opt/php/sbin/php-fpm -v
sudo /opt/homebrew/opt/php/sbin/php-fpm -y /opt/homebrew/etc/php/8.1/php-fpm.conf --test
ls -al ~/Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchAgents | grep homebrew
ls -al /Library/LaunchDaemons | grep homebrew
ls -al /Library/LaunchDaemons | grep "com.laravel.valet."
ls -aln /etc/resolv.conf
cat /etc/resolv.conf
ifconfig lo0
sh -c 'echo "------\n/opt/homebrew/etc/nginx/valet/valet.conf\n---\n"; cat /opt/homebrew/etc/nginx/valet/valet.conf | grep -n "# valet loopback"; echo "\n------\n"'
sh -c 'for file in ~/.config/valet/dnsmasq.d/*; do echo "------\n~/.config/valet/dnsmasq.d/$(basename $file)\n---\n"; cat $file; echo "\n------\n"; done'
sh -c 'for file in ~/.config/valet/nginx/*; do echo "------\n~/.config/valet/nginx/$(basename $file)\n---\n"; cat $file | grep -n "# valet loopback"; echo "\n------\n"; done'