#Allow deno -A flag for functions runtime.
13 messages · Page 1 of 1 (latest)
Allow deno -A flag for functions runtime.
Anyone?
Hi there! It looks like you're encountering an issue with Deno permissions.
The error you're seeing, NotCapable: Requires sys access to osRelease, indicates that your Deno function requires access to the osRelease system call, which isn't granted by the --allow-sys flag alone.
To resolve this, you need to grant the osRelease permission when running your Deno function.
You can do this by adding the --allow-sys=osRelease flag to your command.
deno run --allow-sys=osRelease src/main.ts
This should grant the necessary permission and allow your function to execute without errors
that doesn't work
I run the -A flag as said above because -allowSys then asks for other permissions
-A should allow all if I'm not mistaken
nor does --allow-all work