Quantcast
Channel: Recent Questions - Stack Overflow
Viewing all articles
Browse latest Browse all 11631

playwright python SSL peer certificate or SSH remote key was not OK

$
0
0

I get this error when trying to run:

import asynciofrom playwright.async_api import async_playwright, Playwrightasync def run(playwright: Playwright):    webkit = playwright.webkit    browser = await webkit.launch(headless=False)    context = await browser.new_context(ignore_https_errors=True)    page = await context.new_page()    await page.goto("http://minha.anem.dz/pre_inscription")    await browser.close()async def main():    async with async_playwright() as playwright:        await run(playwright)asyncio.run(main())

error :

playwright._impl._errors.Error: SSL peer certificate or SSH remote key was not OK

I have solution if you need.


Viewing all articles
Browse latest Browse all 11631

Trending Articles