Form submission error

(Muniu Kariuki) #1

Hi,

We are running a local version of Commcare-Hq but forms that include images
are not being uploaded to the server. The Android client in use is the
latest one available from the Play Store. Kindly assist.

0 Likes

(Muniu Kariuki) #2

Sorry the log from Android is as follows:

··· > 1. 12-17 11:23:19.578: D/SizeAdaptiveLayout(2128): > com.android.internal.widget.SizeAdaptiveLayout@4236f270child view > android.widget.RelativeLayout@41f664b8 measured out of bounds at 80px > clamped to 96px > 2. 12-17 11:23:19.578: I/System.out(15928): Added file: > 1387265021939.jpg. Bytes to send: 2687716 > 3. 12-17 11:23:19.578: I/System.out(15928): Added file: > 5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml. Bytes to > send: 2688516 > 4. 12-17 11:23:19.588: I/System.out(15928): Added file: > submission.xml. Bytes to send: 2689316 > 5. 12-17 11:23:19.588: D/WindowManager(2020): PhoneWindowManager: > focusChangedLw > 6. 12-17 11:23:19.598: I/p+a+s(15928): added image file > 1387265021939.jpg > 7. 12-17 11:23:19.608: D/KeyguardViewMediator(2020): setHidden false > 8. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden false > 9. 12-17 11:23:19.628: I/libblt_hw(1673): Library opened (handle = 1, > fd = 45) > 10. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden false > 11. 12-17 11:24:02.041: D/SizeAdaptiveLayout(2128): > com.android.internal.widget.SizeAdaptiveLayout@4236f270child view > android.widget.RelativeLayout@41f664b8 measured out of bounds at 80px > clamped to 96px > 12. 12-17 11:24:07.326: D/BatteryService(2020): update start > 13. 12-17 11:24:07.997: E/p+a+s(15928): Location header was absent > 14. 12-17 11:24:07.997: E/p+a+s(15928): Response code:400 > 15. 12-17 11:24:07.997: I/System.out(15928): If you use > multipart/form-data, please name your file xml_submission_file. > 16. 12-17 11:24:07.997: I/System.out(15928): You may also do a normal > (non-multipart) post with the xml submission as the request body instead. > 17. 12-17 11:24:07.997: W/System.err(15928): logger> warning-network: > Retrying submission. 1 attempts remain > 18. 12-17 11:24:08.057: I/System.out(15928): Added file: > 1387265021939.jpg. Bytes to send: 2687716 > 19. 12-17 11:24:08.057: I/System.out(15928): Added file: > 5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml. Bytes to > send: 2688516 > 20. 12-17 11:24:08.057: I/System.out(15928): Added file: > submission.xml. Bytes to send: 2689316 > 21. 12-17 11:24:08.067: I/p+a+s(15928): added image file > 1387265021939.jpg > 22. 12-17 11:24:08.067: D/ApplicationPolicy(2020): > isStatusBarNotificationAllowed: packageName = org.commcare.dalvik > >

On Tuesday, December 17, 2013 2:16:57 PM UTC+3, Muniu Kariuki wrote:

Hi,

We are running a local version of Commcare-Hq but forms that include
images are not being uploaded to the server. The Android client in use is
the latest one available from the Play Store. Kindly assist.

0 Likes

(Cory Zue) #3

Hi Muniu,

Can you check what your submission URLs are in the application? These need
to be customized on your server.

Cory

··· 2013/12/17 Muniu Kariuki

Sorry the log from Android is as follows:

  1. 12-17 11:23:19.578: D/SizeAdaptiveLayout(2128):
    com.android.internal.widget.SizeAdaptiveLayout@4236f270child view
    android.widget.RelativeLayout@41f664b8 measured out of bounds at 80px
    clamped to 96px
  2. 12-17 11:23:19.578: I/System.out(15928): Added file:
    1387265021939.jpg. Bytes to send: 2687716
  3. 12-17 11:23:19.578: I/System.out(15928): Added file:
    5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml. Bytes to
    send: 2688516
  4. 12-17 11:23:19.588: I/System.out(15928): Added file:
    submission.xml. Bytes to send: 2689316
  5. 12-17 11:23:19.588: D/WindowManager(2020): PhoneWindowManager:
    focusChangedLw
  6. 12-17 11:23:19.598: I/p+a+s(15928): added image file
    1387265021939.jpg
  7. 12-17 11:23:19.608: D/KeyguardViewMediator(2020): setHidden false
  8. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden false
  9. 12-17 11:23:19.628: I/libblt_hw(1673): Library opened (handle = 1,
    fd = 45)
  10. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden false
  11. 12-17 11:24:02.041: D/SizeAdaptiveLayout(2128):
    com.android.internal.widget.SizeAdaptiveLayout@4236f270child view
    android.widget.RelativeLayout@41f664b8 measured out of bounds at 80px
    clamped to 96px
  12. 12-17 11:24:07.326: D/BatteryService(2020): update start
  13. 12-17 11:24:07.997: E/p+a+s(15928): Location header was absent
  14. 12-17 11:24:07.997: E/p+a+s(15928): Response code:400
  15. 12-17 11:24:07.997: I/System.out(15928): If you use
    multipart/form-data, please name your file xml_submission_file.
  16. 12-17 11:24:07.997: I/System.out(15928): You may also do a normal
    (non-multipart) post with the xml submission as the request body instead.
  17. 12-17 11:24:07.997: W/System.err(15928): logger> warning-network:
    Retrying submission. 1 attempts remain
  18. 12-17 11:24:08.057: I/System.out(15928): Added file:
    1387265021939.jpg. Bytes to send: 2687716
  19. 12-17 11:24:08.057: I/System.out(15928): Added file:
    5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml. Bytes to
    send: 2688516
  20. 12-17 11:24:08.057: I/System.out(15928): Added file:
    submission.xml. Bytes to send: 2689316
  21. 12-17 11:24:08.067: I/p+a+s(15928): added image file
    1387265021939.jpg
  22. 12-17 11:24:08.067: D/ApplicationPolicy(2020):
    isStatusBarNotificationAllowed: packageName = org.commcare.dalvik

On Tuesday, December 17, 2013 2:16:57 PM UTC+3, Muniu Kariuki wrote:

Hi,

We are running a local version of Commcare-Hq but forms that include
images are not being uploaded to the server. The Android client in use is
the latest one available from the Play Store. Kindly assist.


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

0 Likes

(Cory Zue) #4

Oh I see. I didn’t realize it was just submissions with images.

Your server might not correctly support chunked encoding. This is the most
common issue with multimedia. We’ve had the best success using apache and
mod_proxy to handle this for us, and have never successfully gotten it
working on Nginx.

Cory

··· 2013/12/17 Muniu Kariuki

Hi Cory,

I understand that but why are normal(to mean forms without attached
images) being submitted successfully but not those with images? Further,
where would the urls be changed on the server?

Muniu.

On Tuesday, December 17, 2013 5:20:22 PM UTC+3, Cory Zue wrote:

Hi Muniu,

Can you check what your submission URLs are in the application? These
need to be customized on your server.

Cory

2013/12/17 Muniu Kariuki dennis...@gmail.com

Sorry the log from Android is as follows:

  1. 12-17 11:23:19.578: D/SizeAdaptiveLayout(2128):
    com.android.internal.widget.SizeAdaptiveLayout@4236f270child view
    android.widget.RelativeLayout@41f664b8 measured out of bounds at
    80px clamped to 96px
  2. 12-17 11:23:19.578: I/System.out(15928): Added file:
    1387265021939.jpg. Bytes to send: 2687716
  3. 12-17 11:23:19.578: I/System.out(15928): Added file:
    5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml.
    Bytes to send: 2688516
  4. 12-17 11:23:19.588: I/System.out(15928): Added file:
    submission.xml. Bytes to send: 2689316
  5. 12-17 11:23:19.588: D/WindowManager(2020): PhoneWindowManager:
    focusChangedLw
  6. 12-17 11:23:19.598: I/p+a+s(15928): added image file
    1387265021939.jpg
  7. 12-17 11:23:19.608: D/KeyguardViewMediator(2020): setHidden false
  8. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden false
  9. 12-17 11:23:19.628: I/libblt_hw(1673): Library opened (handle =
    1, fd = 45)
  10. 12-17 11:23:19.628: D/KeyguardViewMediator(2020): setHidden
    false
  11. 12-17 11:24:02.041: D/SizeAdaptiveLayout(2128):
    com.android.internal.widget.SizeAdaptiveLayout@4236f270child view
    android.widget.RelativeLayout@41f664b8 measured out of bounds at
    80px clamped to 96px
  12. 12-17 11:24:07.326: D/BatteryService(2020): update start
  13. 12-17 11:24:07.997: E/p+a+s(15928): Location header was absent
  14. 12-17 11:24:07.997: E/p+a+s(15928): Response code:400
  15. 12-17 11:24:07.997: I/System.out(15928): If you use
    multipart/form-data, please name your file xml_submission_file.
  16. 12-17 11:24:07.997: I/System.out(15928): You may also do a
    normal (non-multipart) post with the xml submission as the request body
    instead.
  17. 12-17 11:24:07.997: W/System.err(15928): logger>
    warning-network: Retrying submission. 1 attempts remain
  18. 12-17 11:24:08.057: I/System.out(15928): Added file:
    1387265021939.jpg. Bytes to send: 2687716
  19. 12-17 11:24:08.057: I/System.out(15928): Added file:
    5a920ddd9ad56cf26628f3a097ee8cb6dd6d4ab7_2013-12-17_10-23-24.xml.
    Bytes to send: 2688516
  20. 12-17 11:24:08.057: I/System.out(15928): Added file:
    submission.xml. Bytes to send: 2689316
  21. 12-17 11:24:08.067: I/p+a+s(15928): added image file
    1387265021939.jpg
  22. 12-17 11:24:08.067: D/ApplicationPolicy(2020):
    isStatusBarNotificationAllowed: packageName = org.commcare.dalvik

On Tuesday, December 17, 2013 2:16:57 PM UTC+3, Muniu Kariuki wrote:

Hi,

We are running a local version of Commcare-Hq but forms that include
images are not being uploaded to the server. The Android client in use is
the latest one available from the Play Store. Kindly assist.


You received this message because you are subscribed to the Google
Groups “CommCare Developers” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

0 Likes

(Elyse Tuyishime) #5

Hi,

Even this post is a bit old, but I want to resume it as one of our devices is having the similar issue. However, for our case IT IS NOT multimedia submission, instead when we tap on Sync intending syncing normal forms it pop-up an error like “Unexpected issue occurred during sync. Please try to sync again”. Now we have 230 unsent forms. I tried Dumping Forms on an SD Card but seen an error that the SD card is not detected while navigating through My Files App we can access files on the SD card. Internet is working and Connection Test is returning No Problems detected! I hesitated using Wifi Direct as I saw a flag stating that Forms loss is more likely to occur. So, Please would you help me about how this can be fixed?

Thank you very much!

0 Likes

(Clayton Sims) #6

Hi Elyse,

Are you on the latest version of CommCare from the google play store? If
not, the best first step to take would be to update, since we’ve made
improvements in the last couple of versions to how we handle certain form
issues.

If so, it would help to see whether there are any issues with unsent forms
on the device.

  1. Log in to CommCare
  2. Click on the “Three Dot” menu in the upper right from the home screen
  3. Go to “Saved Forms”
  4. Click on the funnel icon on the right hand side of the screen, and
    choose “Filter By: Only Unsent Forms”
  5. Find the oldest form in the list and “Long click it” by holding your
    finger down on the form for a couple of seconds
  6. Click “Scan Record Integrity” and see if there are any issues with
    the form
  7. If “Scan Record Integrity” doesn’t reveal any issues, click the form
    itself to see if it gives you any specific error messages.

-Clayton

0 Likes

(Elyse Tuyishime) #7

Hi Clayton,

Yes the Google play store App is up to date and our CommCare version is
2.30.0. Record integrity for the oldest form is not showing any issue and
the form is being opened without any problem!

Please any other way to try?

Thank you!

0 Likes

(Clayton Sims) #8

Hi Elyse,

The current production version of CommCare mobile on the Google Play store
is up to 2.41.0

Are you not seeing an available update option from the mobile devices when
you navigate to the play store page for CommCare?

-Clayton

0 Likes

(Elyse Tuyishime) #9

Hi Clayton,

Yes, just CommCare App in Google play store is up to date and CommCare Web
version is on 2.41.1. However until now I still seeing the same error!

Thanks again!

0 Likes

(Clayton Sims) #10

Elyse,

Can you Report an Issue through the CommCareHQ website so a member of our
team can help you dig into this issue more thoroughly?

-Clayton

0 Likes