isy_troubleshooting Posted August 11, 2021 Share Posted August 11, 2021 Hi, I'm trying to create an API call using the Network Module to create a record within a local application. The local application uses an API key for the API. Using Postman and the header "Private-Token" works fine. However, when I try to do the same call with the same headers within the ISY all I get is the very helpful "Request Failed" message. No return codes or anything to help guide me to the actual issue. The only difference between Postman and the ISY I can find is that within Postman you can tell it to bypass SSL validation since the local application is just using a self signed cert. Can you set the network module to ignore SSL validation somewhere? Thank you. Link to comment
MrBill Posted August 11, 2021 Share Posted August 11, 2021 Do you have a sceenshot of the NR you're trying to use and the error message window when you click test? Feel free to black out private info. Link to comment
isy_troubleshooting Posted August 11, 2021 Author Share Posted August 11, 2021 Screenshot of the failure: Screenshot of the NR: And the working call in Postman (Can see the Status 200 OK at the bottom): Postman specifically has a setting to ignore SSL validation for self-signed certs so it's the only thing right now that makes sense to me is the ISY is trying to validate the cert but failing. Thank you! Link to comment
isy_troubleshooting Posted August 12, 2021 Author Share Posted August 12, 2021 I ended up spinning up my own API server to take in a simple POST then runs the actual API call which is failing in the Isy. Seems like an unnecessary fix but it's better than trying to troubleshoot in the void. Link to comment
Michel Kohanim Posted August 12, 2021 Share Posted August 12, 2021 @isy_troubleshooting, If you are certain everything is OK, then I think it's timeout related. There's no way an SSL handshake would be completed in 1/2 a second. With kind regards, Michel Link to comment
isy_troubleshooting Posted August 12, 2021 Author Share Posted August 12, 2021 Can SSL cert validation be disabled in the ISY? I don't think it's timeout related if Postman works fine. I increased the timeout to 5 seconds and it still instantly fails. Link to comment
Recommended Posts
Archived
This topic is now archived and is closed to further replies.