Email pdf via https


Having a bit of a problem with local phantomjs and emailing pdfs. The pdf is generated normally if you just save it so phantomjs works. But if we want to generate it and send it via email it doesnt work. Log shows:
production.ERROR: PhantomJS - Invalid response https://…

Our .env file has REQUIRE_HTTPS set on True, the APP_URL=, the PHANTOMJS path is correct and PHANTOMJS_SECRET is something random.

Tried troubleshooting as seen here . test.jps returns:

    "contentType": null,
    "headers": [],
    "id": 1,
    "redirectURL": null,
    "stage": "end",
    "status": null,
    "statusText": null,
    "time": "2018-12-28T15:34:01.226Z",
    "url": "",
    "console": []

Using phantomjs --ignore-ssl-errors=true --ssl-protocol=tlsv1 --web-security=false test.jps returns the same as above so I didn’t even try this - .

Any ideas? The hostname is the /etc/hosts/ has localhost . So am running out of ideas.

Nevermind… /etc/hosts was wrong… does not listen https :slight_smile: