08-29-2020 10:55 AM
Configuration:
++ A 3rd party gadget is configured on Finesse layout 'Auth.xml' [attached in below zip file]
## Finesse layout
"<gadget>/3rdpartygadget/files/testgadget/Auth.xml?nocache=1&waitPeriod=16000&loopInterval=8000&token=abc</gadget>"
++ The 'Auth.xml' file calls the 'Auth.js' [attached in below zip file]
++ The 'Auth.js' file uses the 'gadgets.io.makeRequest' to fetch a JSON file from 'https://www.alphavantage.co'
Issue
++ The 'makeRequest' step fails while trying to reach the URL to get the json file with the error response "HTTP Status 500 - javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated"
++ Collected the HAR files and attached it here
++ No certs are in play in this scenario
Question
++ Is there anything else on the UCCX system that needs to be configured or checked to make such a call outside of the customer network?
++ Test the gadget in the lab but the request fails with the 'Timeout' error message which is expected
Any pointers here would be greatly appreciated!
08-31-2020 09:57 AM
Hi,
In a custom gadget, the makeRequest are made from the client that is logged into the desktop. Make sure the client has access to that API.
The API you are using is https and the exception you are getting points to a SSL issue. So, did you exchange certs with the UCCX server? What do you mean when you say "no certs are in play in this scenario"? Another possibility is that your certs are expired.
Thanx,
Denise
08-31-2020 10:05 AM
Hi Denise,
Thanks for your quick reply.
To correct my previous statement, The cert from ‘alphavantage.co' [where the makerequest is making a call to] has not been added to the UCCX trust store.
09-02-2020 09:33 AM
Hi,
Have you tried to add the cert from alphaavantage.co to the trust store? Like I said earlier, the error seems to be SSL related so it is probably something to do with the certs.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide