Skip to content

Instantly share code, notes, and snippets.

@Udhay1316
Created January 30, 2020 01:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Udhay1316/f831e485877ad256a37405e159d5b29c to your computer and use it in GitHub Desktop.
Save Udhay1316/f831e485877ad256a37405e159d5b29c to your computer and use it in GitHub Desktop.
Cucumber-slack-notifier Plug in - Received HTTP Status code [400] while posting to slack
java.lang.RuntimeException: Received HTTP Status code [400] while posting to slack
at org.jenkinsci.plugins.slacknotifier.SlackClient.postToSlack(SlackClient.java:62)
at org.jenkinsci.plugins.slacknotifier.SlackClient.postToSlack(SlackClient.java:54)
at org.jenkinsci.plugins.slacknotifier.SlackClient.postToSlack(SlackClient.java:41)
at org.jenkinsci.plugins.slacknotifier.CucumberSlackService.sendCucumberReportToSlack(CucumberSlackService.java:33)
at org.jenkinsci.plugins.slacknotifier.CucumberSlackPostBuildNotifier.perform(CucumberSlackPostBuildNotifier.java:67)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1878)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:428)
Build step 'Send Cucumber Report to Slack' marked build as failure
Received HTTP Status code [400] while posting to slack
@Udhay1316
Copy link
Author

Udhay1316 commented Jan 30, 2020

@garethjevans I am trying to send/publish cucumber report using Cucumber-slack-notifier plugin but I got 400 bad request. Could you please help me here

@AbhishekpalsinghKlearExpress

I am facing the same issue. Any solution?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment