Open araguma opened 1 month ago
When we try to download completed submissions for one of our templates we get the Unable to download files error alert. The error doesn't occur when the submission is partially signed, or for submissions in other templates.
Unable to download files
E, [2024-08-15T18:34:21.542423 #1] ERROR -- : [a7008eb7-5e2d-4fa5-9982-b39527022308] undefined method `scan' for nil I, [2024-08-15T18:34:21.544519 #1] INFO -- : [a7008eb7-5e2d-4fa5-9982-b39527022308] {"method":"GET","path":"/submitters/Gk9WBYZomHc1XL/download","format":"*/*","controller":"SubmissionsDownloadController","action":"index","status":500,"allocations":110001,"duration":1816.75,"view":0.0,"db":4.55,"fwd":"192.168.50.1"} E, [2024-08-15T18:34:21.545603 #1] ERROR -- : [a7008eb7-5e2d-4fa5-9982-b39527022308] [a7008eb7-5e2d-4fa5-9982-b39527022308] NoMethodError (undefined method `scan' for nil): [a7008eb7-5e2d-4fa5-9982-b39527022308] [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/digital_signature/signatures.rb:203:in `block in generate_field_name' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/type/acro_form/form.rb:135:in `block (2 levels) in each_field' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/pdf_array.rb:183:in `block in each' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/pdf_array.rb:183:in `each_index' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/pdf_array.rb:183:in `each' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/type/acro_form/form.rb:129:in `each_with_index' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/type/acro_form/form.rb:129:in `block in each_field' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/type/acro_form/form.rb:143:in `each_field' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/digital_signature/signatures.rb:203:in `each' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/digital_signature/signatures.rb:203:in `map' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/digital_signature/signatures.rb:203:in `generate_field_name' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/digital_signature/signatures.rb:112:in `add' [a7008eb7-5e2d-4fa5-9982-b39527022308] hexapdf (0.42.0) lib/hexapdf/document.rb:674:in `sign' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/submissions/generate_result_attachments.rb:447:in `build_pdf_attachment' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/submissions/generate_result_attachments.rb:61:in `block in call' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/submissions/generate_result_attachments.rb:58:in `map' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/submissions/generate_result_attachments.rb:58:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/submissions/ensure_result_generated.rb:27:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] app/controllers/submissions_download_controller.rb:22:in `index' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/basic_implicit_render.rb:6:in `send_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/abstract_controller/base.rb:224:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/rendering.rb:165:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/abstract_controller/callbacks.rb:259:in `block in process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/callbacks.rb:121:in `block in run_callbacks' [a7008eb7-5e2d-4fa5-9982-b39527022308] turbo-rails (2.0.5) lib/turbo-rails.rb:24:in `with_request_id' [a7008eb7-5e2d-4fa5-9982-b39527022308] turbo-rails (2.0.5) app/controllers/concerns/turbo/request_id_tracking.rb:10:in `turbo_tracking_request_id' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/callbacks.rb:130:in `block in run_callbacks' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/callbacks.rb:141:in `run_callbacks' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/abstract_controller/callbacks.rb:258:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/rescue.rb:25:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:74:in `block in process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `block in instrument' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/notifications/instrumenter.rb:58:in `instrument' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/notifications.rb:206:in `instrument' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/instrumentation.rb:73:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal/params_wrapper.rb:261:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] activerecord (7.1.3.4) lib/active_record/railties/controller_runtime.rb:32:in `process_action' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/abstract_controller/base.rb:160:in `process' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionview (7.1.3.4) lib/action_view/rendering.rb:40:in `process' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal.rb:227:in `dispatch' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_controller/metal.rb:309:in `dispatch' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:49:in `dispatch' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:32:in `serve' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:51:in `block in serve' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:131:in `block in find_routes' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:124:in `each' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:124:in `find_routes' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/journey/router.rb:32:in `serve' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/routing/route_set.rb:882:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] warden (1.2.9) lib/warden/manager.rb:36:in `block in call' [a7008eb7-5e2d-4fa5-9982-b39527022308] warden (1.2.9) lib/warden/manager.rb:34:in `catch' [a7008eb7-5e2d-4fa5-9982-b39527022308] warden (1.2.9) lib/warden/manager.rb:34:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/tempfile_reaper.rb:20:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/etag.rb:29:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/conditional_get.rb:31:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/head.rb:15:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/http/permissions_policy.rb:36:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/http/content_security_policy.rb:33:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack-session (2.0.0) lib/rack/session/abstract/id.rb:272:in `context' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack-session (2.0.0) lib/rack/session/abstract/id.rb:266:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/cookies.rb:689:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/callbacks.rb:29:in `block in call' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/callbacks.rb:101:in `run_callbacks' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/callbacks.rb:28:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/debug_exceptions.rb:29:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/show_exceptions.rb:31:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] lograge (0.14.0) lib/lograge/rails_ext/rack/logger.rb:18:in `call_app' [a7008eb7-5e2d-4fa5-9982-b39527022308] railties (7.1.3.4) lib/rails/rack/logger.rb:24:in `block in call' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/tagged_logging.rb:135:in `block in tagged' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/tagged_logging.rb:39:in `tagged' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/tagged_logging.rb:135:in `tagged' [a7008eb7-5e2d-4fa5-9982-b39527022308] activesupport (7.1.3.4) lib/active_support/broadcast_logger.rb:240:in `method_missing' [a7008eb7-5e2d-4fa5-9982-b39527022308] railties (7.1.3.4) lib/rails/rack/logger.rb:24:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/remote_ip.rb:92:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] request_store (1.6.0) lib/request_store/middleware.rb:19:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/request_id.rb:28:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/method_override.rb:28:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/runtime.rb:24:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/executor.rb:14:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] actionpack (7.1.3.4) lib/action_dispatch/middleware/static.rb:25:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/api_path_consider_json_middleware.rb:15:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] lib/normalize_client_ip_middleware.rb:14:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/deflater.rb:47:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] rack (3.1.7) lib/rack/sendfile.rb:114:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] railties (7.1.3.4) lib/rails/engine.rb:536:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/configuration.rb:272:in `call' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/request.rb:100:in `block in handle_request' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/thread_pool.rb:378:in `with_force_shutdown' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/request.rb:99:in `handle_request' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/server.rb:464:in `process_client' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/server.rb:245:in `block in run' [a7008eb7-5e2d-4fa5-9982-b39527022308] puma (6.4.2) lib/puma/thread_pool.rb:155:in `block in spawn_thread'
@araguma can you please share your PDF that produces an error?
The PDF is this: Registration 2024.pdf
When we try to download completed submissions for one of our templates we get the
Unable to download files
error alert. The error doesn't occur when the submission is partially signed, or for submissions in other templates.