slack-plugin: A JSONObject text must begin with
Your checklist for this issue
-
Jenkins version 2.176.1
-
Plugin version 2.27
-
OS Linux
Description
This pipeline code:
slackSend(
channel: '@myownname',
color: 'good',
message: 'test',
token: 'mytoken')
does send a message but logs this error in the build console:
15:43:21 ERROR: Slack notification failed with exception: ok
15:43:21 ERROR: Slack notification failed. See Jenkins logs for details.
and this trace in Jenkins system logs:
Jul 04, 2019 3:43:21 PM WARNING jenkins.plugins.slack.StandardSlackService publish
Error posting to Slack
org.json.JSONException: A JSONObject text must begin with '{' at 1 [character 2 line 1]
at org.json.JSONTokener.syntaxError(JSONTokener.java:433)
at org.json.JSONObject.<init>(JSONObject.java:194)
at org.json.JSONObject.<init>(JSONObject.java:321)
at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:214)
at jenkins.plugins.slack.StandardSlackService.publish(StandardSlackService.java:140)
at jenkins.plugins.slack.workflow.SlackSendStep$SlackSendStepExecution.run(SlackSendStep.java:317)
at jenkins.plugins.slack.workflow.SlackSendStep$SlackSendStepExecution.run(SlackSendStep.java:255)
at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 2
- Comments: 26 (19 by maintainers)
suggestion move “Slack compatiable app URL” to advanced?
Works for me =/ https://jenkins-slack-plugin.slack.com/messages/CLA447541/