diff --git a/src/session.ts b/src/session.ts index d29e796..3f08f17 100644 --- a/src/session.ts +++ b/src/session.ts @@ -56,7 +56,11 @@ function prepareBrowserProfile(id: string): string { export default { create: async (id: string, { cookies, oneTimeSession, userAgent, headers, maxTimeout, proxy }: SessionCreateOptions): Promise => { - let args = ['--no-sandbox', '--disable-setuid-sandbox']; + let args = [ + '--no-sandbox', + '--disable-setuid-sandbox', + '--disable-dev-shm-usage' // issue #45 + ]; if (proxy && proxy.url) { args.push(`--proxy-server=${proxy.url}`); } @@ -137,4 +141,4 @@ export default { }, get: (id: string): SessionsCacheItem | false => sessionCache[id] && sessionCache[id] || false -} \ No newline at end of file +}