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

Alerting: Deprecated error on image upload to slack II #255

Open
christianluis opened this issue Nov 16, 2024 · 0 comments
Open

Alerting: Deprecated error on image upload to slack II #255

christianluis opened this issue Nov 16, 2024 · 0 comments
Assignees

Comments

@christianluis
Copy link

christianluis commented Nov 16, 2024

What happened?

This is still present in Grafana v11.4.0-207922

grafana | logger=ngalert.notifier.slack notifierUID= t=2024-11-16T17:33:05.052293625Z level=error msg="Failed to upload image" err="failed to send request: failed to send request: method_deprecated"

What did you expect to happen?

Correct image upload to slack

Did this work before?

No response

How do we reproduce it?

  1. Grafana v11.4.0-207922
  2. Image Renderer
  3. Slack Contact Point via token

Is the bug inside a dashboard panel?

No response

Environment (with versions)?

Grafana platform?

None

Datasource(s)?

No response

@rwwiv rwwiv transferred this issue from grafana/grafana Nov 18, 2024
@moustafab moustafab self-assigned this Nov 26, 2024
@moustafab moustafab moved this to In progress in Alerting Nov 26, 2024
moustafab added a commit that referenced this issue Nov 27, 2024
The old `files.upload` API is deprecated and will be removed soon. It doesn't work for new slack workspaces created after May 2024.

The new flow requires a 3 step process:
1. Call `files.getUploadURLExternal` to get the upload URL and file ID.
2. Upload the file to the URL using a PUT request.
3. Call `files.completeUploadExternal` to complete the upload and link it to the thread.

Addresses #255, #235, and grafana/grafana#93398
moustafab added a commit that referenced this issue Nov 27, 2024
The old `files.upload` API is deprecated and will be removed soon. It doesn't work for new slack workspaces created after May 2024.

The new flow requires a 3 step process:
1. Call `files.getUploadURLExternal` to get the upload URL and file ID.
2. Upload the file to the URL using a PUT request.
3. Call `files.completeUploadExternal` to complete the upload and link it to the thread.

Addresses #255, #235, and grafana/grafana#93398
moustafab added a commit that referenced this issue Nov 29, 2024
The old `files.upload` API is deprecated and will be removed soon. It doesn't work for new slack workspaces created after May 2024.

The new flow requires a 3 step process:
1. Call `files.getUploadURLExternal` to get the upload URL and file ID.
2. Upload the file to the URL using a PUT request.
3. Call `files.completeUploadExternal` to complete the upload and link it to the thread.

Addresses #255, #235, and grafana/grafana#93398
moustafab added a commit that referenced this issue Nov 29, 2024
The old `files.upload` API is deprecated and will be removed soon. It doesn't work for new slack workspaces created after May 2024.

The new flow requires a 3 step process:
1. Call `files.getUploadURLExternal` to get the upload URL and file ID.
2. Upload the file to the URL using a PUT request.
3. Call `files.completeUploadExternal` to complete the upload and link it to the thread.

Addresses #255, #235, and grafana/grafana#93398
moustafab added a commit that referenced this issue Nov 29, 2024
The old `files.upload` API is deprecated and will be removed soon. It doesn't work for new slack workspaces created after May 2024.

The new flow requires a 3 step process:
1. Call `files.getUploadURLExternal` to get the upload URL and file ID.
2. Upload the file to the URL using a PUT request.
3. Call `files.completeUploadExternal` to complete the upload and link it to the thread.

Addresses #255, #235, and grafana/grafana#93398
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In progress
Status: 🗂️ Needs Triage / Escalation
Development

No branches or pull requests

2 participants