leetpress
leetpress copied to clipboard
It will pop up an error when hits question 275.
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.
Limited by LeetCode. Just have a reset and start again. See FAQ.
@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?
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.