Kibana Error: Cannot throw non-error object

The same issue. Installed Elastic and KIbana 7.5.1 Ubuntu 16.04

Often receive error messag in dev tools:

{
"statusCode": 500,
"error": "Internal Server Error",
"message": "An internal server error occurred"
}

It can be different queries. Don't have any errors in elastic log. But have an error message in kibana log:

kibana[25918]: Debug: internal, implementation, error

kibana[25918]:     Error: Cannot throw non-error object

kibana[25918]:     at module.exports.internals.Manager.execute (/usr/share/kibana/node_modules/hapi/lib/toolkit.js:42:33)

kibana[25918]:     at process._tickCallback (internal/process/next_tick.js:68:7)

kibana[25918]: {"type":"error","@timestamp":"2020-02-24T16:48:04Z","tags":[],"pid":25918,"level":"error","error":{"message":"Cannot throw non-error object","name":"Error","stack":"Error: Cannot throw non-error object\n    at module.exports.internals.Manager.execute (/usr/share/kibana/node_modules/hapi/lib/toolkit.js:42:33)\n    at process._tickCallback (internal/process/next_tick.js:68:7)"},"url":{"protocol":null,"slashes":null,"auth":null,"host":null,"port":null,"hostname":null,"hash":null,"search":"?path=INDEX_NAME%2F_count&method=GET","query":{"path":"INDEX-NAME/_count","method":"GET"},"pathname":"/api/console/proxy","path":"/api/console/proxy?path=INDEX-NAME%2F_count&method=GET","href":"/api/console/proxy?path=INDEX-NAME%2F_count&method=GET"},"message":"Cannot throw non-error object"}

kibana[25918]: {"type":"response","@timestamp":"2020-02-24T16:48:04Z","tags":["access:console"],"pid":25918,"method":"post","statusCode":500,"req":{"url":"/api/console/proxy?path=INDEX-NAME%2F_count&method=GET","method":"post","headers":{"x-forwarded-for":"MY_IP","x-forwarded-proto":"https","x-forwarded-port":"443","host":"KIBANA_HOST","x-amzn-trace-id":"Root=1-5e53fe44-7c5jhfjfjfjhfbef88","content-length":"0","accept":"text/plain, */*; q=0.01","dnt":"1","kbn-version":"7.5.1","user-agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.130 Safari/537.36","origin":"https://KIBANA_HOST","sec-fetch-site":"same-origin","sec-fetch-mode":"cors","referer":"https://KIBANA_HOST/app/kibana","accept-encoding":"gzip, deflate, br","accept-language":"en-US,en;q=0.9,ru-RU;q=0.8,ru;q=0.7,uk;q=0.6"},"remoteAddress":"IP","userAgent":"IP","referer":"https://KIBANA_HOST/app/kibana"},"res":{"statusCode":500,"responseTime":5044,"contentLength":9},"message":"POST /api/console/proxy?path=INDEX-NAME%2F_count&method=GET 500 5044ms - 9.0B"}

I have. not seen that before, but it looks like a bug. Would you mind filing an issue over at https://github.com/elastic/kibana/issues/new/choose

1 Like

Thank you for the feedback! I'll create a bug report

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.