leetpress icon indicating copy to clipboard operation
leetpress copied to clipboard

It will pop up an error when hits question 275.

Open kenshinji opened this issue 5 years ago • 3 comments

Error occured. Please open LeetCode with browser to check if problem loads correctly, then run again.
(node:94705) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): StatusCodeError: 302 - "<html>\r\n<head><title>302 Found</title></head>\r\n<body>\r\n<center><h1>302 Found</h1></center>\r\n<hr><center>nginx/1.15.6</center>\r\n</body>\r\n</html>\r\n"
(node:94705) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

kenshinji avatar Sep 10 '19 02:09 kenshinji

Limited by LeetCode. Just have a reset and start again. See FAQ.

Sneezry avatar Sep 10 '19 02:09 Sneezry

@Sneezry Don't you think it would be a better idea if things like this happens, then let the program sleeps, say 5 secs, then continue request the rest content?

kenshinji avatar Sep 10 '19 06:09 kenshinji

Good suggestion. However, I haven't learnt deeply about LeetCode anti-spider rule, so I just throw the error roughly. Then I reopen this issue for further discussion.

Sneezry avatar Sep 10 '19 11:09 Sneezry