skygragon / leetcode-cli

A cli tool to enjoy leetcode!
MIT License
3.64k stars 457 forks source link

`leetcode show 561` returns `[ERROR] failed to load problem!` #235

Closed psychobolt closed 2 years ago

psychobolt commented 2 years ago

Problem Summary

leetcode show 561 returns [ERROR] failed to load problem!

How to reproduce

  1. leetcode show 561
  2. The problem contents should display, similar to when loading the problem in the webpage (all graphql requests are successful).
  3. leetcode show 561 -vv
    [TRACE] initializing all plugins
    [TRACE] found plugin: cache=default
    [TRACE] found plugin: leetcode=default
    [TRACE] found plugin: retry=default
    [TRACE] inited plugin: leetcode
    [TRACE] inited plugin: retry
    [TRACE] inited plugin: cache
    [TRACE] missing plugin:solution.discuss
    [TRACE] missing plugin:company
    [TRACE] missing plugin:leetcode.cn
    [WARN] Installing missing plugins, might take a while ...
    [TRACE] REQUEST %s {
    uri: 'https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js',
    callback: undefined
    }
    [DEBUG] copying from https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js
    - Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js[TRACE] REQUEST %s make request https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js     
    | Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js[TRACE] REQUEST %s onRequestResponse https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:00 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFC6:77AF:31AAA98:34BD84A:62EFF1E8',
    connection: 'close'
    }
    [TRACE] REQUEST %s redirect https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js
    [TRACE] REQUEST %s redirect to https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js
    [TRACE] REQUEST %s {}
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:00 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFC6:77AF:31AAA98:34BD84A:62EFF1E8',
    connection: 'close'
    }
    [TRACE] REQUEST %s make request https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js
    - Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/solution.discuss.js[TRACE] REQUEST %s onRequestResponse https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js 200 {
    connection: 'close',
    'content-length': '2972',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"25ae5e391e36bd54640e7d743e6a1d357184000dfbe8eb4b4e22a2477a22aa57"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': '24C4:1DAD:4EB6C0:6AA5F3:62EFED0B',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17422-PAO',
    'x-cache': 'MISS',
    'x-cache-hits': '0',
    'x-timer': 'S1659892201.900614,VS0,VE148',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '10b84aefbc2c82c3d38f5ae75f129818b481ca97',
    expires: 'Sun, 07 Aug 2022 17:15:01 GMT',
    'source-age': '0'
    }
    [TRACE] REQUEST %s finish init function https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/solution.discuss.js 200 {
    connection: 'close',
    'content-length': '2972',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"25ae5e391e36bd54640e7d743e6a1d357184000dfbe8eb4b4e22a2477a22aa57"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': '24C4:1DAD:4EB6C0:6AA5F3:62EFED0B',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17422-PAO',
    'x-cache': 'MISS',
    'x-cache-hits': '0',
    'x-timer': 'S1659892201.900614,VS0,VE148',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '10b84aefbc2c82c3d38f5ae75f129818b481ca97',
    expires: 'Sun, 07 Aug 2022 17:15:01 GMT',
    'source-age': '0'
    }
    [DEBUG] copied to C:\Users\psychobolt\AppData\Roaming\nvm\v17.6.0\node_modules\leetcode-cli\lib\plugins\solution.discuss.js
    [TRACE] REQUEST %s {
    uri: 'https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js',
    callback: undefined
    }
    [DEBUG] copying from https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js
    - Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js[TRACE] REQUEST %s make request https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js
    | Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js[TRACE] REQUEST %s onRequestResponse https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFC9:0D48:15AE675:16F1CFC:62EFF1E9',
    connection: 'close'
    }
    [TRACE] REQUEST %s redirect https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js
    [TRACE] REQUEST %s redirect to https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js
    [TRACE] REQUEST %s {}
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFC9:0D48:15AE675:16F1CFC:62EFF1E9',
    connection: 'close'
    }
    [TRACE] REQUEST %s make request https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js
    / Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/company.js[TRACE] REQUEST %s onRequestResponse https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js 200 {
    connection: 'close',
    'content-length': '37596',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"2df4b7d1f666575350c8440911c94a26b22ffc132c8a5d64207be0ba9387fe4e"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': 'BAF2:7901:12DEAB:28463F:62EFED0C',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17458-PAO',
    'x-cache': 'HIT',
    'x-cache-hits': '1',
    'x-timer': 'S1659892201.434600,VS0,VE163',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '6eff5b4593a32d60d5ed015043564f3583321e94',
    expires: 'Sun, 07 Aug 2022 17:15:01 GMT',
    'source-age': '0'
    }
    [TRACE] REQUEST %s finish init function https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/company.js 200 {
    connection: 'close',
    'content-length': '37596',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"2df4b7d1f666575350c8440911c94a26b22ffc132c8a5d64207be0ba9387fe4e"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': 'BAF2:7901:12DEAB:28463F:62EFED0C',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17458-PAO',
    'x-cache': 'HIT',
    'x-cache-hits': '1',
    'x-timer': 'S1659892201.434600,VS0,VE163',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '6eff5b4593a32d60d5ed015043564f3583321e94',
    expires: 'Sun, 07 Aug 2022 17:15:01 GMT',
    'source-age': '0'
    }
    [DEBUG] copied to C:\Users\psychobolt\AppData\Roaming\nvm\v17.6.0\node_modules\leetcode-cli\lib\plugins\company.js
    [TRACE] REQUEST %s {
    uri: 'https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js',
    callback: undefined
    }
    [DEBUG] copying from https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js
    - Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js[TRACE] REQUEST %s make request https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js
    \ Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js[TRACE] REQUEST %s onRequestResponse https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFCB:81A2:33358F6:364AA27:62EFF1E9',
    connection: 'close'
    }
    [TRACE] REQUEST %s redirect https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js
    [TRACE] REQUEST %s redirect to https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js
    [TRACE] REQUEST %s {}
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js 302 {
    server: 'GitHub.com',
    date: 'Sun, 07 Aug 2022 17:10:01 GMT',
    'content-type': 'text/html; charset=utf-8',
    vary: 'X-PJAX, X-PJAX-Container, Turbo-Visit, Turbo-Frame, Accept-Encoding, Accept, X-Requested-With',
    'permissions-policy': 'interest-cohort=()',
    'access-control-allow-origin': 'https://render.githubusercontent.com',
    location: 'https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js',
    'cache-control': 'no-cache',
    'strict-transport-security': 'max-age=31536000; includeSubdomains; preload',
    'x-frame-options': 'deny',
    'x-content-type-options': 'nosniff',
    'x-xss-protection': '0',
    'referrer-policy': 'no-referrer-when-downgrade',
    'expect-ct': 'max-age=2592000, report-uri="https://api.github.com/_private/browser/errors"',
    'content-security-policy': "default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/; connect-src 'self' uploads.github.com objects-origin.githubusercontent.com www.githubstatus.com collector.github.com raw.githubusercontent.com api.github.com github-cloud.s3.amazonaws.com github-production-repository-file-5c1aeb.s3.amazonaws.com github-production-upload-manifest-file-7fdce7.s3.amazonaws.com github-production-user-asset-6210df.s3.amazonaws.com cdn.optimizely.com logx.optimizely.com/v1/events *.actions.githubusercontent.com wss://*.actions.githubusercontent.com online.visualstudio.com/api/v1/locations github-production-repository-image-32fea6.s3.amazonaws.com github-production-release-asset-2e65be.s3.amazonaws.com insights.github.com wss://alive.github.com; font-src github.githubassets.com; form-action 'self' github.com gist.github.com objects-origin.githubusercontent.com; frame-ancestors 'none'; frame-src render.githubusercontent.com viewscreen.githubusercontent.com notebooks.githubusercontent.com; img-src 'self' data: github.githubassets.com identicons.github.com github-cloud.s3.amazonaws.com secured-user-images.githubusercontent.com/ github-production-user-asset-6210df.s3.amazonaws.com customer-stories-feed.github.com spotlights-feed.github.com *.githubusercontent.com; manifest-src 'self'; media-src github.com user-images.githubusercontent.com/ secured-user-images.githubusercontent.com/; script-src github.githubassets.com; style-src 'unsafe-inline' github.githubassets.com; worker-src github.com/assets-cdn/worker/ gist.github.com/assets-cdn/worker/",
    'content-length': '0',
    'x-github-request-id': 'EFCB:81A2:33358F6:364AA27:62EFF1E9',
    connection: 'close'
    }
    [TRACE] REQUEST %s make request https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js
    / Downloading https://github.com/skygragon/leetcode-cli-plugins/raw/master/plugins/leetcode.cn.js[TRACE] REQUEST %s onRequestResponse https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js 200 {
    connection: 'close',
    'content-length': '3890',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"9071f1c049be750ae4a9fa9137f80a0ded4f20f284f81d75cca21292c4131f9f"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': 'A352:3CD0:45E07E:5F6B7B:62EFED0C',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:02 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17455-PAO',
    'x-cache': 'MISS',
    'x-cache-hits': '0',
    'x-timer': 'S1659892202.977594,VS0,VE142',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '3a9303785071abd181c6b995c743c0a4abef4994',
    expires: 'Sun, 07 Aug 2022 17:15:02 GMT',
    'source-age': '0'
    }
    [TRACE] REQUEST %s finish init function https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js
    [TRACE] REQUEST %s response end https://raw.githubusercontent.com/skygragon/leetcode-cli-plugins/master/plugins/leetcode.cn.js 200 {
    connection: 'close',
    'content-length': '3890',
    'cache-control': 'max-age=300',
    'content-security-policy': "default-src 'none'; style-src 'unsafe-inline'; sandbox",
    'content-type': 'text/plain; charset=utf-8',
    etag: '"9071f1c049be750ae4a9fa9137f80a0ded4f20f284f81d75cca21292c4131f9f"',
    'strict-transport-security': 'max-age=31536000',
    'x-content-type-options': 'nosniff',
    'x-frame-options': 'deny',
    'x-xss-protection': '1; mode=block',
    'x-github-request-id': 'A352:3CD0:45E07E:5F6B7B:62EFED0C',
    'accept-ranges': 'bytes',
    date: 'Sun, 07 Aug 2022 17:10:02 GMT',
    via: '1.1 varnish',
    'x-served-by': 'cache-pao17455-PAO',
    'x-cache': 'MISS',
    'x-cache-hits': '0',
    'x-timer': 'S1659892202.977594,VS0,VE142',
    vary: 'Authorization,Accept-Encoding,Origin',
    'access-control-allow-origin': '*',
    'x-fastly-request-id': '3a9303785071abd181c6b995c743c0a4abef4994',
    expires: 'Sun, 07 Aug 2022 17:15:02 GMT',
    'source-age': '0'
    }
    [DEBUG] copied to C:\Users\psychobolt\AppData\Roaming\nvm\v17.6.0\node_modules\leetcode-cli\lib\plugins\leetcode.cn.js
    [TRACE] initializing all plugins
    [TRACE] found plugin: cache=default
    [TRACE] found plugin: company=2017.12.18
    [TRACE] found plugin: leetcode.cn=2018.11.25
    [TRACE] found plugin: leetcode=default
    [TRACE] found plugin: retry=default
    [TRACE] found plugin: solution.discuss=2019.02.03
    [TRACE] inited plugin: leetcode
    [TRACE] skipped plugin: leetcode.cn
    [TRACE] inited plugin: retry
    [TRACE] inited plugin: cache
    [TRACE] inited plugin: company
    [TRACE] inited plugin: solution.discuss
    [DEBUG] cache hit: problems.json
    [DEBUG] running leetcode.getProblem
    - Downloading array-partition-i[TRACE] REQUEST %s {
    url: 'https://leetcode.com/graphql',
    headers: {
    Cookie: <hidden>,
    'X-CSRFToken': <hidden>,
    'X-Requested-With': 'XMLHttpRequest',
    Origin: 'https://leetcode.com',
    Referer: 'https://leetcode.com/problems/array-partition-i/description/'
    },
    json: true,
    body: {
    query: 'query getQuestionDetail($titleSlug: String!) {\n' +
      '  question(titleSlug: $titleSlug) {\n' +
      '    content\n' +
      '    stats\n' +
      '    codeDefinition\n' +
      '    sampleTestCase\n' +
      '    enableRunCode\n' +
      '    metaData\n' +
      '    translatedContent\n' +
      '  }\n' +
      '}',
    variables: { titleSlug: 'array-partition-i' },
    operationName: 'getQuestionDetail'
    },
    callback: [Function (anonymous)],
    method: 'POST'
    }
    (node:16204) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
    (Use `node --trace-warnings ...` to show where the warning was created)
    [TRACE] REQUEST %s make request https://leetcode.com/graphql
    | Downloading array-partition-i[TRACE] REQUEST %s onRequestResponse https://leetcode.com/graphql 200 {
    date: 'Sun, 07 Aug 2022 17:10:08 GMT',
    'content-type': 'application/json',
    'content-length': '147',
    connection: 'close',
    vary: 'Cookie',
    'x-frame-options': 'DENY',
    'set-cookie': [
    'csrftoken=HIDDEN'
    ],
    'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
    'content-security-policy': "frame-ancestors 'self' https://*.leetcode.com https://leetcode.com https://www.growingio.com",
    'cf-cache-status': 'DYNAMIC',
    'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
    'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=2h1cOIqqAB%2F0G%2Bv32PytlAhXfcgXLYIrlCU1z8P1sk%2Fckl0abjZ6icZAn9%2Ft2CasONYncQjphcrBIXtHSTgXlthNxT%2F1u5VM%2BEGMH7NPRhJWMfSdSn7YHBKrtGmV7HGKz9pTParKl5G6XQ%3D%3D"}],"group":"cf-nel","max_age":604800}',
    nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
    'x-content-type-options': 'nosniff',
    server: 'cloudflare',
    'cf-ray': '73719fa49b6f7d68-LAX'
    }
    [TRACE] REQUEST %s reading response's body
    [TRACE] REQUEST %s finish init function https://leetcode.com/graphql
    [TRACE] REQUEST %s response end https://leetcode.com/graphql 200 {
    date: 'Sun, 07 Aug 2022 17:10:08 GMT',
    'content-type': 'application/json',
    'content-length': '147',
    connection: 'close',
    vary: 'Cookie',
    'x-frame-options': 'DENY',
    'set-cookie': [
    'csrftoken=HIDDEN'
    ],
    'strict-transport-security': 'max-age=31536000; includeSubDomains; preload',
    'content-security-policy': "frame-ancestors 'self' https://*.leetcode.com https://leetcode.com https://www.growingio.com",
    'cf-cache-status': 'DYNAMIC',
    'expect-ct': 'max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"',
    'report-to': '{"endpoints":[{"url":"https:\\/\\/a.nel.cloudflare.com\\/report\\/v3?s=2h1cOIqqAB%2F0G%2Bv32PytlAhXfcgXLYIrlCU1z8P1sk%2Fckl0abjZ6icZAn9%2Ft2CasONYncQjphcrBIXtHSTgXlthNxT%2F1u5VM%2BEGMH7NPRhJWMfSdSn7YHBKrtGmV7HGKz9pTParKl5G6XQ%3D%3D"}],"group":"cf-nel","max_age":604800}',
    nel: '{"success_fraction":0,"report_to":"cf-nel","max_age":604800}',
    'x-content-type-options': 'nosniff',
    server: 'cloudflare',
    'cf-ray': '73719fa49b6f7d68-LAX'
    }
    [TRACE] REQUEST %s end event https://leetcode.com/graphql
    [TRACE] REQUEST %s has body https://leetcode.com/graphql 147
    [TRACE] REQUEST %s emitting complete https://leetcode.com/graphql
    [ERROR] failed to load problem!

Environment

psychobolt commented 2 years ago

Further research and debugging, I found that using the array-partition-i used to fetch problem (query getQuestionDetail($titleSlug: String!)) is not valid for question 561, because it expects array-partition (as seen from question__title_slug https://leetcode.com/api/problems/algorithms/). Clearing the cache and redownloading the problems seem to resolve the issue