Prova nel browser: ERR_NETWORK_CHANGED in console è il PC che cambia rete a metà prova (Docker), non un errore del gioco
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GiECd9RWGMKV7n3K1mdy8T
This commit is contained in:
+2
-1
@@ -37,7 +37,8 @@ const errors = [];
|
||||
async function open(viewport, query = '') {
|
||||
const page = await browser.newPage({ viewport, acceptDownloads: true });
|
||||
page.on('pageerror', e => errors.push(e.message));
|
||||
page.on('console', m => m.type() === 'error' && errors.push(m.text()));
|
||||
// ERR_NETWORK_CHANGED è il PC che cambia rete a metà prova (Docker che crea o toglie una rete): non è il gioco.
|
||||
page.on('console', m => m.type() === 'error' && !m.text().includes('ERR_NETWORK_CHANGED') && errors.push(m.text()));
|
||||
for (let i = 0; i < 50; i++) {
|
||||
try { await page.goto(`http://127.0.0.1:${PORT}/${query}`); break; } catch { await page.waitForTimeout(100); }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user