Type Error on Regression Problem

Neither - it’s in the computation of logp. In this case it is generated by one of the deterministic transformation (mu). In practice, you need to check all the inputs to the problematic RV (parameters and the observed in this case).