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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ML] Request Entity Too Large when uploading a csv in Data Visualizer although its under 100MB #68754

Open
idkw opened this issue Jun 10, 2020 · 5 comments
Labels
Feature:File and Index Data Viz ML file and index data visualizer :ml

Comments

@idkw
Copy link

idkw commented Jun 10, 2020

Kibana version: 6.8.9

Elasticsearch version: 6.8.9

Server OS version: Managed by elastic.co

Browser version: Version 1.9.76 Chromium: 81.0.4044.138 (Official Build) (64-bit)

Browser OS version:
Description: Linux Mint 19.3 Tricia
Release: 19.3

Original install method (e.g. download page, yum, from source, etc.):
elastic.co

Describe the bug:
When going to the Data Visualizer in Machine Learning to import a CSV, it says the max file size is 100MB, but if I try a 8MB file it fails with the following error :

<html>
<head><title>413 Request Entity Too Large</title></head>
<body bgcolor="white">
<center><h1>413 Request Entity Too Large</h1></center>
<hr><center>nginx/1.10.3</center>
</body>
</html>
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->
<!-- a padding to disable MSIE and Chrome friendly error page -->

Steps to reproduce:

  1. Open the Data Visualize in Machine Learning
  2. Load a CSV file of 8MB or more
  3. Get the error

Expected behavior:
It should work for files under 100MB as documented

Screenshots (if relevant):
THere is no error in the web UI, it keeps spinning indefintely :

image

Errors in browser console (if relevant):

ml.bundle.js:2 POST https://*******/api/ml/file_data_visualizer/analyze_file 413
(anonymous) @ ml.bundle.js:2
http @ ml.bundle.js:2
analyzeFile @ ml.bundle.js:2
_callee3$ @ ml.bundle.js:2
tryCatch @ vendors.bundle.dll.js:488
invoke @ vendors.bundle.dll.js:488
prototype.<computed> @ vendors.bundle.dll.js:488
step @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
loadSettings @ ml.bundle.js:2
_callee2$ @ ml.bundle.js:2
tryCatch @ vendors.bundle.dll.js:488
invoke @ vendors.bundle.dll.js:488
prototype.<computed> @ vendors.bundle.dll.js:488
step @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
Promise.then (async)
step @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
loadFile @ ml.bundle.js:2
(anonymous) @ ml.bundle.js:2
ag @ vendors.bundle.dll.js:203
$f @ vendors.bundle.dll.js:203
Hi @ vendors.bundle.dll.js:203
Fi @ vendors.bundle.dll.js:203
Gi @ vendors.bundle.dll.js:203
Ii @ vendors.bundle.dll.js:203
bc @ vendors.bundle.dll.js:203
ee @ vendors.bundle.dll.js:203
commons.bundle.js:3 Detected an unhandled Promise rejection.
SyntaxError: Unexpected token < in JSON at position 0
ml:1 Uncaught (in promise) SyntaxError: Unexpected token < in JSON at position 0

Provide logs and/or server output (if relevant):

Any additional context:

@idkw idkw changed the title Request Entity Too Largewhen uploading a csv in Data Visualizer Request Entity Too Large when uploading a csv in Data Visualizer although its under 100MB Jun 10, 2020
@peteharverson peteharverson changed the title Request Entity Too Large when uploading a csv in Data Visualizer although its under 100MB [ML] Request Entity Too Large when uploading a csv in Data Visualizer although its under 100MB Jun 10, 2020
@peteharverson peteharverson added :ml Feature:File and Index Data Viz ML file and index data visualizer labels Jun 10, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/ml-ui (:ml)

@jgowdyelastic
Copy link
Member

Would it be possible to see an example of the data in the csv file? A couple of lines should be sufficient.
Please anonymise any sensitive values in the data.

@droberts195
Copy link
Contributor

This could well be a duplicate of #42114, which was fixed in #44768, but only backported as far as 7.4.0. So the problem still exists in the 6.8 branch.

@jgowdyelastic
Copy link
Member

jgowdyelastic commented Jun 10, 2020

#44768 fixed timeouts when importing the data, the error in this PR appears to be when attempting to analyse the data by calling _ml/find_file_structure

@idkw
Copy link
Author

idkw commented Jun 10, 2020

Here is an example of my csv file (anonymized) :

"col1","col2","col3","col4","col5","col6","col3","col8"
5851,sdfsdf,dfgdfg,hfghf,"sdfsdf",2020-06-09,sdfhdf,716
7614,sdfsf,fghfgh,ffghfh,"azeazea",2020-06-09,dfgdfg,422
5335,gdfgd,fghfg,fghf,"azeaea",2020-06-09,dfgdfg,407
5970,hgfdh,fghf,fghfgh,"dfghnjfgh",2020-06-09,zerzr,382
7998,gdfg,fgerzre,zerze,"fghfghf",2020-06-09,zerzsdf,379
5970,fgh,zerzr,rzerez,"zerzer",2020-06-09,zerzr,379
7998,hfdgh,xcvx,zerzre,"zerzer",2020-06-09,zerzr,366

Its only basic text, dates and integers columns

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:File and Index Data Viz ML file and index data visualizer :ml
Projects
None yet
Development

No branches or pull requests

5 participants