Hello, as the title says our self-hosted InvoiceNinja server started showing “Something went wrong…” messages across the site. According to the larvel logs, it is due to pdf.invoicing.co being unreachable. Here’s the log entry.
2024-10-02 17:24:49] production.ERROR: file_get_contents(https://pdf.invoicing.co/api/version): Failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway
{"userId":1,"exception":"[object] (ErrorException(code: 0): file_get_contents(https://pdf.invoicing.co/api/version): Failed to open stream: HTTP request failed! HTTP/1.1 502 Bad Gateway
at /var/www/html/invoiceninja/app/Http/Controllers/SelfUpdateController.php:187)
[stacktrace]
Oddly, our system doesn’t use PDF_GENERATOR=hosted_ninja in our .env. We have it setup with snappdf. Why are we receiving this error? Thanks.
System
Email: smtp
queue: database
PDF: SnapPDF PDF Generator
Database Connection
passed
PHPweb: 8.2.20
cli: PHP 8.2.20 (cli) (built: Jun 17 2024 13:33:14) (NTS)
Memory: 700M
API: 5.10.24