How to resolve AbuseProtectionResponseFailed in Azure Web PubSub - event handler?

JeffersonIMHANZENOBE-2389 0 Reputation points
2024-09-20T10:36:55.1433333+00:00

I am trying to configure an event handler for an Azure Web PubSub service. The event handler is behind an Azure Application Gateway. I get an error "The SSL connection could not be established, see inner exception."

There are no logs in the App gateway which means Azure Web PubSub has the problem before invoking the validate method.

Also, if I send an abuse protection request (OPTIONS method call) directly to the event handler via swagger or curl, I get a successful 200 status with WebHook-Allowed-Origin header set to *.

Live Trace log for Azure Web PubSub

  • Event Name: AbuseProtectionResponseFailed
  • Message: Abuse protection validation for 'https://***xxx' failed.
  • Exception: The SSL connection could not be established, see inner exception. is there a way to see this inner exception? I enabled diagnostic logging, but the inner exception is not in the logs

How do I resolve this?

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
75 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. brtrach-MSFT 16,346 Reputation points Microsoft Employee
    2024-09-26T02:53:04.76+00:00

    @JeffersonIMHANZENOBE-2389 To troubleshoot this issue, you can take the following steps:

    • Verify the SSL certificate and configuration of the event handler behind the Azure Application Gateway. Ensure that the SSL certificate is valid and the configuration is correct.
    • Check the SSL configuration of the Azure Web PubSub service. Ensure that the SSL certificate is valid and the configuration is correct.
    • Review the firewall settings of the Azure Web PubSub service and the event handler behind the Azure Application Gateway. Ensure that the necessary ports are open and the firewall rules are configured correctly.
    • Verify the network connectivity between the Azure Web PubSub service and the event handler behind the Azure Application Gateway. Ensure that there are no network issues or connectivity problems.

    Let us know the outcome by replying to this answer so we can assist you further if needed.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.