System.IO.IOException Received an unexpected EOF or 0 bytes from the transport stream

1,008 views
Skip to first unread message

susdash

unread,
Dec 29, 2014, 10:38:53 PM12/29/14
to enketo...@googlegroups.com
I tried to submit data using enketo. I click the submit buttons on each entry. None of the fields are empty. But, sometimes in ODK-Aggregate, I am getting either blank data or some fields as blank. I took the fiddler output for those entries. They are as follows:-
<<
HTTPS handshake to xxx.enketo.org failed. System.IO.IOException Received an unexpected EOF or 0 bytes from the transport stream.
>>

 My ODK Aggregate is in google appspot.com and I use the free basic serice for enketo.
Thanks in advance,
-

Martijn van de Rijdt

unread,
Dec 30, 2014, 10:34:11 AM12/30/14
to susdash, enketo...@googlegroups.com
Thanks for reporting.

I assume the submission fails since the HTTPS handshake fails. Does the same submission go through eventually when it is retried?

--
You received this message because you are subscribed to the Google Groups "enketo-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to enketo-users...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Revolutionizing data collection since 2012.

Enketo    |    LinkedIn    |    GitHub    |    Twitter    |    Blog

susdash

unread,
Dec 30, 2014, 10:57:11 AM12/30/14
to enketo...@googlegroups.com, sus...@gmail.com
Here is what I have tried in selenium to reproduce it.
-I placed my 15 rows of data in a csv file
-Using selenium and python, I tried to run call the form.( I do put adequate sleep/wait time before submit. I can visually see the data being placed in every field.)

My observatiion:
-Once a while all the 15 rows are posted in ODK-Aggregate. (with no errors in the fiddler. All the data are verified in Aggregate).
-Aggregate gets partial data or empty data  sometimes (around 40% of time).
-By partial data I mean:-I have 15 columns in my row. I get data in 5 columns. All other columns are empty.
-By empty data I mean:- Only the UUIDs are updated. But the data are missing.
-When I get partial data in Aggregate, the fiddler shows error.
-When the error occurs:- the page keeps the data in without submitting. (This is not happening always. But sometimes it displays 5 rows are not submitted. I can click this and can see the xml data).
Thx,
-
Thanks.

Martijn van de Rijdt

unread,
Dec 30, 2014, 11:02:43 AM12/30/14
to susdash, enketo...@googlegroups.com
Thanks for the info.

1. Could you perhaps elaborate on this:

-When the error occurs:- the page keeps the data in without submitting.

I don't quite understand what you mean with this.

2. Does the same submission go through successfully eventually when it is retried? Enketo will keep retrying and normally expects a submission to fail, because it's offline capable.

Thanks,
Martijn
 

susdash .

unread,
Dec 30, 2014, 2:53:28 PM12/30/14
to Martijn van de Rijdt, enketo...@googlegroups.com
Hi,
Here are today's updates:
-It displays "Record queued for submission" and after a second, it displays "FormName - 0015 was successfully uploaded"
-But I see blank records and partial updated records in Aggregate.
-I did not see any offlline data. So I can not resubmit.

Thanks,


On Tue, Dec 30, 2014 at 11:21 AM, susdash . <sus...@gmail.com> wrote:
By

<<-When the error occurs:- the page keeps the data in without submitting.>>
I meant that enketo kept the data for offline.

2. I have not tried the retry. I will try it tonight and will get back to you.

Thanks a lot for replying.

Martijn van de Rijdt

unread,
Dec 30, 2014, 3:09:24 PM12/30/14
to susdash ., enketo...@googlegroups.com
Thanks for the update. This means that Aggregate has returned a response to Enketo that the submission was successful with a 201 or 202 HTTP status (under no other circumstance will a record be removed from the browser queue). So now we somehow have to figure out if the issue is with enketo.org (enketo-legacy) or ODK Aggregate...

Since it seems hard to duplicate, is there any chance for you to check the logs for the POST to /submission for a submission that is incomplete/empty? 

Stack Overflow has this post: http://stackoverflow.com/questions/25414907/authenticateasclient-system-io-ioexception-received-an-unexpected-eof-or-0-byt. The issue seems to be related to SSL. It might be worth tweaking the SSL configuration of your server.

P.S. Since this issue has not been reported by other users, and enketo-legacy is almost obsolete (to be replaced by the new enketo-express app, which you can install yourself), I may not be able to invest enough time to investigate this properly.

susdash .

unread,
Dec 30, 2014, 3:15:50 PM12/30/14
to Martijn van de Rijdt, enketo...@googlegroups.com
Thnaks for your reply. I'll recheck my SSL as you suggested.
Can you please send me more info about enketo-express? I did not find it in enketo.org.
-

Martijn van de Rijdt

unread,
Dec 30, 2014, 3:38:14 PM12/30/14
to susdash ., enketo...@googlegroups.com
Sorry, it's not on the enketo.org homepage yet (a little too new). But feel free to give it a shot already if you can cope with a few limitations as explained in the readme.mdhttps://github.com/enketo/enketo-express (note that in the current version of ODK Aggregate, the Enketo buttons won't work if you try to run enketo-express on http - I have been told that this will be resolved in a future Aggregate release).
Reply all
Reply to author
Forward
0 new messages