I just leave this here just in case someone need it. I came across with the same error. I was calling my service which has an argument of the type Dictionary and one of the key/value pairs had the string value set to null.
I changed the code to make sure there were no null values and it worked