Getting message sent OK as response, but no message from IM...

bvelasquez's Avatar

bvelasquez

02 Jun, 2009 11:45 PM via web

Hello,

I'm getting the following:

This should indicate the message was sent successfully. However, I am not receiving an IM message from the IM client when I use the "send" API method. It worked a couple of times, but then quit. The bot responds to requests.

I'm sending the following form fields:

form_fields = {
      "botkey": self.bot_key,
      "apimethod": "send",
      "userkey": final_key,
      "msg" : message
    }

The user_key is taken from directly from the first user message sent. I'm sure the user key is correct.

Barry

  1. Support Staff 2 Posted by Adam Kalsey on 02 Jun, 2009 11:47 PM

    Adam Kalsey's Avatar

    Which IM client and network are you sending to?

  2. 3 Posted by bvelasquez on 02 Jun, 2009 11:54 PM

    bvelasquez's Avatar

    IM is Google Talk. I'm using Adium as the Client. Imified Application is TaPingYa Bot. I'm at http://www.tapingya.com/software if you have time to chat about this.

    Barry

  3. Support Staff 4 Posted by Adam Kalsey on 03 Jun, 2009 02:21 PM

    Adam Kalsey's Avatar

    I'm not seeing any issues on our end. Does the bot appear on your
    gmail contacts list and show as online? Not getting any HTTP errors or
    timeouts from the API when you send the message? Are you sending the
    messages to a gtalk account @gmail.com or is it a Google Apps account
    with a different domain?

  4. Support Staff 5 Posted by Adam Kalsey on 03 Jun, 2009 02:23 PM

    Adam Kalsey's Avatar

    Also, I assume you've checked to make sure that your message variable isn't empty or null.

  5. 6 Posted by bvelasquez on 03 Jun, 2009 03:57 PM

    bvelasquez's Avatar

    I'm getting success. The message text has data:

    Here is the response from the service request.

       <rsp stat="ok">
    
            <success msg="sent"/>
    
    </rsp>
    

    The user_key is from a gmail.com account. The bot is in the list and appears online. I can send an IM message to it and that works. The problem is after the "send" api call, I get no IM.

  6. 7 Posted by bvelasquez on 03 Jun, 2009 04:03 PM

    bvelasquez's Avatar

    Ok, I think I figured out the problem.

    I had quotes in the message string. So, I was sending:

    "here is my message" sent by bvelasquez in room Development Test Sandbox

    Apparently, it does not like the quotes. I probably need to encode the string properly or something to that effect.

  7. Support Staff 8 Posted by Adam Kalsey on 03 Jun, 2009 07:11 PM

    Adam Kalsey's Avatar

    That sounds like a bug. We'll look into it.

  8. 9 Posted by Anthony Webb on 08 Jun, 2009 12:29 AM

    Anthony Webb's Avatar

    This bug has been fixed in our release last night. Thanks for reporting.

  9. Anthony Webb closed this discussion on 08 Jun, 2009 12:29 AM.

Comments are currently closed for this discussion. You can start a new one.