Unable to create, download or send invoices

Version ie <v5.11.74>

Environment

Today I created and sent an invoice and system was working. I then went to complete another invoice and got error 500: Internal Server Error • Server Error. I get this error if I try to save , send, download or view PDF. I didn’t make any system changes between invoices. (I can’t remember if an update was done.

I tried adding
ELASTICSEARCH_ENABLED=false
to .env but still no change

laravel.log

[2025-05-12 06:52:02] production.ERROR: Elastic\Elasticsearch\ClientBuilder::setBasicAuthentication(): Argument #1 ($username) must be of type string, null given, called in /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php on line 168 {“userId”:1,“exception”:"[object] (TypeError(code: 0): Elastic\Elasticsearch\ClientBuilder::setBasicAuthentication(): Argument #1 ($username) must be of type string, null given, called in /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php on line 168 at /usr/share/nginx/invoiceninja/vendor/elasticsearch/elasticsearch/src/ClientBuilder.php:242)

Hi,

This may be a bug, I suggest asking in a discussion on GitHub.

FYI…

Thanks I have added to that bug report on github

1 Like

v5.11.77 fixes the issue

Glad to hear it, thanks for the update!