System.ArgumentOutOfRangeException: Length cannot be less than zero. Parameter name: length

Ok, I think we have found the cause of this issue.

In this post you recommended putting “Ignore” in the Request.Items to ignore any incoming bearer tokens.

This caused the issue when trying to do the Substring(0,-1) here:
image

My workaround was to use httpReq.Items[Keywords.Authorization] = “Ignore Ignore” but I think this fix should be on your side so that setting to a simple “Ignore” works as you expected it to.