Error Code: 202 with Slack Activity: Reply

Hi,

I am using the UiPath.Slack.Activities.Messages.Reply activity, as shown in the screenshot. The goal is to send an image as a reply to a slack message. The issue is that when I add an image path, I receive the error attached. We should have all scopes of the slack app. Any ideas what the cause may be?
As additional info:

  • if only text is supplied, it works as expected.
  • if the UiPath.Slack.Activities.Messages.SendMessage activity is used, it correctly sends the image to the slack channel (not a reply ofc)
    image

Thanks in advance

1.check Slack API Limitation.

  1. Check File Accessibility.

  2. Scopes and Permissions.

  3. API/Activity Method.

@Leonel_Bonnici

  1. Did you try giving the path as string and check if it works
  2. also 202 means the request should have been accepted did you check if received a reply?

cheers

Hi,

The path is already passed as a string, there is no alternative.
There is no reply I am receiving, just the error provided.

As for the image itself, it is accessible as it works with the ‘Send Message’ activity. There is no slack API limitation. Are there any additional permissions that are required to execute this?

Thanks

I am facing the same issue, do we have any resolution for this. The same thing is working for older versions of Slack package while it is not working for the versions published this year. The Slack is removing support for files.upload API and I think the API calls implemented in the new version is not working as expected.

I can confirm the files.upload api no longer works as that was the initial workaround, but as of today the method is deprecated. Any other solutions?

I am trying to find the solution for same.

As an update, managed to rebuild this functionality based on Slack’s documentation: Working with files | Slack Developer Docs

Steps (3 API Calls):

  1. Create Upload URL and File ID of the file you need to upload
  2. Upload the actual file and link it to the Upload URL generated
  3. Complete the upload and send the slack message
1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.