-
Notifications
You must be signed in to change notification settings - Fork 240
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
Enhancing debug information for HttpDataSource transfers #4280
Comments
Thanks for your contribution 🔥 We will take a look asap 🚀 |
Stacktraces and message payloads for requests against internal systems should not be forwarded for security reasons. This can be handled by logging the request failure at the backend and correlating it. |
@jimmarino Is it not possible to record the request failure in the EDC without forwarding the response to the caller? If we can achieve this, it would enhance troubleshooting, especially in scenarios where access to the backend system logs is unavailable. For example, could the message |
No, we explicitly do not want to do that due to concerns about logging potentially private data. |
Hey @jimmarino - fully understood. Could we at least add a log statement that tells us if the request to the backend was (un-)successful and with which status code? I know that the partner receives this information, but it helps us to trace the error down ourselves and have a complete log trace. Neither do we as the EDC Ops team or our users always have access to the logs of the backend API, nor does our partner always provide us with the full response. Knowing if it was e.g. a 404 or 403 already would help, even without getting the complete error message. |
That should already be done so it should allow you to track it down. If not logging the code is fine
…On Wed, 19 Jun 2024 at 2:16 PM, Felix Gerbig ***@***.***> wrote:
Hey @jimmarino <https://github.com/jimmarino> - fully understood. Could
we at least add a log statement that tells us if the request to the backend
was (un-)successful and with which status code? I know that the partner
receives this information, but it helps us to trace the error down
ourselves and have a complete log trace. Neither do we as the EDC Ops team
or our users always have access to the logs of the backend API, nor does
our partner always provide us with the full response.
Knowing if it was e.g. a 404 or 403 already would help, even without
getting the complete error message.
—
Reply to this email directly, view it on GitHub
<#4280 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC4H4IJMSLWXXYPJ5V53C3ZIFZCPAVCNFSM6AAAAABJP5PCOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGU2TGNRUGE>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
I'm not sure if that works as intended - in our scenario neither there's a log message of any type, nor a proper response message to the partner EDC We're working on reproducing the issue and will open a separate issue if we can reproduce. |
Ok
…On Wed, 19 Jun 2024 at 2:59 PM, Felix Gerbig ***@***.***> wrote:
I'm not sure if that works as intended - in our scenario neither there's a
log message of any type, nor a proper response message to the partner EDC
We're working on reproducing the issue and will open a separate issue if we
can reproduce.
—
Reply to this email directly, view it on GitHub
<#4280 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAC4H4OVMB77W3GMZUDFBXLZIF6CXAVCNFSM6AAAAABJP5PCOCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZYGY3DEOBYHA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
the error detail with the status code should be stored in the if (NOT_AUTHORIZED == response.code() || FORBIDDEN == response.code()) {
return StreamResult.notAuthorized();
} else if (NOT_FOUND == response.code()) {
return StreamResult.notFound();
} else { I see different solutions:
I'd say that the second one is my favurite: passing the |
I agree the second option is better. We just need to be careful we do not log the message body or propagate it back to the client. |
Good 😊 |
Feature Request
Currently, when the
openPartStream
method onHttpDataSource
is called, if the transfer fails the reason for this failure is not logged. Providing information about why a transfer fails or when it succeeds would improve the maintenance of the connector.Which Areas Would Be Affected?
transfer
Why Is the Feature Desired?
When multiple users are using the same connector, there is sometimes a necessity to reply to support tickets. If there is no logging of the reasons for transfer failures, it becomes difficult to provide effective support services.
Solution Proposal
The text was updated successfully, but these errors were encountered: