Dash auth failure on herooku

we are trying to add dash-auth basicAuth for authentication. it is working fine on local. but on heroku it is not working, sometimes working, but it is so rare. what is the problem, site is not responding

2022-08-04T12:58:12.746887+00:00 heroku[router]: at=error code=H12 desc="Request timeout" method=GET path="/" host=<app>.herokuapp.com request_id=d71d10a6-1fd4-475b-8fee-78400f423b26 fwd="ip" dyno=web.1 connect=0ms service=30000ms status=503 bytes=0 protocol=https
how to handle this problem