expose icon indicating copy to clipboard operation
expose copied to clipboard

Unable to use expose through custom domain

Open necrogami opened this issue 3 years ago • 4 comments

[2022-08-05 14:16:47] production.WARNING: explode(): Passing null to parameter #2 ($string) of type string is deprecated in phar:///usr/local/bin/expose/app/Client/Http/Modifiers/CheckBasicAuthentication.php on line 92

The php version is php 8.1.8

launching expose returns this error and never loads the page

necrogami avatar Aug 05 '22 14:08 necrogami

@necrogami Getting this error too using php 7.4. Did you figure out the issue?

daugaard47 avatar Aug 09 '22 14:08 daugaard47

I am still getting this error

necrogami avatar Aug 09 '22 14:08 necrogami

@necrogami Not sure if your issue is the same but I figured my issue out. When expose starts, look at the Shared URL, it like this:

Shared URL:             mysite.test:443
Dashboard:              http://127.0.0.1:4040
Public HTTP:            http://mysite.us-1.sharedwithexpose.com
Public HTTPS:           https://mysite.us-1.sharedwithexpose.com

In my case I use Laragon and was using the prefix mysite.oo, then changed it to mysite.test. Expose was still using Shared URL: mysite.oo.. So I ran expose share --subdomain=mysite --server=us-1 https://mysite.test

Now Expose uses Shared URL: mysite.test:443

However.. I still get the Warning on startup

production.WARNING: explode(): Passing null to parameter 2 ($string) of type string is deprecated in phar://C:/Users/myname/AppData/Roaming/Composer/vendor/beyondcode/expose/builds/expose/app/Client/Http/Modifiers/CheckBasicAuthenticati

But I can now use my webhooks with no issue. Hope that helps.

daugaard47 avatar Aug 10 '22 19:08 daugaard47

Well looks like the error was a bug. Has been fixed in latest release.

daugaard47 avatar Aug 11 '22 13:08 daugaard47