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

[BUG]: Invoice pdf generation fails #445

Open
philipp1992 opened this issue Jan 10, 2025 · 0 comments
Open

[BUG]: Invoice pdf generation fails #445

philipp1992 opened this issue Jan 10, 2025 · 0 comments

Comments

@philipp1992
Copy link

Hi

using v1.17.4, when an invoice is finalized and payment processed, the file_url is null until i manually download the invoice using the Lago UI.
This works and the invoice is being downloaded. After that the file_url property is set to the correct url.
Without manually downloading the invoice, file_url is never set.

In the lago-worker i see this error:

5","lvl":"INFO","msg":"fail","ctx":{"class":"Invoices::GeneratePdfAndNotifyJob","jid":"861130f6a3d8fd3e0582eafc","elapsed":0.05}}
{"ts":"2025-01-10T19:27:11.004Z","pid":1,"tid":"7y05","lvl":"WARN","msg":"{"context":"Job raised exception","job":{"retry":0,"queue":"invoices","wrapped":"Invoices::GeneratePdfAndNotifyJob","args":[{"job_class":"Invoices::GeneratePdfAndNotifyJob","job_id":"5061a689-4833-480f-a4c2-a6b04198735b","provider_job_id":null,"queue_name":"invoices","priority":null,"arguments":[{"invoice":{"_aj_globalid":"gid://lago-api/Invoice/d3558088-8a53-40db-bd01-4564d1d794eb"},"email":false,"_aj_ruby2_keywords":["invoice","email"]}],"executions":0,"exception_executions":{},"locale":"en","timezone":"UTC","enqueued_at":"2025-01-10T19:27:10.949713189Z","scheduled_at":null,"tracing_info":{"membership":"membership/433a04d3-8bd8-4b90-8da3-2a1330f0647c"}}],"class":"ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper","jid":"861130f6a3d8fd3e0582eafc","created_at":1736537230.949872,"enqueued_at":1736537230.950109}}"}
{"ts":"2025-01-10T19:27:11.005Z","pid":1,"tid":"7y05","lvl":"WARN","msg":"TypeError: Can't load the template file. Pass a string with a path or an object that responds to 'to_str', 'path' or 'to_path'"}
{"ts":"2025-01-10T19:27:11.007Z","pid":1,"tid":"7y05","lvl":"WARN","msg":""}

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

1 participant