Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/iotexproject/iotex-bootstrap/blob/master/184_patch/patch.sh should retry if failed to download #244

Open
raullenchai opened this issue Jan 9, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@raullenchai
Copy link
Member

raullenchai commented Jan 9, 2023

Otherwise it may download an incapable file like this

xxxxxx:~/iotex-var/data# cat 21522640.patch
<html>
<head><title>502 Bad Gateway</title></head>
<body>
<center><h1>502 Bad Gateway</h1></center>
<hr><center>nginx</center>
<script>(function(){var js = "window['__CF$cv$params']={r:'786f95106dc8c470',m:'ZPAwTJYvgQY0tgj_QsOpdlk8P4x1XTBedn7_OcSrcSQ-1673292572-0-AYVyQkBIEqo8YHPf7uFiXri7q6/ec30QKJNNBKnwnZsMl3TRlxi/QcvQZkAmvdxUxJjOJtlKBTOZ13cfYDG2ZPgzK3oVmTuyjnvCYio+MhrFzxlkYrnu0YGFCFaav0jBFA==',s:[0x99ceb23ed8,0x5a0a97cf42],u:'/cdn-cgi/challenge-platform/h/b'};var now=Date.now()/1000,offset=14400,ts=''+(Math.floor(now)-Math.floor(now%offset)),_cpo=document.createElement('script');_cpo.nonce='',_cpo.src='/cdn-cgi/challenge-platform/h/b/scripts/alpha/invisible.js?ts='+ts,document.getElementsByTagName('head')[0].appendChild(_cpo);";var _0xh = document.createElement('iframe');_0xh.height = 1;_0xh.width = 1;_0xh.style.position = 'absolute';_0xh.style.top = 0;_0xh.style.left = 0;_0xh.style.border = 'none';_0xh.style.visibility = 'hidden';document.body.appendChild(_0xh);function handler() {var _0xi = _0xh.contentDocument || _0xh.contentWindow.document;if (_0xi) {var _0xj = _0xi.createElement('script');_0xj.nonce = '';_0xj.innerHTML = js;_0xi.getElementsByTagName('head')[0].appendChild(_0xj);}}if (document.readyState !== 'loading') {handler();} else if (window.addEventListener) {document.addEventListener('DOMContentLoaded', handler);} else {var prev = document.onreadystatechange || function () {};document.onreadystatechange = function (e) {prev(e);if (document.readyState !== 'loading') {document.onreadystatechange = prev;handler();}};}})();</script></body>
</html>
@raullenchai raullenchai added the enhancement New feature or request label Jan 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants