Sneezry / leetpress

MIT License
15 stars 0 forks source link

It will pop up an error when hits question 275. #3

Open kenshinji opened 5 years ago

kenshinji commented 5 years ago
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.
Sneezry commented 5 years ago

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

kenshinji commented 5 years ago

@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?

Sneezry commented 5 years ago

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.