Have you tried following the suggestion in the error message, and passing a dictionary instead of a string?
If you’re still stuck please could you provide enough information for someone to reproduce your problem? See Getting good answers to your questions for a guide