# How to handle error messages from Rules

**URL:** <https://community.auth0.com/t/how-to-handle-error-messages-from-rules/18813>\
**Category:** Get Help\
**Tags:** rules\
**Created:** [December 7, 2018, 12:29pm UTC](https://community.auth0.com/t/how-to-handle-error-messages-from-rules/18813 "2018-12-07T12:29:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ripperdoc](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@ripperdoc](https://community.auth0.com/u/ripperdoc)\
**Post date:** [December 7, 2018, 12:29pm UTC](https://community.auth0.com/t/how-to-handle-error-messages-from-rules/18813/1 "2018-12-07T12:29:36Z")

</div>

Hello! I am trying to use the Hosted Page with /authorize URL as entry point (not using Auth0.js on client). I also use some Auth0 rules. But any time I get an error in those rules and get redirected to the Auth0 default error page, somehow the error message is appended to the redirect\_url in a way that obfuscates the error. Is this expected behaviour or am I doing something wrong? For example, I get this error message:

```
invalid_request: The redirect_uri parameter is not valid: "https://<redacted>/auth/callback?next=https%3A%2F%2F<redacted>%2Fauth%2Fcallback%3Ferror%3Daccess_denied%26error_description%3Dno email or no verification_code provided" If url looks fine, check that you are not including non printable chars

```

I redacted my domain, but as you can see, the callback has been mashed together with the error message. How can I get the error message to display directly here?

---

<div class="post-metadata">

**Author:** ![charsleysa](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/charsleysa/32/9722_2.png) [@charsleysa](https://community.auth0.com/u/charsleysa)\
**Post date:** [December 8, 2018, 3:09am UTC](https://community.auth0.com/t/how-to-handle-error-messages-from-rules/18813/2 "2018-12-08T03:09:34Z")

</div>

Hi @ripperdoc

That redirect\_uri parameter doesn’t look quite right.

It looks like it has extra query parameters passed to it which would cause the redirect\_uri parameter to fail validation as it most likely isn’t configured in the Auth0 management dashboard.

If you’re able to upload a [.HAR file](https://auth0.com/docs/troubleshoot/har) (with sensitive information obfuscated) then that might provide more insight.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [August 28, 2019, 2:37pm UTC](https://community.auth0.com/t/how-to-handle-error-messages-from-rules/18813/3 "2019-08-28T14:37:36Z")

</div>


