I am trying to use the node-red-contrib-ninox plug-in to download a file from my Ninox database. This just works fine for getting records but when downloading a file Node-RED completly shuts down and I have to restart it on command line.
running Node-RED v1.3.5 with Windows Server 2019
using node-red-contrib-ninox -v0.99.11
downloaded and tried the example flows of the plug-in
set up the node the right way, because I can exchange record entries
There is not much information on google or its just refering to the node documentation inside the web interface which I already read.
I really hope someone can give me a helping hand or a hint how I could achieve this another way
assuming tmpfiles should be created inside User directory : \Users\USERNAME\.node-red but nothing on the error log changes.
I think this is Windows related and the javascript should execute mkdir -p tmpfiles\test & curl --header "Authorization: Bearer Secret-Ninox-API-KEY" https://api.ninoxdb.de/v1/teams/noonecares/tables/L/records/23/files/it.pdf -o tmpfiles/test/it.pdf
I have never raised an issue to a repository ... where can I do that - sry super noob question
You guys made my day! Thank you so much steve and hardillb!
I was astonished myself that curl runs exactly the same way in Windows
In Linux you combine two commands with COMMAND1;COMMAND2 but in Windows it should be COMMAND1 & COMMAND2 . I adapted this in const cmd and adjusted the const tmpdir and fname to the Windows file system in the script