lightblue-platform / lightblue-rest

Data access layer as service REST API
GNU General Public License v3.0
9 stars 16 forks source link

Confusing error given when attempting to insert large number of rows at once. #108

Open dcrissman opened 9 years ago

dcrissman commented 9 years ago

data.json contains 87623 records, so I might expect a error related to too much data, but instead I get something about authentication. I am able to insert smaller sets of data just fine.

curl -X PUT -H "Content-Type: application/json" https://host:port/rest/data/insert/entity/version -d @data.json --insecure --cert cert.pem:secret
<html><head><title>JBoss Web/7.2.0.Final-redhat-1 - JBWEB000064: Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>JBWEB000065: HTTP Status 401 - JBWEB000009: No client certificate chain in this request</h1><HR size="1" noshade="noshade"><p><b>JBWEB000309: type</b> JBWEB000067: Status report</p><p><b>JBWEB000068: message</b> <u>JBWEB000009: No client certificate chain in this request</u></p><p><b>JBWEB000069: description</b> curl: (55) select/poll returned error
<u>JBWEB000121: This request requires HTTP authentication.</u></p><HR size="1" noshade="noshade"><h3>JBoss Web/7.2.0.Final-redhat-1</h3></body></html>
bserdar commented 9 years ago

How big is the data? POST has implementation dependent size limits.

On Thu, Mar 5, 2015 at 8:15 AM, Dennis Crissman notifications@github.com wrote:

data.json contains 87623 records, so I might expect a error related to too much data, but instead I get something about authentication. I am able to insert smaller sets of data just fine.

curl -X PUT -H "Content-Type: application/json" https://host:port/rest/data/insert/entity/version -d @data.json --insecure --cert cert.pem:secret

JBoss Web/7.2.0.Final-redhat-1 - JBWEB000064: Error report

JBWEB000065: HTTP Status 401 - JBWEB000009: No client certificate chain in this request


JBWEB000309: type JBWEB000067: Status report

&l t;b>JBWEB000068: message JBWEB000009: No client certificate chain in this request

JBWEB000069: description curl: (55) select/poll returned error JBWEB000121: This request requires HTTP authentication.


JBoss Web/7.2.0.Final-redhat-1

— Reply to this email directly or view it on GitHub https://github.com/lightblue-platform/lightblue-rest/issues/108.

dcrissman commented 9 years ago

Just shy of 41meg.

I am not arguing that size should be allowed, only that the exception provided is misleading.

bserdar commented 9 years ago

41meg shouldn't be too large. However, you have to split this into multiple operations of smaller batches anyway.

On Thu, Mar 5, 2015 at 9:06 AM, Dennis Crissman notifications@github.com wrote:

Just shy of 41meg.

I am not arguing that size should be allowed, only that the exception provided is misleading.

— Reply to this email directly or view it on GitHub https://github.com/lightblue-platform/lightblue-rest/issues/108#issuecomment-77391805 .

dcrissman commented 9 years ago

That was exactly my work around.