-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Print actual error when trying to access registry #1200
base: master
Are you sure you want to change the base?
Conversation
This patch does not solve the issue described in confluentinc#733, but at least prints the actual error in the stack trace. JsonDeserializer will print the source string when it's not an InputStream.
It looks like @herbae hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement here. Once you've signed reply with Appreciation of efforts, clabot |
[clabot:check]
Em ter, 10 de set de 2019 12:26, Confluent CLA Bot <[email protected]>
escreveu:
… It looks like @herbae <https://github.com/herbae> hasn't signed our *C*ontributor
*L*icense *A*greement, yet.
The purpose of a CLA is to ensure that the guardian of a project's outputs
has the necessary ownership or grants of rights over all contributions to
allow them to distribute under the chosen licence.
Wikipedia <http://en.wikipedia.org/wiki/Contributor_License_Agreement>
You can read and sign our full Contributor License Agreement here
<http://clabot.confluent.io/cla>.
Once you've signed reply with [clabot:check] to prove it.
Appreciation of efforts,
clabot
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1200?email_source=notifications&email_token=ABQCB2A5KBYWVNY2LEU7JRDQI64BHA5CNFSM4IVJGLI2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD6LP5MI#issuecomment-529989297>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABQCB2BMIS76C4KR5CDMB3TQI64BHANCNFSM4IVJGLIQ>
.
|
@confluentinc It looks like @herbae just signed our Contributor License Agreement. 👍 Always at your service, clabot |
Is the error returned to the client, or output to the server logs? Is there any way to get it without a Scanner? |
Is anything going to happen with this MR? I just wasted days trying to diagnose a schema registry error which turned out to be a 504 gateway timeout. I'm not sure I agree with the implementation here by the way. I think the logic should be that if you get any 4xx/5xx response, you don't try to parse it as JSON. Just print the error code and raw message body. |
The logic here seems to be processing the whole InputStream to a string via a Scanner, before actually rendering the log, but yes, using not ObjectMapper for that case, or using a Scanner instead of |
|
I spent three whole days trying to figure out what was wrong with my configs in a controlled environment. The problem was a simple \n character in my schema registry credentials. It would have helped a lot if I could see the HTML response from schema registry server, instead of a JSON deserializing exception.
This patch does not solve the issue described in #733, but at least prints the actual error in the stack trace. JsonDeserializer will print the source string when it's not an InputStream.