Flowdock

Expand all | Collapse all

error: nil is not a supported event

Jump to Best Answer
  • 1.  error: nil is not a supported event

    Posted 02-28-2017 04:07 PM

    I am trying to create an integration from Freshdesk to Flowdock (using Freshdesk webhooks to start and eventually a plugin app) so I am testing the REST calls using curl from terminal. I have made some progress (able to list all flows) but having issue trying to post a message.

    Here is the curl command I am using (token redacted):

     

    curl eb...7112c@api.flowdock.com/flows/pubnub/support-team/messages" rel="nofollow" target="_blank">https://eb...7112c@api.flowdock.com/flows/pubnub/support-team/messages7112c@api.flowdock.com/flows/pubnub/support-team/messages -d '{"event":"message","content":"Howdy-Doo @Jackie #awesome"}'

     

    ... and I get this error message:

     

    {"message":"nil is not a supported event"}

     

    I just want to be able to post a message to a flow.

    What am I doing wrong?

     

    Thanks

    Craig



  • 2.  Re: error: nil is not a supported event
    Best Answer

    Posted 03-01-2017 03:33 AM

    Hello pubnubcraig

     

    If you specify the data type being passed as JSON, that should work.

     

    curl https://eb...7112c@api.flowdock.com/flows/pubnub/support-team/messages7112c@api.flowdock.com/flows/pubnub/support-team/messages -H "Content-Type: application/json" -d '{"event":"message","content":"Howdy-Doo @Jackie #awesome"}'

    Hope that helps.

     

    Michael