Comments (3)
Hi @dmzebrov. Thanks for the report and feedback!
I can replicate these. I have a fix for the first one.
The second one has a workaround you can use, but I need to dig in to see why Chrome and Firefox are ok with this certificate authority, but the Go runtime (which is what makes the TLS connection) does not...
To get around Error 2, add MITM_ALLOW_INSECURE=true to your env (either via nodejs code: process.env.MITM_ALLOW_INSECURE='true';
or via cli: MITM_ALLOW_INSECURE=true node code/street-beat.ru
). Please note though, this isn't an official flag, just to get you through for now!
from secret-agent.
Cool! The fix for error 1 will be in the next release. Should be mid-week.
I'm not actually sure I can fix Error 2 right now without patching Go. It appears to be a Mac issue they're still working through, and in particular there's a Commodo certificate authority that had a cert expire in may. No one was quite sure how to handle it. It sounds like one problem people run into is the expired authority remaining in your Mac keychain. When Go verifies the new certificate, it gets tripped up with the expired cert (at least, that's what I could make of the Go issues I was poking through).
For now, we're going to simply turn off certificate validation as the default setting. It's less valuable for scraping than when you're putting your sensitive information into a website while browsing. We'll wait for Go to resolve this internally and toggle back on. The net result is likely not noticeable for scraping.
from secret-agent.
That's worked, thanks for the quick response! Will fix for the Error 1 be included in the next release? I would like to help you with fixing Error 2, but I don't know Go at all, so I hope for you
from secret-agent.
Related Issues (20)
- Help us to help you: please consider improving community standards HOT 6
- aws lambda support? HOT 5
- feature-request: provide interface for MITM Proxy HOT 5
- MITM Socket Server is spawned even if `SA_DISABLE_MITM` is used
- example for waiting for a form submit HOT 8
- failed to install `secret-agent` on Mac
- how to set proxy url and get raw html content HOT 6
- Certificate verification failed HOT 1
- EDIT: waitForFileChooser does not work when using userProfile with 2+ sessionStorage domains HOT 6
- feature request: support css string query in waitForElement HOT 4
- TypeError: Cannot read properties of null (reading 'type') HOT 3
- Fingerprint doesn't change HOT 4
- Chrome version updates? HOT 4
- no webgl support in headed mode, Windows VPS. HOT 4
- UnhandledErrorOrRejection
- Problem with cookieStorage and Twitter HOT 1
- SecretAgent is Moving to @ulixee/hero!
- Download path directory HOT 1
- Download path directory change HOT 1
- Clicking on a canvas inside an iframe HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from secret-agent.