-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Kibana crash: TypeError: request.abort is not a function #59712
Comments
Hm, I haven't been able to reproduce this in the last couple of days. It was possibly related to 403 errors between apm-server and ES. |
Sorry, this does look like there's a problem because I am still seeing this. I earlier switched to Reporting from Canvas, and wasn't getting this crash. But switching back to Dashboard reporting is giving me the crash. |
I've added logging before the code change:
the result:
|
|
@restrry Node.js agent patches the elasticsearch client request and returns a different promise than the one elasticsearch request returns which seems to be the source of the problem AFAIK. More details - elastic/apm-agent-nodejs#1565 Issue seems to be a duplicate of #52617 |
@vigneshshanmugam thanks for the clarification! Any plans to fix it soon? I'm not sure that we want to merge the workaround from #59967, as it changes ES data fetching flow. Thus it's hard to predict what consequences we might face later. |
@restrry Totally understand, I am not sure about the timeline when we will fix it, but I can have a look at it tomorrow and provide more details here. |
@vigneshshanmugam do you think it's possible we could get a fix before 7.7? |
@tsullivan I am not so sure on the timeframe of the issue as there is a open PR in the Node.js agent to address this elastic/apm-agent-nodejs#1566 |
Thanks for the follow-up @vigneshshanmugam ! I noticed there are no version labels on the PR in the apm-agent repo. Do you know what version of Kibana will have that fix? |
Kibana version: 8.0.0/master
Original install method (e.g. download page, yum, from source, etc.): source
Describe the bug: After enabling APM integration for Kibana, the Kibana server crashes if there is a logged error.
Steps to reproduce:
Refused to execute inline script because it violates the following Content Security Policy directive:
Expected behavior:
Screenshots (if relevant):
Errors in browser console (if relevant):
Provide logs and/or server output (if relevant):
These logs are from running Kibana with
node scripts/kibana
but running withyarn start
reproduces the crash as well.Any additional context:
It appears the line of code trigging the TypeError is https://github.com/elastic/kibana/blob/56041f0/src/core/server/elasticsearch/cluster_client.ts#L67
The text was updated successfully, but these errors were encountered: