Error -1005 Invalid Argument Error - yahoo IM send_message #7

yappkey opened this Issue Aug 8, 2012 · 1 comment


None yet
2 participants

yappkey commented Aug 8, 2012

Trying to send a message, I get this error:

1005,"detail":"Invalid Argument Error"

Could someone please show me how to fix it?

Thank you so much.

Below is the information which was sent to yahoo server (in the form of: $url, 'post', $header, $postdata):, 'post', Array, {"message" : test ccc cccc}

rdmccoy commented Sep 9, 2012

I am not sure if the OP here is still trying to fix this issue, but for anyone who comes here from a google search:

Add double quotes around the $message variable, line 242.

So your line should look like this: $postdata = '{"message" : "'. $message. '"}';

Instead of this: $postdata = '{"message" : '. $message. '}';

Small typographical error in in the SDK that you download from here at GitHub. That should get you up and running!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment