<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
<channel>
<title>Efficy Overflow Q&amp;A - Recent questions tagged openurlsecure</title>
<link>https://overflow.efficy.io/?qa=tag/openurlsecure</link>
<description>Powered by Question2Answer</description>
<item>
<title>Encoding issue using OpenUrlSecure</title>
<link>https://overflow.efficy.io/?qa=6721/encoding-issue-using-openurlsecure</link>
<description>&lt;p&gt;Hello Everyone,&lt;/p&gt;

&lt;p&gt;I'm using an OpenUrlSecure to send a json content to an external application.&lt;br&gt;
When the body of my request contain some accented character like é, è, à  it make some bad character in the external application.&lt;/p&gt;

&lt;p&gt;I think about an encoding problem&lt;br&gt;
I've test the request with charset=UTF-8 in the headers, but the result is the same&lt;/p&gt;

&lt;p&gt;I've try to call directly my external application with postman, using the same body, the same header, and there the result is OK, so the issue is not in the external application.&lt;/p&gt;

&lt;p&gt;I'm in an 11.2, so i can't use the new OpenUrlSecureUtf8 fonction.&lt;/p&gt;

&lt;p&gt;Have you any idea ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6721/encoding-issue-using-openurlsecure</guid>
<pubDate>Thu, 13 Oct 2022 10:35:25 +0000</pubDate>
</item>
<item>
<title>OpenURLSecure: HttpSendRequest failed for &quot;&quot; Error Code: 12029</title>
<link>https://overflow.efficy.io/?qa=6681/openurlsecure-httpsendrequest-failed-for-error-code-12029</link>
<description>&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;On an onpromise server, i installed the business-data-providers.&lt;/p&gt;

&lt;p&gt;I have the following error : &lt;br&gt;
HttpSendRequest failed for &quot;connect.creditsafe.com&quot; Error Code: 12029.&lt;/p&gt;

&lt;p&gt;the url have been whitelisted and tls 1.2 is set.&lt;br&gt;
I tested via postman and Invoke-WebRequest, and it works.&lt;/p&gt;

&lt;p&gt;However in efficyserver.log, there seems to be a timeout: &lt;/p&gt;

&lt;p&gt;&lt;img src=&quot;https://overflow.efficy.io/?qa=blob&amp;amp;qa_blobid=6335695586230839413&quot; alt=&quot;enter image description here&quot;&gt;&lt;/p&gt;

&lt;p&gt;any hints, where to look for a solution?.&lt;/p&gt;
</description>
<category>Efficy Installation/Settings</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6681/openurlsecure-httpsendrequest-failed-for-error-code-12029</guid>
<pubDate>Wed, 14 Sep 2022 15:58:33 +0000</pubDate>
</item>
<item>
<title>Error 12044 in openUrl2/secure/secureUtf8 when Postman call is processed correctly</title>
<link>https://overflow.efficy.io/?qa=6638/error-openurl2-secure-secureutf8-postman-processed-correctly</link>
<description>&lt;p&gt;Dear all,&lt;/p&gt;

&lt;p&gt;For a customer we are developing a link with Canopy Deploy. In Postman / PowerShell (Invoke-Webrequest) the request is processed correctly. &lt;/p&gt;

&lt;p&gt;When trying it in the application with the same headers / data at the same machine the Efficy.openUrlSecure / Utf8 is receiving a 12044 A certificate is required to complete client authentication error. In openUrl2 the same: Message: &quot;Cannot find web server &quot;webhook.myclang.com&quot;&lt;br&gt;
Error Code: 12044&lt;/p&gt;

&lt;p&gt;What could be wrong?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;/p&gt;

&lt;p&gt;Rob&lt;/p&gt;
</description>
<category>Utilities</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6638/error-openurl2-secure-secureutf8-postman-processed-correctly</guid>
<pubDate>Tue, 19 Jul 2022 12:25:45 +0000</pubDate>
</item>
<item>
<title>How to convert windows 1252 to UTF-8 ?</title>
<link>https://overflow.efficy.io/?qa=6592/how-to-convert-windows-1252-to-utf-8</link>
<description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I'm running into an issue regarding char encoding.&lt;/p&gt;

&lt;p&gt;I'm making a Efficy.openUrlSecure(...) POST call to send JSON data to another system.&lt;br&gt;
Data is from a Contact (name, firstname, email, ....) and my call is made in a afterCommit workflow. So all data is taken from database.&lt;/p&gt;

&lt;p&gt;If I use a special char like &quot;é&quot; in sent data, the API send me an error :&lt;br&gt;
&lt;em&gt;Error 400. Response : Invalid UTF-8 middle byte 0x22 at...&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Code used :&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var toSend = JSON.stringify(data);
var headers = [&quot;Content-Type: application/json;charset=utf-8&quot;, &quot;Content-Length: &quot; + toSend.length, &quot;Host: xxx&quot;];

var response = Efficy.openUrlSecure(url, toSend, headers.join(&quot;\n&quot;), &quot;POST&quot;);
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;After investigation, this error is caused by an invalid/illegal encoding (windows 1252 instead of UTF-8 which is standard for JSON).&lt;/p&gt;

&lt;p&gt;When I check in detail what is sent, the request payload is in windows-1252.&lt;/p&gt;

&lt;p&gt;Which brings it to my question : How can I convert my data in windows-1252 to UTF-8 without losing accentuated char ?&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=6592/how-to-convert-windows-1252-to-utf-8</guid>
<pubDate>Fri, 10 Jun 2022 09:44:52 +0000</pubDate>
</item>
<item>
<title>OpenUrlSecure timeout</title>
<link>https://overflow.efficy.io/?qa=5453/openurlsecure-timeout</link>
<description>&lt;p&gt;Hi,&lt;br&gt;
I use the openUrlSecure and like in edn, I try to add a timeOut integer but the response is always the same, the error below:&lt;br&gt;
Message: &quot;&quot;TCoreSessionScriptAPI.OpenURLSecure&quot; called with incorrect number of arguments (8)&quot;&lt;br&gt;
the efficy version is 11.3.21086.0 2020-05-04&lt;br&gt;
If i remove the last param (timeout) is working.&lt;br&gt;
But for this client i need a timeout in case of the service is down to display a message.&lt;br&gt;
ex: var response = Efficy.openUrlSecure(url, soap envelope, header, '', '', '', '', 5000)&lt;/p&gt;

&lt;p&gt;regards&lt;/p&gt;
</description>
<category>Efficy Partners</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=5453/openurlsecure-timeout</guid>
<pubDate>Tue, 26 May 2020 08:39:03 +0000</pubDate>
</item>
<item>
<title>OpenUrlSecure response isn't in UTF-8</title>
<link>https://overflow.efficy.io/?qa=3888/openurlsecure-response-isnt-in-utf-8</link>
<description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I'm working on a Rest API and run into a problem that my response from OpenUrlSecure isn't in UTF-8. So this means that accented letters aren't correctly displayed.&lt;br&gt;
The request that I do is:&lt;/p&gt;

&lt;pre&gt;&lt;code&gt;var wr = new WebRequest({
        url: this.options.datacollectiefUrl, 
        headers: &quot;Content-Type: application/json; charset=utf-8&quot;,
        complete: function(resp, req) {
            return resp;
        }
    });

    var send = function(method, path, data) {           
        return wr.send(data, path, method);
    }

    return send(&quot;GET&quot;, this.options.apiCommandsUrl.contSearch, format(&quot;?user=$0&amp;amp;password=$1&amp;amp;applicationName=$2&amp;amp;id=$3&quot;, this.options.licensename, this.options.licensepassword, this.options.appName, companyId));
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Is there something that I can change on this request to make it return the response in UTF-8?&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br&gt;
Jeroen&lt;/p&gt;
</description>
<category>WorkFlow / Serverscript</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3888/openurlsecure-response-isnt-in-utf-8</guid>
<pubDate>Fri, 25 Jan 2019 16:15:08 +0000</pubDate>
</item>
<item>
<title>OpenUrlSecure How can I get the response body when not success</title>
<link>https://overflow.efficy.io/?qa=3731/openurlsecure-how-can-get-the-response-body-when-not-success</link>
<description>&lt;p&gt;Hi, &lt;/p&gt;

&lt;p&gt;apparently, the response.body of a openUrlSecure call is empty when the success != true.&lt;br&gt;
is that a feature or an anomaly?&lt;/p&gt;

&lt;p&gt;It seems that the body is well filled when success = true;&lt;/p&gt;

&lt;p&gt;point is the api i am requesting send me an error message in the body (checked it with postman)&lt;/p&gt;

&lt;p&gt;Do I have a way to workaround this?&lt;/p&gt;
</description>
<category>Efficy/ Client side</category>
<guid isPermaLink="true">https://overflow.efficy.io/?qa=3731/openurlsecure-how-can-get-the-response-body-when-not-success</guid>
<pubDate>Tue, 11 Dec 2018 10:59:58 +0000</pubDate>
</item>
</channel>
</rss>