penthouse: error opening url - operation canceled

I am using penthouse with grunt - whenever we point penthouse to our local dev environment, we get these errors:

Error: Fontconfig warning: ignoring UTF-8: not a valid region tag
Error opening url 'https://www.dev.site.com/de': Operation canceled

This is how the grunt task is configured:

penthouse: {
    corporate_index: {
        outfile: './src/css/index/critical/index-critical.css',
        css: './src/css/index/critical/index-complete.css',
        url: 'https://www.dev.site.com/de',
        width: 1920,
        height: 1080,
        skipErrors: false,
        phantomJsOptions: {
            'proxy-auth': 'penthouse:****'
        }
    }
}

What could cause the problem here? Is there any way to debug further, why penthouse or phantomjs can’t open the url?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 16 (10 by maintainers)

Most upvoted comments

I have the same problem, I’m also on mac. From the penthouse debug logs I get:

htmlfile:  <File "login.html" <Buffer 3c 21 44 4f 43 54 59 50 45 20 68 74 6d 6c 3e 0a 3c 68 74 6d 6c 20 6c 61 6e 67 3d 22 65 6e 22 3e 0a 3c 68 65 61 64 3e 0a 20 20 20 20 3c 21 2d 2d 20 72 ... >>
time: 7 | opened css file
time: 199 | parsed ast (without errors)
time: 1132 | Penthouse core start
time: 1137 | opened ast from file
time: 1153 | parsed ast from json
time: 1154 | getCriticalPathCss
time: 1154 | prepareNewPage
time: 1162 | stripped out non matching media queries
time: 1179 | ERR: Error opening url '': Operation canceled

I added the log that outputs the htmlfile being worked on. There is a somewhat large css background image of around 472k in size that may be what’s causing the issue. I have tried to remedy this by adding a renderWait time of 35 seconds but I still get the error. Any help would be greatly appreciated.