Home Forums Support (Self-hosting) – Appears to be trying to use local PhantomJS not Phantomjscloud

This topic contains 5 replies, has 2 voices, and was last updated by  Hillel Coren 2 weeks, 2 days ago.

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #23100

    ioensis
    Participant

    (Self-hosting) – Appears to be trying to use local PhantomJS instead of Phantomjscloud – in the env file:

    I have “Attach PDF” switched on in email settings as well as “Password Protect Invoices”

    .env has:

    PHANTOMJS_CLOUD_KEY=’a-demo-key-with-low-quota-per-ip-address’
    PHANTOMJS_SECRET=4k5beutdu95usqf3bt8i3rzfhl7wdb9d

    But I get:

    [2020-01-05 23:16:56] production.ERROR: PhantomJS – Invalid response http://www.ioensis.com/invoices/public/view/t3jsudwti2wsgjuq2q3kfqzogt0oimej?phantomjs=true&phantomjs_secret=4k5beutdu95usqf3bt8i3rzfhl7wdb9d: 403 Forbidden 403 Forbidden Access to this resource on the server is denied! {“context”:”PHP”,”user_id”:1,”account_id”:”1″,”user_name”:”System Administrator”,”method”:”PUT”,”user_agent”:”Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15″,”locale”:”en”,”ip”:”88.12.170.245″,”count”:1,”is_console”:”no”,”is_api”:”no”,”db_server”:”mysql”,”url”:”invoices/3″} []

    This looks to me like its trying to access a local server resource and not finding it. I see nothing that says it is contactig phantomjscloud.

    I am very new to invoice ninja and not at all expert in web hosting / php etc. Any help would be much appreciated.

    #23102

    Hillel Coren
    Keymaster

    It should tell you on Settings > Email Settings which version is being used

    #23103

    ioensis
    Participant

    See this screenshot:

    https://www.dropbox.com/s/duca1a05ukxpqyk/Screenshot%202020-01-06%20at%2010.05.58.png?dl=0

    I don’t see how it indicates whether it is local or cloud? Also, when I do Test, I get a blank page and the same error in the log.

    #23104

    Hillel Coren
    Keymaster

    Thanks, the app is configured to use PhantomJS cloud.

    The info here may help: https://invoice-ninja.readthedocs.io/en/latest/configure.html#troubleshooting

    #23118

    ioensis
    Participant

    I’ve looked at the troubleshooting tips and nothing helps. Unfortunately, most of them I can’t try because I am on a shared hosting and I don’t have command line access.

    I don’t really understand where the 403 error is coming from. As I understand it, the url is sent to phantomjscloud and so phantomjs accesses the invoice in a similar way to the client portal. Is the 403 error coming from that access attempt or is it coming from the application trying to access phantomjscloud?

    #23120

    Hillel Coren
    Keymaster

    I believe the 403 is from PhantomJS Cloud failing to load the Invoice Ninja invoice URL

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

Posted in: