The request authorization key is not authorized for <*>. This is due to the reason: Invalid length for a Base-64 char array or string.

Nancy Chan-Cheung 0 Reputation points Microsoft Employee
2023-09-16T01:29:13.7833333+00:00

Our service publishes about 4000 messages daily to the event grid. Based on our logs, about 100 messages a day would fail due to the following error.
[System.AggregateException: One or more errors occurred. (The request authorization key is not authorized for <Topic Endpoint>. This is due to the reason: Invalid length for a Base-64 char array or string. Report '35b8ef83-c8c9-4fb9-b7b2-ccfc58d74d3f:7:9/16/2023 12:39:20 AM (UTC)' to our forums for assistance or raise a support ticket.)

Since most of the messages are successfully published to the event grid, the auth key stored and retrieved from the key vault is valid. What can cause these intermittent failures?

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
330 questions
{count} votes