tenox7 / wrp

Web Rendering Proxy: Use vintage, historical, legacy browsers on modern web
Apache License 2.0
1.07k stars 52 forks source link

chrome-error://chromewebdata when trying to login netzero.energy (Tesla API login) #123

Open darryllee opened 3 months ago

darryllee commented 3 months ago

I'm trying to use an old iPad Mini as a solar energy monitor, hosted by https://app.netzeroapp.io/

This is the wrp command I'm running:

./wrp-amd64-linux -g 1182x1575x216 -t png -h false -ua="Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36"

In a regular browser, clicking on the "Sign in with Tesla" button redirects me to https://auth.tesla.com/ for authorization. And this is where I get this error:

2024/08/22 22:31:44 ismap.go:236: 192.168.2.131:49967 Done with capture for https://app.netzeroapp.io/
2024/08/22 22:31:44 ismap.go:269: 192.168.2.131:49967 IMG Request for /img/Kyqfi5nasAtv2BGGZNdkcu.png
2024/08/22 22:31:54 ismap.go:240: 192.168.2.131:49967 ISMAP Request for /map/Kyqfi5nasAtv2BGGZNdkcu.map [688,392]
2024/08/22 22:31:54 ismap.go:258: 192.168.2.131:49967 WrpReq from ISMAP: {url:https://app.netzeroapp.io/ width:1182 height:1575 zoom:1.3 nColors:216 jQual:75 mouseX:688 mouseY:392 keys: buttons: imgType:png wrpMode:ismap maxSize:200 w:0xc000342fc0 r:0xc0000b0900}
2024/08/22 22:31:54 ismap.go:47: 192.168.2.131:49967 Mouse Click 688,392
2024/08/22 22:31:54 browser.go:101: ERROR: could not unmarshal event: parse error: expected string near offset 622 of 'cookiePart...'
2024/08/22 22:31:54 ismap.go:147: 192.168.2.131:49967 Landed on: chrome-error://chromewebdata/, Height: 10
2024/08/22 22:31:57 ismap.go:185: 192.168.2.131:49967 Got PNG image: /img/Goufn2SmZhTmqSE2eRst4t.png, Size: 5 KB, Res: 1182x1574
2024/08/22 22:31:57 ismap.go:236: 192.168.2.131:49967 Done with capture for chrome-error://chromewebdata/
2024/08/22 22:31:57 ismap.go:269: 192.168.2.131:49967 IMG Request for /img/Goufn2SmZhTmqSE2eRst4t.png

Appreciate any ideas. Thanks!

tenox7 commented 2 months ago

interesting, I think browser.go is part of chrome browser, I would first try to update it to latest version of chromedp and retry