docusealco / docuseal

Open source DocuSign alternative. Create, fill, and sign digital documents ✍️
https://www.docuseal.co
GNU Affero General Public License v3.0
5.55k stars 369 forks source link

[BUG] Stuck downloading when downloading an archived and completed document #275

Open jacobburrell opened 1 month ago

jacobburrell commented 1 month ago
image image

When attempting to download an archived and completed document, the download process gets stuck and does not complete.

Additionally, is there any way to unarchive a document from the web interface? Non-archived documents of different Submissions download just fine from the same document.

sunshine69 commented 1 month ago

I saw the same issues here, completed doc can nto be downloaded. The error logs is like

E, [2024-05-22T22:01:05.428390 #1] ERROR -- : [49f6d004-f5c3-4020-896d-15148d0b18ea]   
[49f6d004-f5c3-4020-896d-15148d0b18ea] NoMethodError (undefined method `[]' for nil):
[49f6d004-f5c3-4020-896d-15148d0b18ea]   
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/submissions/generate_result_attachments.rb:312:in `build_pdf_attachment'
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/submissions/generate_result_attachments.rb:269:in `block in call'
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/submissions/generate_result_attachments.rb:266:in `map'
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/submissions/generate_result_attachments.rb:266:in `call'
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/submissions/ensure_result_generated.rb:27:in `call'
[49f6d004-f5c3-4020-896d-15148d0b18ea] app/controllers/submissions_download_controller.rb:22:in `index'
[49f6d004-f5c3-4020-896d-15148d0b18ea] lib/api_path_consider_json_middleware.rb:15:in `call'
omohokcoj commented 1 month ago

@sunshine69 could you please share the PDF that resulted in this error?