"ERROR: Request to Webtask got ESOCKETTIMEDOUT" on completely static rule

I’m trying to add the list of the user’s roles to the JWT. I have a rule that looks like this:

function (user, context, callback) {
  context.idToken.roles = context.authorization && context.authorization.roles;

I am not making any kind of external connection, I am literally just trying to copy one variable into another. However, if I try to test or run it, I always get ERROR: Request to Webtask got ESOCKETTIMEDOUT. I even tried commenting out the one line of code so the function body is completely empty, and turning off all other rules, and I still got the error.

Your script doesn’t do any callback.
Regardless of what it does it must always perform a callback at the end.