Slack error handler: Resource exists but you don't have access to it
When trying to send a test message for the Slack error handler, the run fails with the following error:
Any idea what could be going wrong?
17 Replies
either you do not have access to it, or the error_handler group doesn't have access to it
it's not a resource I've created manually,
f/slack_bot/bot_token
is the resource that got created after setting up Slack OAuth as per https://www.windmill.dev/docs/misc/setup_oauth#slack
the weird bit is the test message worked once
then i changed the target channel
and it seems to have just stopped workingthe resource perms are incorrect, it should give perms to the error_handler group
did you sync from git?
i do use the windmill cli for pulling and pushing, but i don't sync resources at all, so it shouldn't have been affected
I run
wmill sync pull/push --skip-variables --skip-secrets --skip-resources
I see, so likely the perms changed when you changed the channel even though it shouldn't have
add the
error_handler
group to that resource
as an adminI am unsure how to change the permissions for a resource
and for some reason I am struggling to find relevant docs
resources pages -> find resource -> share
oh, right, thanks
lemme see
so I did this: https://img.qilin-qilin.ts.net/2024-08-13_10-30-57_OJX7L.webp
and nothing seems to have changed, the error is still the same: https://img.qilin-qilin.ts.net/2024-08-13_10-32-08_q8KGo.webp
you also need to share the variable
i see
there is a linked variable at same name
yeah, that did it
i am still unsure why it worked initially then stopped working, but it seems to be working now
it's weird though, the variable being linked, the sharing should have applied as well. What version are you on ?
We will investigate and try to reproduce
EE v1.377.1-5-gd56a956b9