I'm getting the same error. The same code works fine when I test in a VS Code project, so not sure what's going on here... Did you end up solving this?
Hey @pyee@andreask Taking a look at this with the team and will update here when I can. @pyee You mentioned a public server that you were trying to hit. Mind DMing me that information so we can continue to debug. Thanks!
@andreask Thanks for the tip! I believe that @pyee also has this working with Python as well. I've submitted a report to the workflows team regarding the JS library and can update everyone here when there is any movement on the issue.
Weekly I send end-users of the application a report with some table data (.csv file) by using Retool build in e-mail in workflows.
However, some end-users now requested to receive them by using SFTP.
Unfortunately I don't know Phyton and so far I did not manage to set it up in Javascript.
Any updated (code) suggestions on how to set it up in Javascript? Or does this still error?
Thanks