Closed matt-w-davis closed 10 months ago
Hi @matt-w-davis, thanks for writing in.
I've confirmed the API client's behavior to be certain, but if the specified channel does not exist, the filesUploadV2 method threw an exception with ample information for me. Could you reassess if the channel ID is causing your unexpected situation? Also, if the channel is still active, your file uploading operation may have been successful, which could explain why you didn't encounter any errors in this scenario.
I hope you'll figure the cause out soon!
👋 It looks like this issue has been open for 30 days with no activity. We'll mark this as stale for now, and wait 10 days for an update or for further comment before closing this issue out. If you think this issue needs to be prioritized, please comment to get the thread going again! Maintainers also review issues marked as stale on a regular basis and comment or adjust status if the issue needs to be reprioritized.
As this issue has been inactive for more than one month, we will be closing it. Thank you to all the participants! If you would like to raise a related issue, please create a new issue which includes your specific details and references this issue number.
Hi,
I have the same issue:
[WARN ] 2023-11-30 15:47:37.150 [Worker-1] SlackAlertor - Catching
com.slack.api.methods.SlackFilesUploadV2Exception: null
at com.slack.api.methods.impl.FilesUploadV2Helper.<init>(FilesUploadV2Helper.java:30)
Dependencies:
<dependency>
<groupId>com.slack.api</groupId>
<artifactId>slack-api-client</artifactId>
<version>1.36.1</version>
</dependency>
<dependency>
<groupId>com.squareup.okhttp3</groupId>
<artifactId>okhttp</artifactId>
<version>4.12.0</version>
</dependency>
It's the same issue as: https://github.com/slackapi/python-slack-sdk/issues/1326 You have to use channel id instead of name, but this is not clear from the error message!
When using the FilesUploadV2Request, encountering an error does not return the cause or any actionable information in the response or exception.
Reproducible in:
The Slack SDK version
Java Runtime version
openjdk version "17.0.6" 2023-01-17 LTS OpenJDK Runtime Environment Corretto-17.0.6.10.1 (build 17.0.6+10-LTS) OpenJDK 64-Bit Server VM Corretto-17.0.6.10.1 (build 17.0.6+10-LTS, mixed mode, sharing)
OS info
Amazon Linux 2
Steps to reproduce:
In the case of this error, the variable thisChannel was a channel that had been deleted.
Expected result:
Some actionable response or exception stating 'Channel ### not found' or similar
Actual result: