-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Response body not printed for authentication errors which hinders debugging. #21
Comments
The fix gives this output for incorrect client secret, for example, which should help when troubleshooting/debugging connection issues:
|
Hii chris, did you find a solution for this problem |
@aymenwerg - yes indeed, the versions since 4430cfc all print the authentication requests and responses. I just replied to your email, if you email me your config file ( |
@aymenwerg - the specific, most useful lines of the debugging output are the lines starting with |
Debugging and error information for authentication issues should be just as verbose as during API calls. The most common error during auth is an incorrect client secret, but the current debugging output won't show those details, it just says
ERROR instance/beat.go:877 Exiting: non-200 status during auth.
and the response object, but not the response body which has the good stuff in it.Fix is to match the API call debug message and include the body.
The text was updated successfully, but these errors were encountered: