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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stack traces are not informative when using HttpConnection #2235

Open
JoshMock opened this issue Apr 23, 2024 · 0 comments
Open

Stack traces are not informative when using HttpConnection #2235

JoshMock opened this issue Apr 23, 2024 · 0 comments

Comments

@JoshMock
Copy link
Member

馃悰 Bug Report

When the client is configured to use HttpConnection instead of the default UndiciConnection class, error stack traces are often too brief:

ConnectionError: socket hang up - Local: 127.0.0.1:61564, Remote: 127.0.0.1:9200
    at KibanaTransport.request (/Users/afharo/Developer/elastic/kibana/node_modules/@elastic/transport/src/Transport.ts:585:17)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Likely due to http swallowing the stack during async operations.

See elastic/kibana#60237

Expected behavior

A full stack trace back to the original API call that triggered the error.

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

No branches or pull requests

1 participant