shgood-jun

Results 14 comments of shgood-jun

@RitaSghe Are you using node-red 'adminAuth' option in 'setting.js'? It seems like related to auth_token because occurring 401 error. Regarding that, the 1.1.11 version was released. Please update version '1.1.11'...

@kudlaaaty It seems that your node-red path and httpNodeRoot path are different. I mean, httpNodeRoot = '/endpoint' that is set node-red settings.js node-red path = ![image](https://user-images.githubusercontent.com/67676176/126461055-b6409508-7c05-4915-87dc-2de890c0f990.png) I think that maybe...

@kudlaaaty Hmm.. https://github.com/Samsung/SamsungAutomationStudio/blob/63906763ab0ccdf1feb2fba4626773d85918795e/101-SmartThings.html#L763-L777 Please try to change code like below (rollback '101-SmartThings.html') ```js //line 765 const root = '{your node-red path}'; ``` e.g. ```js const root = '/api/hassio_ingress/2WYIo6nZdNVGqcJBLblrmI1_B8pC9V2wVTyz8Jjj7ek/endpoint/' // or...

@kudlaaaty , @RitaSghe could you try this code? https://github.com/Samsung/SamsungAutomationStudio/blob/63906763ab0ccdf1feb2fba4626773d85918795e/101-SmartThings.html#L763-L775 change 'callMyDeviceApi' function to below code ```js function callMyDeviceApi(path){ return new Promise((resolve,reject)=>{ let root = RED.settings.httpNodeRoot||''; root = root.trim().replace(/^\/*/,''); if(/[^\/]$/.test(root)){root+='/';} $.ajax({url:root+path,type:"GET",dataType:'json'}).then(resolve,reject);...