#I use flow to generate pdf report and send it through email and i get following error

11 messages · Page 1 of 1 (latest)

random needleBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

teal shard
sinful sluice
#

@teal shard Why i can't use those libraries within flow's script?

teal shard
#

I mean you can but not easily because the scripts there are run within a VM or Sandbox. (you have to both add the dependencies to Directus and specifically allow those dependencies)

sinful sluice
#

@teal shard is there any special way to allow thsese dipendencies in docker? because when i try it with node it's working but when i add scripts in docker it gives this error message.

teal shard
#

Yes there is an environment variable but thats not the hard part, adding the dependencies is. I would not recommend going down that route. creating a custom "create pdf" operation will be a lot more stable with updates.

sinful sluice
#

@teal shard i have added these models in FLOWS_EXEC_ALLOWED_MODULES also. thing is it's working on with node. when i add it to docker it's not working 😕

teal shard
sinful sluice
#

@teal shard can you provide me a tutorial or any other source for how to do that please?

teal shard
#

Also no need to ping me in every single message, it doesnt change anything (besides making all the messages annoyingly yellow)