-
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
Fatal error in discover app after upgrade from 6.3.2 to 6.4.0 #22355
Comments
I have a similar problem here. After upgrading from 6.X to 6.4.0 i get the following error message:
But it only appears for metricbeat, not for heartbeat. I found out, that the request on /elasticsearch url get an 502 instead of 200. The nginx write in logfile, that the header is to big:
i fixed it by adding:
to nginx config. |
It doesn't seem to be the same error for me, as the request on /elasticsearch gets a 200 when the error appears : |
Same error over here: Courier fetch: Cannot read property 'forEach' of undefined I noticed the error goes away when I remove all "Scripted Fields" for the index pattern. |
Are there errors in your proxy? For example nginx? |
I did an upgrade from 6.3.2 to 6.4.0 and got the following similar error: Error: responses is undefined
the debugger console is a bit more verbose:
|
For us, the error appears randomly but very often. |
@cjcenizal I'm wondering if this is a side effect of the courier refactor, any chance you could take a look? |
@dav3860 @carolineLe Could you look under the network tab in your browser's dev tools and tell me what the response is from the call to If the response is too large to easily share or if you want to keep your data confidential then you can just share the first part of the response with me. It should look something like this:
|
@dav3860 @carolineLe Could you also share the request payload with me? That would help a lot. I'm able to reproduce the error you've found, but I'm having trouble identifying the root cause. So far the information I have points to the problem lying within the response we get back from Elasticsearch, but more details on the particular requests you're making will help me. |
Here is the request that is sent: And the response associated:
I had the bug with another index pattern and noticed the following warning: "Doc-value field [@timestamp] is not using a format.". Setting the format for the timestamps fields in this index "fixed" the problem, but it did not change anything for the one I'm having trouble with right now. |
@carolineLe Thank you for this info! For the response you shared, could you provide the entire shape of the object? For example, the response example I gave had a |
Sorry, the formatting removed the first line, I edited my answer. |
@dav3860 When you say "randomly but very often" can you confirm for me that you mean that you're using the same query, which sometimes yields the error and sometimes doesn't? E.g. you have Discover open with "Absolute" time range selected (to ensure the time doesn't change), and you hit refresh 10 times in your browser, and out of those 10 times 2 or 3 will fail? |
@carolineLe I'm able to reproduce the original error, but your error |
In terms of the original error, Note that this just fixes the regression, which is an exacerbated symptom of an underlying error. The underlying error |
Right before this error, I get another weird error. The "XML" appears malformed but there is no XML involved, the response is in JSON.
Thank you for investigating this ! |
@cjcenizal OK, I did change the response from the server and added the "Content-type: application/json" and it fixed my problem. |
Hi @carolineLe thank you for the information. That sounds like an appropriate issue for the elasticsearch-js repo. In terms of hunting down the origin of that error within our source, I'm still wondering if you can help me do that? Could you refer to the animation below and click on the second link in the |
6.4.1 parity with 6.3.0I've done some investigation to identify whether 6.4.1 is on par with 6.3.0 in terms of how errors within CallClient are surfaced. Long-story short, I believe 6.4.1 is on par with 6.3.0, if not slightly above par. Here are my findings. 6.3.0Throwing an error in
|
Here is where the exception occurs, at the "responses.forEach":
|
Thank you @carolineLe! This is very helpful. |
Looks like the two error messages we've been seeing ( |
@cjcenizal Maybe this is due to the JSON wrongly parsed as XML/HTML because the mimetype header is missing, what do you think ? I don't know if the missing mimetype is specific to my installation. |
see #22355 (comment) |
@carolineLe Do you happen to have a proxy in front of Elasticsearch, similar to what @florian-asche has set up? This will be the proxy located at the I've created an issue to address this problem (elastic/elasticsearch-js#701). We currently suggest users configure their Thank you everyone for your help with this issue. I'm going to close it since it's not a problem we can solve on the Kibana side. Feel free to continue leaving questions here if you have any. |
**Kibana version:6.0.0
**Elasticsearch version:6.4.0
**Server OS version:centos7
**Browser version:Chrome 63
**Browser OS version:Windows 10
**Original install method (e.g. download page, yum, from source, etc.):yum
**Describe the bug:Fatal error in discover app after upgrade from 6.3.2 to 6.4.0
Steps to reproduce:
1.open the discover app
2.a fatal error is printed : "Courier fetch: Cannot read property 'forEach' of undefined"
3.
Expected behavior:
Screenshots (if relevant):
Errors in browser console (if relevant):
TypeError: Cannot read property 'forEach' of undefined
at https://kibana/bundles/commons.bundle.js:3:1085607
at Array.forEach ()
at _callee$ (https://kibana/bundles/commons.bundle.js:3:1085555)
at tryCatch (https://kibana/bundles/vendors.bundle.js:36:138904)
at Generator.invoke [as _invoke] (https://kibana/bundles/vendors.bundle.js:36:142786)
at Generator.prototype.(anonymous function) [as next] (https://kibana/bundles/vendors.bundle.js:36:140027)
at step (https://kibana/bundles/commons.bundle.js:3:1081249)
at https://kibana/bundles/commons.bundle.js:3:1081375
at
The error appears in this line :
segregatedResponses.forEach(function(responses, strategyIndex) {
Provide logs and/or server output (if relevant):
Any additional context:
The text was updated successfully, but these errors were encountered: