curl -H "Content-Type: application/json" -d '[{"type":"tab","id":"728beed8.8d741","label":"Sheet 1"},{"id":"243995bb.dbc66a","type":"debug","name":"","active":true,"console":"true","complete":"false","x":570,"y":272,"z":"728beed8.8d741","wires":[]},{"id":"a889206e.5776e","type":"http in","name":"","url":"/test","method":"post","x":177,"y":267,"z":"728beed8.8d741","wires":[["243995bb.dbc66a","c3393bc1.3cc6c8"]]},{"id":"c3393bc1.3cc6c8","type":"http response","name":"","x":546,"y":359,"z":"728beed8.8d741","wires":[]}]' http://localhost:1880/flows
I get an error back...
Cannot POST /flows
If I turn headless mode off, this curl command works fine, as does the flow.
If I turn headless mode on, and include the flow in the startup flows file, that also works fine.
Is this the intended functionality of headless mode, or am I doing something wrong here?
We are looking for ways to separate the editor workflows from the production environment. Editing flows in a headed deployment, and then injecting those flows into a headless production environment is where we want to get to.
Steve
--
http://nodered.org
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.