read the full error message
I sometimes focus on the feature that is not working and overlook the actual error message.
In one case, the application clearly said:
Expected string, got array
That was the problem.
Before searching for complicated fixes, read the complete error and compare the received value with the expected type.