What refresh page?
Under what circumstances are you running the script? Is this on boot or something?
If it is on boot and you rerun the script later does it work? If so then you need to make the delay longer. Have a look in /var/log/syslog to see how long after boot node-red starts up.
Hello.Thanks for your immediately response.I mean that when raspberry pi boot up i wand show my dashboard since my nodered want several seconds to service,one page displayed that show:
"This site can't be reached"
(Ip address) refused to connect
-proxy and firewall
But after a few seconds, the dashboard appears .
my code is that i wrote in autostart :
As I said in my previous post you probably just need to increase delay to give node-red time to get going. If you time how long it is before it works if you keep refreshing then you will get an idea of how long you need to wait. Probably you need something like 30 seconds.