Don't know if it was a typo, but you said you have:
But it have to be:
I tried getByName and it works fine.
May be you fixed your permissions and switched from getByName to getAllByName at the same time? Just curious, if you can confirm that getByName still does not work for you?