Run phantomjs with --ignore-ssl-errors=true from casperjs

前端 未结 2 1554
囚心锁ツ
囚心锁ツ 2020-12-11 01:05

I have a problem with https page. Page is completly ok, it exist but phantomjs tell me something else: \'loading resource failed with status fail\'. I read about it for a wh

2条回答
  •  情书的邮戳
    2020-12-11 01:17

    Was having the same issue with a site that was previously working but then suddenly stopped working with the "Loading resource failed with status=fail:" message.

    I hadn't changed versions of anything nor my script so something must have changed on the server side. Ultimately, the fix for me was to set the following option:

    --ssl-protocol=tlsv1
    

    This link was useful in giving some different options to try: https://github.com/n1k0/casperjs/issues/49

    Other suggestions on the page were:

    --ignore-ssl-errors=true
    --ssl-protocol=any
    

提交回复
热议问题