question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error "Failed to send to Slack: error=200", but notification arrives

See original GitHub issue

📣 Notification Service(s) Impacted Slack

🪲 Describe the bug When using the Apprise CLI v0.8.3 to notify a Slack channel with the method “incoming web hook”, apprise exits with exit code 1, but the notification is delivered.

When using verbose mode -vvv, the following lines shows up in the log:

2020-01-17 22:42:59,617 - WARNING - Failed to send to Slack: error=200.
2020-01-17 22:42:59,617 - DEBUG - Response Details:
ok

The Slack-URL I’m using has the following format:

slack://API-Deployer@xxx/xxx/xxx/#channelname

💻 Your System Details: Tested on two systems:

  • OS: MacOS 10.15.2 (Catalina) and Ubuntu-latest
  • Python 2.7.16 (MacOS) and 3.7 (Ubuntu)

🔮 Additional context

  • Not tested with the bot method.
  • This problem didn’t show up in version 0.7.8, the previous one I had.
  • It shows up in my logs starting end of November, might have been introduced in 0.8.2.
  • Tested also the Pushover service, this works flawlessly on both machines.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:28 (15 by maintainers)

github_iconTop GitHub Comments

2reactions
caronccommented, Dec 2, 2022

I would also add that this picture seems fitting for this issue: FB_IMG_1669036496843-1

1reaction
caronccommented, Dec 2, 2022

No worries; it’s my bad for not seeing this. I think @cstuder had found it originally and unable to even reproduce it then, i closed it off prematurely. I apologize for that sincerely. I’m glad it’s fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to resolve an ok 200 error when integrating slack ...
The message is however successfully sent to the slack channel. The error comes into play upon the subscribe method.
Read more >
Troubleshoot Slack notifications
Troubleshoot Slack notifications · An overview of notification issues · Stuck notifications or unread threads · Not receiving notifications · Delayed notifications.
Read more >
Sending messages using Incoming Webhooks - Slack API
Handling errors. Though in most cases you'll receive a "HTTP 200" response with a plain text ok indicating that your message posted successfully, ......
Read more >
files.upload method - Slack API
This method allows you to create or upload an existing file. You must provide either a file or content parameter. The content of...
Read more >
Enabling interactions with bots - Slack API
But when you build a bot for your Slack App, you're giving that app a face, ... Your bot can send DMs, it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found