Closed dlebrero closed 4 years ago
This one is really hard to track down without those 37 additional stack frames... I have found 4 instances of this error as Info-level log lines in the live server, but apart from a the URL being /upload not a hint about which instance/survey/etc it was processing at the time.
Added some additional logging at https://github.com/akvo/akvo-flow-services/issues/224
The longer stacktrace (in Sentry) looks like this: XSSFCell.java in org.apache.poi.xssf.usermodel/typeMismatch at line 845 XSSFCell.java in org.apache.poi.xssf.usermodel/getRichStringCellValue at line 294 XSSFCell.java in org.apache.poi.xssf.usermodel/getStringCellValue at line 246 sun.reflect/invoke DelegatingMethodAccessorImpl.java in sun.reflect/invoke at line 43 Method.java in java.lang.reflect/invoke at line 498 Reflector.java in clojure.lang/invokeMatchingMethod at line 93 Reflector.java in clojure.lang/invokeNoArgInstanceMember at line 313 uploader.clj in akvo.flow-services.uploader/[fn] at line 127
Nothing I can do, since I don't know Clojure.
@stellanl happy to help but I would need to know what flow-services is supposed to do
AFAIK, it's supposed to
Sorry, do not follow.
This particular issue is that the code is assuming that all the cells in the first row in the first sheet are Strings, but it seems that sometimes that it not the case.
I am going to change the code so that if the cell is a number, it will assume the number is the questionId.
I will also change the code so that any uncaught exception will result in the user being notified that the upload failed and a sentry alert to be sent.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
https://sentry.io/akvo-foundation/flow-services/issues/612532827/