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

Failed to get image in server after successful form submission #38

Closed
arkhub opened this issue Dec 27, 2018 · 9 comments
Closed

Failed to get image in server after successful form submission #38

arkhub opened this issue Dec 27, 2018 · 9 comments

Comments

@arkhub
Copy link

arkhub commented Dec 27, 2018

Tried some test form with geopoints and image, all seems works well (create user, upload form, get blank form, upload submissions) until I try to retrieve images in submitted form which shown error {"message":"Could not find the resource you were looking for.","code":404.1} .
Downloading the form also only get the xls file in zip format, but no images present, is there any step in installing or configuring the server that I miss?

@issa-tseng
Copy link
Member

are you sure there are images attached to the submission? what method are you using to try to download the images?

downloading the zipfile should definitely get you the desired images, if they exist.

@arkhub
Copy link
Author

arkhub commented Dec 27, 2018

I've tried to download it from the web ui in the submissions list using chrome browser, viewing it cause the 404 code like above.

Downloading the zip only result in the xlsx files only after being extracted. I'll try to look the files in the server / docker images next since docker-compose logs -f doesn't show anything weird when the being submitted.

@issa-tseng
Copy link
Member

oh, i see. so you are getting that error message when clicking on the link in the table? @matthew-white any ideas?

@issa-tseng
Copy link
Member

@arkhub is there any chance i could get access to the server to try it? even just to the web panel?

@arkhub
Copy link
Author

arkhub commented Dec 27, 2018

sure, do you want to access to web panel? I'll create the users first

edit : since there are leftover data from previous test, I'd like to clear the previous data first... is there any way to do it? maybe delete the docker images?

@issa-tseng
Copy link
Member

any sort of access would help a lot! my email address should be visible on my github profile.

the leftover data may be helpful, but i just responded on the other thread with information about removing your data.

@arkhub
Copy link
Author

arkhub commented Dec 28, 2018

Ok. this is embarrasing... when I try to upload another pictures it succeded and I managed to download it. turns out previous failed image is in .png format (don't know why it failed because odk collect submitted it normally), and the successful one is in .jpg format.

still, do you want to access the server to test it out? if yes how do I send the user pass information in private message? (didn't find message button in github), or do I email to you directly?

@issa-tseng
Copy link
Member

oh! that's really interesting. i wonder why a .png doesn't work. i think with that information i can do some testing myself, and i probably don't need to access your server.

but i think odk collect only generates .jpgs, so if that's how you are collecting data then this shouldn't be a problem.

@arkhub
Copy link
Author

arkhub commented Dec 28, 2018

ok then.

@arkhub arkhub closed this as completed Dec 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants