Solved, had to chown the folder and not start the application as root. I'll go ahead and accept your answer and add a comment, if you feel like upvoting my question I have no idea why I was downvoted....
You are incredibly helpful. I think this may be something with my sails stack... as I did not get errors running a test.js file... but yes, it works fine on ubuntu, and windows setups I have.
so, I am pretty sure this is something sails related, although I have no idea why it works fine on other OS/machines with the same versions/code. I tried removing all my non working code and then adding the working code you sent and it still errors in sails.
That code runs without error, although if I add a console log as so out => { console.log(out); return Promise.resolve(out); } it is undefined. And there is a package.json in same directory.
This is true, unfortunately it was my simplified sample code, not my actual code, up-voted your answer and edited my question to include this missing closing brace.
I could probably make something in node and just load the content of that site into my destination site, I think I may end up doing that, CMS systems seem like a hassle.
Hey, I'm looking to allow a couple static websites (not data driven) I am building to allow users to upload photos/text to a few areas. Looking into CMS a bit, but I don't want to build my site in a CMS system or give them full control, I want more of like a iframe or something that they have access to. Any ideas?
fascinating, great info, I think I'm getting to the bottom of it, strangely moving my necessary static fields (master record identifiers) to the top, seem to be making all the fields submit correctly. But I'll take all this advice into consideration for improvement. Also I'll console.log(dogshit) to try to avoid that happening in the case of error :' )
Is it just generally bad design that I am submitting potentially thousands of inputs? Basically tons of users and a checkbox for each with a hidden input (for activating deactivating). I have a Datatables sortable list you can check or uncheck as many as you want and submit. In some cases there are a thousand or two users in said list.
Is there a max number of inputs fields in a request? I have a dynamically generated form and it was working fine with a dozens of entries, but now when it creates a thousand or so, one of the req params turns undefined.
sidesho, I was having a weird issue where a node.js post that takes quite some time parsing tens of thousands of CSV lines, performing calcs, and saving to Mongo, the browser seemed to be resubmitting the request after it completed. I have possibly resolved it however, I was just wondering if you had any time limit for a request to complete.
Probably a lodash question, but perhaps native would be good. I want to split an array into an unknown number of arrays based on if they have a matching parameter. For example {datapoint: "blah", date: "1/10/2000"}, now I don't know what/which dates will be in the set, but I want to make a new array for each unique date, and in that array put each object that has that date. Any good shortcuts/efficient ways?
Okay this question might be obvious, but is there a check for a valid string, and specifically for saving to MongoDB. Perhaps the answer is any string. I'm parsing a xls and want to be sure anything imputed can then be saved as a string.