Logging out error

hello - i am trying to log out and run into an error. i am following this code:

$auth0->logout();
$return_to = 'http://' . $_SERVER['HTTP_HOST'];
$logout_url = sprintf('http://%s/v2/logout?client_id=%s&returnTo=%s', 'dev-y-wc5m4m.auth0.com', '0Zo1EL8n2KZZ1mjqwCVYQh6zSvCxtXo4', $return_to);
header('Location: ' . $logout_url);

which redirects me to this page:

http://dev-y-wc5m4m.auth0.com/v2/logout?client_id=0Zo1EL8n2KZZ1mjqwCVYQh6zSvCxtXo4&returnTo=https://comptonpeslonline.com/comptonPractice/comptonPracticeNewHomeworkNew.php

but i see the following error:

dev-y-wc5m4m

Oops!, something went wrong

There could be a misconfiguration in the system or a service outage. We track these errors automatically, but if the problem persists feel free to contact us.
Please try again.

i tried changing the “http://” to “https://” and including “encodeurl()” in the return value with no success.

Hi @edwardsmarkf,

Take a look at the logs in your dashboard and see if there is an error there. This error page is usually intentionally generic for security’s sake.

Let me know.

Thanks,
Dan

1 Like

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.