Having issue with a local web request


#1

Hey,

So I have spent the last few nights building my own custom dashboard and I can’t wait to share it with you guys.

Unfortunately I’ve hit a roadblock sending an internal web request to my web server that runs Sonos Node API.

When I run the URL in a web browser it works just fine, but when I run it in webcore I get the answer [:] when logging the result. I’ve posted my piston below.

Any thoughts of what I am doing wrong? The command should be a PUT but also tried GET etc with no luck.


#2

Seems like the screenshots removed my url, this is what I have in there:
http://192.168.0.233:5005/living%20room/favorite/Italian%20Cooking/


#3

What do you get when you log these…

image


#4
+152ms ║408
+165ms ║[:]
+172ms ║We are logging!

#5

It’s so strange, I’ve tried everything but for some strange reason webcore gets a 408 error (timed out).


#6

Just a thought here, but I am fairly certain all http requests are executed within the SmartThings cloud, meaning there is no direct route to 192.168.0.223 since it is a private IP address.

You would need to create a port NAT and expose the port externally, then try accessing.

You can use dynamic DNS services like DuckDNS to deal with dynamically changing public IP addresses.


#7

I dunno, but I do a GET request locally all the time, and it works well…

temp

This one grabs a page directly from my router’s config page…
(although I have many other GET requests going straight to my local PC with arguments)


#8

webCoRE runs within the local network, I run my Philips HUE lights scripts directly from webcore (LAN address).


#9

Do you have the server configured to listen to requests on 0.0.0.0 (any address or hostname) or is it possible that the configuration restricts it to requests from localhost? Could also be a firewall issue. Both of those possibilities could be easily eliminated though if you can do a PUT request to the server from a different computer on the network.