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

Feature request: More logging in case of connection failures. #325

Closed
andrewspiers opened this issue Jun 16, 2017 · 4 comments
Closed

Feature request: More logging in case of connection failures. #325

andrewspiers opened this issue Jun 16, 2017 · 4 comments

Comments

@andrewspiers
Copy link

I am trying to use version 2.2 of the Slack Plugin, with Jenkins 2.46.3.

The connection test fails. In the Jenkins logs, I can see that slack is returning a 404, and the whole response is also sent.

I cannot see exactly which URL the plugin is calling.
I cannot see the request headers that are sent.

Would it be possible to log these in the case of a connection error?

@prachikhadke
Copy link

prachikhadke commented Jun 19, 2017

I am also hitting this issue. Might be similar to #323 except I don't get No hooks in the response. Instead I get Slack's standard 404 page (i.e. https://slack.com/404).

Jun 19, 2017 6:23:13 AM jenkins.plugins.slack.StandardSlackService publish
WARNING: Response Code: 404
Jun 19, 2017 6:25:27 AM jenkins.plugins.slack.StandardSlackService publish
WARNING: Slack post may have failed. Response:  

where the response is the 404 html page contents.

[EDIT]: I fixed the 404 by updating the Base Server URL: I needed to specify the Jenkins home page. See https://github.com/jenkinsci/slack-plugin/blob/master/README.md. But now that's giving me 504. Need to figure out why.

@jstoja
Copy link

jstoja commented Jul 13, 2017

Here I get a 302, no idea what's wrong...

@andrewspiers
Copy link
Author

I meant to add, this plugin can actually log what it sends. I couldn't see these log messages in jenkins' logs of standard out. I did manage to get the logs viewable by configuring logging specifically for this plugin, from within Jenkins.

@timja
Copy link
Member

timja commented Aug 10, 2019

Logging has been improved

@timja timja closed this as completed Aug 10, 2019
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

4 participants