报错如下,提示如下
Failed to fetch models from remote server. Make sure server address is correct and <server_uri>/info/ is accessible in browser.
Message: Status: 403; Response: <!DOCTYPE html><html lang="en-US"><head><title>Just a moment...</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta http-equiv="X-UA-Compatible" content="IE=Edge"><meta name="robots" content="noindex,nofollow"><meta name="viewport" content="width=device-width,initial-scale=1"><style>*{box-sizing:border-box;margin:0;padding:0}html{line-height:1.15;-webkit-text-size-adjust:100%;color:#313131;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}body{display:flex;flex-direction:column;height:100vh;min-height:100vh}.main-content{margin:8rem auto;max-width:60rem;padding-left:1.5rem}@media (width <= 720px){.main-content{margin-top:4rem}}.h2{font-size:1.5rem;font-weight:500;line-height:2.25rem}@media (width <= 720px){.h2{font-size:1.25rem;line-height:1.5rem}}#challenge-error-text{background-image:xxxxxxxxxxx);background-repeat:no-repeat;background-size:contain;padding-left:34px}@media (prefers-color-scheme:dark){body{background-color:#222;color:#d9d9d9}}</style><meta http-equiv="refresh" content="360"></head><body><div class="main-wrapper" role="main"><div class="main-content"><noscript><div class="h2"><span id="challenge-error-text">Enable JavaScript and cookies to continue</span></div></noscript></div></div><script>(function(){window._cf_chl_opt={cvId: '3',cZone: "bucmmonai.beginner.center",cType: 'managed',cRay: '9410dcca8ecadbb1',cH: 'Cbh9PXqkiOMF7SPQYS22JzKCd2OMNewGRfYjmTH92hI-1747461290-1.2.1.1-mBvUpTJI1wxWQTg4r2aVqBeXU0Inc8DugEhm4SzQ.k9qxIj.xSe8Bh63rDoXBWKI',cUPMDTk: "\/info\/?__cf_chl_tk=Jktd5fIaloEbwkSpUFUwNYOz8L3Hyl1uvxxzyWootNI-1747461290-1.0.1.1-2xfzFBy1i9iB2dcroYgkc3CwC1x3ODSIMcoudII1yS4",cFPWv: 'g',cITimeS: '1747461290',cTplC: 0,cTplV: 5,cTplB: 'cf',fa: "\/info\/?__cf_chl_f_tk=Jktd5fIaloEbwkSpUFUwNYOz8L3Hyl1uvxxzyWootNI-1747461290-1.0.1.1-2xfzFBy1i9iB2dcroYgkc3CwC1x3ODSIMcoudII1yS4",md: xxxxxxxx"};var cpo = document.createElement('script');cpo.src = '/cdn-cgi/challenge-platform/h/g/orchestrate/chl_page/v1?ray=9410dcca8ecadbb1';window._cf_chl_opt.cOgUHash = location.hash === '' && location.href.indexOf('#') !== -1 ? '#' : location.hash;window._cf_chl_opt.cOgUQuery = location.search === '' && location.href.slice(0, location.href.length - window._cf_chl_opt.cOgUHash.length).indexOf('?') !== -1 ? '?' : location.search;if (window.history && window.history.replaceState) {var ogU = location.pathname + window._cf_chl_opt.cOgUQuery + window._cf_chl_opt.cOgUHash;history.replaceState(null, null, "\/info\/?__cf_chl_rt_tk=Jktd5fIaloEbwkSpUFUwNYOz8L3Hyl1uvxxzyWootNI-1747461290-1.0.1.1-2xfzFBy1i9iB2dcroYgkc3CwC1x3ODSIMcoudII1yS4" + window._cf_chl_opt.cOgUHash);cpo.onload = function() {history.replaceState(null, null, ogU);}}document.getElementsByTagName('head')[0].appendChild(cpo);}());</script></body></html>
原因
- 你访问的服务器前面有 Cloudflare 防护。
- Cloudflare 检测到你的请求不是正常浏览器(比如是脚本、API 客户端),所以要求通过 JS 验证和 Cookie 检查。
- 你的程序无法自动通过这个验证,所以被拒绝访问。
解决方法
目前看无解,开了cf以后,默认会通过js校验各种安全信息,slicer不具备这些环境
所以还是老老实实用ip连接吧