PDF not attached to email sent to client

Sudenly when i try to send email with the invoice to the client, the PDF is not attached to it.

In the lavarel log, i get the following:

[2017-12-30 01:27:19] production.ERROR: PhantomJS - Invalid response https://xxx/view/epf7jvumqza2zrlfn6bssuxiajbgrwb7?phantomjs=true&phantomjs_secret=: {“context”:“PHP”,“user_id”:1,“account_id”:“1”,“user_name”:“Βασιλική Καλαμπόκα”,“method”:“PUT”,“url”:“https://xxx/invoices/84",“previous”:“https://xxx/invoices/84/edit”,“user_agent”:"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.108 Safari/537.36”,“ip”:“”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”} []

Any help would be much appreciated.

Are you using phantomjscloud or are you running PhantomJS locally?

Also, does the link in the error work for you in the browser when you’re logged out? If you require clients to enter a password you’ll need to set a value for PHANTOMJS_SECRET in the .env file.

I don’t even understand what you are asking me.

I never show client’s portal to the customer. I just send them email with their pdf invoice.

What is phantomjscloud or phantomJS ?

The app uses either phantomjscloud or PhantomJS running locally to generate the PDF.

More info here: http://docs.invoiceninja.com/en/latest/configure.html#phantomjs

As a next step I’d suggest checking if the link works for you, you should see the PDF as raw data.

What i see is that it used to work great but sudeenly it stopped.
I saw after search in a previous topic that its because of the https that we have the source of the problem.
Do you think that it might be it ?

It’s certainly possible

Problem solved.
It was a missconfiguration in the .env file.
I have moved my setup in a new domain a few weeks ago and one of the variables in the .env file had the old domain.

thank you so much