sourcegraph / webloop

WebLoop: Scriptable, headless WebKit with a Go API. Like PhantomJS, but for Go.
https://sourcegraph.com/github.com/sourcegraph/webloop
BSD 3-Clause "New" or "Revised" License
1.37k stars 84 forks source link

max stack exceeded #19

Open xurwxj opened 7 years ago

xurwxj commented 7 years ago

when run got following errors:

static: Rendering HTML for page at URL: http://zhanzhang.baidu.com/college/articleinfo?id=995
undefined: CONSOLE ERROR RangeError: Maximum call stack size exceeded.
undefined: CONSOLE ERROR RangeError: Maximum call stack size exceeded.
undefined: CONSOLE ERROR RangeError: Maximum call stack size exceeded.

code:

staticHandler := &webloop.StaticRenderer{
        TargetBaseURL: "http://zhanzhang.baidu.com",
        WaitTimeout:   time.Second * 3,
        Log:           log.New(os.Stderr, "static: ", 0),
    }
    http.Handle("/", staticHandler)

sys env: alpine 3.5.2 go 1.8.1

dzan commented 7 years ago

Same issue here for any website it seems, did you ever find a solution?