Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Network Module - GET API Call - Request Failed

Featured Replies

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.

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.

Edited by MrBill

  • Author

Screenshot of the failure:

image.thumb.png.b71c3789f49eb74b5971940e0ef90e6a.png

 

Screenshot of the NR:

image.thumb.png.baed2eeaa4e0fe797a2df3432d36d67f.png

 

And the working call in Postman (Can see the Status 200 OK at the bottom):

image.thumb.png.a612e07eaa0901fda6d1ad5cec601b04.png

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!

  • Author

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.

  • Author

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.

Edited by isy_troubleshooting

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.