API Listener Trigger Returns Error

95 views
Skip to first unread message

michael...@zodiac.com

unread,
Sep 2, 2014, 4:24:50 PM9/2/14
to suppor...@runmyprocess.com
Hello -

I am absolutely stumped on this one and not sure what further debugging I can do.

I have an API listener, "getLinkedDrawings", defined to launch manually via JavaScript and run a composite API titled "getLinkedDrawings".

The composite API runs fine from launch test - no errors.

But when I trigger the API listener, the error function always fires:
id_getLinkedDrawings.trigger(
{"ecoNumber":"201081"},
{},
function(){alert('success')},
function(){alert('failure')}
);

Can you help me understand why I get always get the error function in the API listener? Or are there any other debugging tools for API listener?

Michael

Bidisha Das

unread,
Sep 2, 2014, 9:23:56 PM9/2/14
to suppor...@runmyprocess.com, michael...@zodiac.com
Hi Michael,
Please check the configuration of your Composite API.The Accept media type and Result media type should be application/json. If still facing the error,kindly share your javascript code you are using to fire the composite API.


Thanks & Regards
Bidisha

Wagner, Michael

unread,
Sep 2, 2014, 10:19:51 PM9/2/14
to Bidisha Das, suppor...@runmyprocess.com

Yay!

That was it!  I can't believe that I missed those settings.

Thank you!  Now if I could just get the hours back that I spent trying to figure out what I did wrong...  


--

MICHAEL WAGNER
PLM Systems Engineer
Zodiac Pool Systems, Inc.
2620 Commerce Way, Vista, CA 92081
michael...@zodiac.com
Ph 760-599-9600 x3087
Cell 760-473-8785

Reply all
Reply to author
Forward
0 new messages