node-red-nodes icon indicating copy to clipboard operation
node-red-nodes copied to clipboard

node-red-node-emoncms http 302 response

Open beireken opened this issue 6 years ago • 0 comments

I have set up my local emoncms server to use https and forward all http traffic. The node-red node does not seem to like this very much. Following error is given (http 302):

{"payload":"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>302 Found</title>\n</head><body>\n<h1>Found</h1>\n<p>The document has moved <a href=\"https://xxx/input/post.json?json=%7BH/Cstatus:1%7D&amp;node=4&amp;apikey=XXX\">here</a>.</p>\n<hr>\n<address>Apache/2.4.29 (Ubuntu) Server at XXX.be Port 80</address>\n</body></html>\n","_msgid":"86eff4cf.145f58","urlsent":"http:/xxx/input/post.json?json={H/Cstatus:1}&node=4&apikey=XXX","topic":"http response","rc":302,"warning":"ERROR: API Call Failed"}

When i paste the url manually in a browser it returns 'OK', so it's the node that's not handling the redirection properly? Can i work my way around this in some way in apache without the need to adjust something on the node-red side? I have a lot of offsite devices, so adjusted these would be impossible.

beireken avatar Feb 25 '19 12:02 beireken