2017년 5월 8일 월요일

[BUG] Web component + HTTPS + Self Signed Certificate ERROR


It throws:

ERROR 1101: Unable to get a response with the supplied URL ...

After a lot of testing this issue is related to the fact my webhost and private company server use a self signed certificate and that throws an error (Error code: sec_error_unknown_issuer) when using the HTTPS protocol.

IMHO there should be a "IgnoreSslErrors" option like in the WEBVIEW component, so it can overcome this 'feature' and work has expected.


--

How to ignore SSL errors with the Web Component?


Based on the stock example I made a program that can do do GET requests with the Web component.
A call to finance.google via http://  returns the stock information.
A call to my LMS via https:// returns error 1101 "Unable to get a response with the specified URL"

Then I tried the WebViewer component (instead of the Web component).
A call to my LMS with the identical URL via https:// returned error 2501 "SSL connaction could not complete"
Then I Set WebViewer.IgnoreSslErrors to True and tried again. It worked! Now the call returns the expected XML.

Now my question: The Web Component doesn't have an IgnoreSSLErrors function.
Is there a way to ignore SSL errors with the Web component and get it to work too?

--
error 1101 normally means, there is no internet connection, you did not get any response at all from that URL

 The Web Component doesn't have an IgnoreSSLErrors function. 
exactly

Is there a way to ignore SSL errors with the Web component and get it to work too?
no, but I don't think, it is an SSL error in this case...

It would really help if you provided a screenshot of your relevant blocks, so we can see what you are trying to do, and where the problem may be.

--
Thanks for your reaction. I made a minimal program to demonstrate the problem.
Attached the code and the screen output.
With a call to http://finance.google.com all buttons deliver the requested output.
With this https:// call only Button3 delivers the requested output 



--
probably you can adjust something on the server side?

--
OK, I will try to get the server fixed. Thanks for your help

--

error 1101


I'm building an app that will send an address to a mysql DB.  I have the DB set up properly as I am able to manually send an address via a php script.  But when I send via AI2 app it gives me the following error: "Error 1101 unable to get a response with the specified url."  If the app has "No Address" as the currentAddress, it will go through to my DB.  But when I have a proper address, it encodes using %20 to the url and gives me the error.  Any thoughts?

--
I've narrowed it down somewhat.  When I manually type in the same address and send it through the  web component it will go through.  It is when I use the locationsensor.currentadddress block that it is throwing the error.  I tried saving the currentaddress in a variable and then passing that to the web component but it still is the same error.  Anyone have any experience with this problem?

--
use the Web.UriEncode block to encode your address


text UriEncode(text text)
Encodes the given text value so that it can be used in a URL.

--