Jump to content

Slack Notifications Not Working - Permissions issue?


Recommended Posts

I have set up my app on my Slack account, but I noticed the instructions provided at https://docs.whmcs.com/Configuring_Notifications_with_Slack seem to be out of date from Slack's current permission system.  There are now separate permissions for the app and user levels.  I set the permissions for both the app and user to include the three it suggests at the above link, however nothing is coming through to Slack upon triggering the rule.  

I am getting the following error in the Activity Log: 

Notification sending failed for Rule ID 1 - Error: An error occurred: invalid_arguments

Unfortunately it does not tell me which argument(s) is/are invalid.  I have tried using both the App OAuth access token AND the User OAuth access token in the Notifications setup of WHMCS, but I still get the same error regardless.  

 

I have one notification set up for when a support ticket is created, and another for when the status is changed on a support ticket.  Both rules fail with the same error in the activity log. 

 

Any ideas? Thanks in advance!

Link to comment
Share on other sites

  • 3 weeks later...

I turned on the module logging and tried fiddling with the app permissions on Slack.  I can seem to get one of two responses in the module log: 

{"ok":false,"error":"invalid_arguments","deprecated_argument":"as_user"}

OR

{"ok":false,"error":"missing_scope","needed":"chat:write:bot","provided":"identify,channels:read,groups:read"}

 

What really confuses me, however, is that both the WHMCS instructions for Slack configuration AND the module log say "chat:write:bot" is a required permission, however it appears this permission no longer exists in Slack.  I can only find chat:write in the drop down list of available values.  

 

 

Link to comment
Share on other sites

  • 3 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated