Connection to your Matomo dashboard could not be established (Error 401)

I’m trying to connect Mainwp with matomo, but im getting “Connection to your Matomo dashboard could not be established(Error 401).” I’m hosting with runcloud on OLS, they said everything is good on their end. I tired disabling firewall, Cloudflare switch to DNS only. Does anyone know what other things could be causing the issue?