Gabotronix
2 months ago
464
2
General

404 Error when testing stripe webhooks with ngrok

Posted 2 months ago by Gabotronix

Hi everybody, I want to test stripe webhooks from stripe dashboard using ngrok, when I send a test webhook to my route I get error 404 response on dashboard.

In ngrok cmd tab I get this error:

HTTP Requests
-------------                                                                                                                                                                                                                                   POST /api/stripe/webhooks      404 Not Found 

In dashboard I added the following endpoint

http://daa0199bce35.ngrok.io/api/stripe/webhooks

which points to this route:

Route::post('/stripe/webhooks', 'Api\[email protected]');

In ngrok tab I get the following:

Session Status                online                                                                                    Session Expires               6 hours, 50 minutes                                                                       Version                       2.3.35                                                                                    Region                        United States (us)                                                                        Web Interface                 http://127.0.0.1:4040                                                                     Forwarding                    http://daa0199bce35.ngrok.io -> http://localhost:80                                       Forwarding                    https://daa0199bce35.ngrok.io -> http://localhost:80                                                                                                                                                              Connections                   ttl     opn     rt1     rt5     p50     p90                                                                             4       0       0.00    0.00    0.02    0.24  

Please sign in or create an account to participate in this conversation.