Error prevents app_metadata update in Rule

Update: This only seems to be an error when testing the rule. The rule does seem to work correctly when users authenticate.