Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert uploadFile to new api #16

Closed
kalisp opened this issue May 16, 2024 · 2 comments
Closed

Convert uploadFile to new api #16

kalisp opened this issue May 16, 2024 · 2 comments

Comments

@kalisp
Copy link
Member

kalisp commented May 16, 2024

image

@BigRoy
Copy link

BigRoy commented Sep 6, 2024

I believe this issue is currently affecting us already.

WARNING: Error happened: method_deprecated
Traceback (most recent call last):
  File "C:\Users\User\AppData\Local\Ynput\AYON\addons\slack_1.1.1\ayon_slack\plugins\publish\integrate_slack_api.py", line 343, in send_message
    response = self.client.files_upload(
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\slack_sdk\web\client.py", line 3603, in files_upload
    return self.api_call("files.upload", files={"file": file}, data=kwargs)
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\slack_sdk\web\base_client.py", line 157, in api_call
    return self._sync_send(api_url=api_url, req_args=req_args)
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\slack_sdk\web\base_client.py", line 188, in _sync_send
    return self._urllib_api_call(
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\slack_sdk\web\base_client.py", line 319, in _urllib_api_call
    ).validate()
  File "C:\Users\User\AppData\Local\Ynput\AYON\dependency_packages\ayon_2406251801_windows.zip\dependencies\slack_sdk\web\slack_response.py", line 199, in validate
    raise e.SlackApiError(message=msg, response=self)
slack_sdk.errors.SlackApiError: The request to the Slack API failed. (url: https://slack.com/api/files.upload)
The server responded with: {'ok': False, 'error': 'method_deprecated'}

@kalisp
Copy link
Member Author

kalisp commented Oct 1, 2024

Resolved by #21

@kalisp kalisp closed this as completed Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants