# Context in rule is sometimes undefined?

**URL:** <https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167>\
**Category:** Get Help\
**Created:** [April 15, 2021, 2:20pm UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167 "2021-04-15T14:20:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryan.li](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bryan.li/32/27505_2.png) [@bryan.li](https://community.auth0.com/u/bryan.li)\
**Post date:** [April 15, 2021, 2:20pm UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167/1 "2021-04-15T14:20:19Z")

</div>

I have a rule to add roles to the access token… but sometimes, the auth fails because context is undefined… I turn off the rule then back on, then everything is fine.

Has anyone ran into that before?

---

<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:** [April 15, 2021, 2:26pm UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167/3 "2021-04-15T14:26:09Z")

</div>

Hey there!

We’re aware of the issue and we are investigating that I’ll get back to you as soon as we will have updates to share!

---

<div class="post-metadata">

**Author:** ![bryan.li](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bryan.li/32/27505_2.png) [@bryan.li](https://community.auth0.com/u/bryan.li)\
**Post date:** [April 15, 2021, 4:05pm UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167/4 "2021-04-15T16:05:11Z")

</div>

@konrad.sopala just noticed another auth issue, the error is now FAILED SILENT AUTH based on the log, and auth started working again after I turn off the rule.

---

<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:** [April 16, 2021, 6:46am UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167/5 "2021-04-16T06:46:58Z")

</div>

Hey there!

I’ve got an update that it should be fixed for everyone now! Once more sorry for the inconvenience! Please let us know if by any chance anyone still experience this issue.

---

<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:** [April 23, 2021, 1:15pm UTC](https://community.auth0.com/t/context-in-rule-is-sometimes-undefined/61167/6 "2021-04-23T13:15:55Z")

</div>


