That error will only present itself if you have an AG, and applications/users are trying to run update/delete/inserts to the secondary instance/replica DB.
Trace where those queries are coming from, and request the point to your listener name instead.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
This thing is addressing problems that dont exist. Its solution-ism at its worst. We are dumbing down machines that are inherently superior. - Gilfoyle