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

Response: null, Response Code: 404 and Response: {"ok":false,"error":"invalid_auth"} #649

Closed
gremito opened this issue Dec 19, 2019 · 4 comments

Comments

@gremito
Copy link

gremito commented Dec 19, 2019

overview

The settings were made with reference to the README.
but, when I run "Test Connection", I get the following error:

Custom slack app bot user -> OFF

WARNING j.p.slack.StandardSlackService#publish: Slack post may have failed. Response: null
WARNING j.p.slack.StandardSlackService#publish: Response Code: 404

Custom slack app bot user -> ON

WARNING j.p.slack.StandardSlackService#publish: Slack post may have failed. Response: {"ok":false,"error":"invalid_auth"}
WARNING j.p.slack.StandardSlackService#publish: Response Code: 200

Settings
スクリーンショット 2019-12-19 14 14 15

.jenkins/jenkins.plugins.slack.SlackNotifier.xml

<?xml version='1.1' encoding='UTF-8'?>
<jenkins.plugins.slack.SlackNotifier_-DescriptorImpl plugin="[email protected]">
  <baseUrl></baseUrl>
  <teamDomain>[Workspace]</teamDomain>
  <tokenCredentialId>slack-token</tokenCredentialId>
  <botUser>false</botUser>
  <sendAsText>true</sendAsText>
  <iconEmoji></iconEmoji>
  <username></username>
  <room>#bot</room>
</jenkins.plugins.slack.SlackNotifier_-DescriptorImpl>

env

  • OS
    • macOS 10.15.1
  • Jenkins
    • 2.190.2
  • slack-plugin
    • 2.35
  • Maven
    • 3.6.3
  • Java
    • 11.0.2

Description

The situation did not change even after uninstalling and installing again.
Also, I checked the following issue and did not resolve it.

@jetersen
Copy link
Member

jetersen commented Dec 19, 2019

Did you approve the Jenkins app? https://YOURWORKSPACE.slack.com/services/new/jenkins-ci

Or have you created a custom slack app?

@gremito
Copy link
Author

gremito commented Dec 19, 2019

Thanks! Jenkins CI approved but did not create a custom Slack bot.
I finally understood the meaning of the legacy, and when I made a custom Slack bot, I succeeded in "Test Connection".

スクリーンショット 2019-12-19 15 37 35

スクリーンショット 2019-12-19 15 32 23

@gremito gremito closed this as completed Dec 19, 2019
@timja
Copy link
Member

timja commented Dec 19, 2019

Did you miss the docs in the readme or were they confusing? They were recently updated to add more info on this

@gremito
Copy link
Author

gremito commented Dec 20, 2019

I couldn't understand what the "legacy" was showing. So, I felt it would be better to explain the old version and the current setting method a little more clearly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants