Hello,
I am attempting to send a post request from a custom button on the CRM UI to a third party server.
The response I get is: {"responseText":"internal exception","responseCode":"-1"}.
Please help me make sense of this message so I could understand why the request is failing.
Please note that the same request works fine in CURL, as well as on the Chrome ARM extension.
Moreover, the server logs do not show any indication that the request would have arrived at all, so it seems that the problem occurs on your server, which prevents the request from going out altogether.
The custom function on the button looks like this:
headerMap={ "Content-Type" : "application/json" };
urlString="
https://
DOMAIN:
PORT/oauth/token?grant_type=jwt-bearer&assertion=
JWT";
response = postUrl(urlString, headerMap, false);
info response;
return "test";
In the above urlString, the placeholders
DOMAIN,
PORT, and
JWT are replaced by actual values.
Please note the syntax of the url, namely the ":" between
DOMAIN and
PORT. Could that be stumbling on some server side validation on your end?
Could you please suggest a clarification and/or solution to my problem?
Than you for your time.