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.

Getting 400 error on Slack Integrations

See original GitHub issue

I am receiving this error while trying to run the actions in one of my org’s private repo.

Error: Request failed with status code 400

Our team Fyle has sponsored the project thinking it might add value but it keeps giving a 400 bad request whenever run. Attaching a screenshot of the logs here.

Screenshot 2022-05-19 at 5 41 31 PM

Let me know if there are any permissions that need to be enabled for sending the message to slack.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
manuelmhtrcommented, Jun 7, 2022

@anshsrtv sorry for the late reply.

  1. Review time is calculated as the moment of the first review minus the most recent date between the last commit and the time the PR was published. You can check it here. The logic behind this is, somebody might publish the PR first but keep adding commits before requesting for reviews.

  2. Sounds like a good idea. I’ll make some time to launch this feature this week 😉

1reaction
manuelmhtrcommented, May 23, 2022

Thanks for the update @anshsrtv, I’ll add this to the “troubleshooting” section.


I reduced it to 15 days

As an alternative, if you need the stats for the lasts 30 or more days, you could use the limit option. This way the stats still calculated for the desired time frame but the message is limited to the first X rows to fit the Slack limitation.


Can we get the table format in slack as in the github PR description?

Unfortunately Slack blocks does not support tables yet. That’s a huge limitation to make it looks the same than Github. The only option would post them as an image, but it would loose more important capabilities like copying text, and using links.

However, Slack still improving their Blocks API, I hope anytime soon they support tables and I could migrate to that format then.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting "(400) Bad Request" return from Slack API
The messages have formatting and use some links. Recently, some messages stopped to get through, returning (400) Bad Request.
Read more >
Webhooks for slack integration is throwing 400 error #770
I got the same, slack returns. Response headers: Content-Type: text/html. Transfer-Encoding: chunked. Connection: close
Read more >
Sending messages using Incoming Webhooks - Slack API
Incoming webhooks return more expressive errors than our Web API, including more relevant HTTP status codes (like "HTTP 400 Bad Request" and "HTTP...
Read more >
Upon Slack installation, why am I seeing a 400 error ... - Nightfall
Upon Slack installation, why am I seeing a 400 error mentioning a "Restricted Action"? Understand why Channel Management Restrictions in your Slack Workspace ......
Read more >
Webhook Error: HTTP Error 400: Bad URL request
A 400 error message usually means that the request was malformed. In other words, the data stream sent by the client to the...
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