Raspberry Pi invoice ninja phantomjs error

Hi all,

I am self hosting Invoice ninja on a raspberry Pi 3 and the opperating system is raspbian-stretch-lite.

I am running it on LAMP and have got everything working perfectly apart from Local Phantomjs.

When i try to run the test and it opens test_headless i get this error in my larvel log…

[2019-03-11 09:01:38] production.ERROR: PhantomJS - Invalid response http://192.168.0.2/view/ueakqjpw9rr7ipk2xqnr2vi8gfzvz2pe?phantomjs=true&phantomjs_secret=wm3x0cnl4elfzxkyz6ecgy8hhnbfsxcz: {“context”:“PHP”,“user_id”:1,“account_id”:1,“user_name”:“Nick Harding”,“method”:“GET”,“user_agent”:“Mozilla/5.0 (Windows NT 6.1; WOW64; rv:65.0) Gecko/20100101 Firefox/65.0”,“locale”:“en”,“ip”:“192.168.0.10”,“count”:1,“is_console”:“no”,“is_api”:“no”,“db_server”:“mysql”,“url”:“test_headless”} []

Here is the copy of my .env file…

APP_URL=http://192.168.0.2
APP_KEY=fevgi1pxc7nnghcmoaepqlpdnzecpa9n
APP_CIPHER=AES-256-CBC
REQUIRE_HTTPS=false
DB_TYPE=mysql
DB_HOST=localhost
DB_DATABASE=invoiceninja
DB_USERNAME=invoiceninjauser
DB_PASSWORD=h3ll0w0rld4833
MAIL_DRIVER=smtp
MAIL_PORT=587
MAIL_ENCRYPTION=tls
MAIL_HOST=smtp.gmail.com
MAIL_USERNAME=nick@hardingheatingandplumbing.co.uk
MAIL_FROM_NAME=‘Harding Heating & Plumbing’
MAIL_FROM_ADDRESS=nick@hardingheatingandplumbing.co.uk
MAIL_PASSWORD=xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
PHANTOMJS_BIN_PATH=/usr/bin/phantomjs
#PHANTOMJS_CLOUD_KEY=a-demo-key-with-low-quota-per-ip-address
PHANTOMJS_SECRET=wm3x0cnl4elfzxkyz6ecgy8hhnbfsxcz
MAILGUN_DOMAIN=
MAILGUN_SECRET=

Any ideas what could cause this?

Thanks for your help.
Nick.

Everything I know about this problem can be found here:

https://invoice-ninja.readthedocs.io/en/latest/configure.html#phantomjs

Thanks for your input.