mirror of
https://jihulab.com/DGP-Studio/Snap.Hutao.Docs.git
synced 2025-11-19 21:16:31 +08:00
2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{_ as i,Y as r,Z as a,$ as e,a0 as o,a1 as n,a3 as l,F as s}from"./framework-8be3ab77.js";const c={},d=e("h1",{id:"common-program-exceptions",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#common-program-exceptions","aria-hidden":"true"},"#"),o(" Common Program Exceptions")],-1),h=e("p",null,[o("该文档包含由"),e("strong",null,"用户端错误"),o("造成的问题 This document covers solutions of "),e("strong",null,"foreseeable client error")],-1),u=e("h2",{id:"runtimeenvironmentexception",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#runtimeenvironmentexception","aria-hidden":"true"},"#"),o(" RuntimeEnvironmentException")],-1),p=e("li",null,[o("Exception: "),e("code",null,"RuntimeEnvironmentException"),e("ul",null,[e("li",null,[o("Hint: "),e("code",null,"Unable to set registry key without enabling long path")])])],-1),_=e("li",null,"Issue source: Windows long path limit is set to be limited at 256 characters by default",-1),m={href:"https://d.hut.ao/d/tools/EnableLongPaths.zip",target:"_blank",rel:"noopener noreferrer"},f=e("code",null,".reg",-1),b=l('<h2 id="return-code-10001" tabindex="-1"><a class="header-anchor" href="#return-code-10001" aria-hidden="true">#</a> Return Code: -10001</h2><ul><li>This error comes directly from MiHoYo BBS, hints include <ul><li><code>Return Code: -10001</code></li><li><code>Return Code: -100</code></li></ul></li><li>Issue source <ol><li>Cookie expired</li><li>Network error</li><li>System time is not accurate</li></ol></li><li>Solution <ol><li>在帐号面板中,点击<code>刷新 Cookie</code></li><li>删除帐号后重新添加米游社帐号</li><li>在系统设置中启用自动同步时间并立刻同步时间</li></ol></li></ul><h2 id="httprequestexception-元数据校验文件下载失败" tabindex="-1"><a class="header-anchor" href="#httprequestexception-元数据校验文件下载失败" aria-hidden="true">#</a> HttpRequestException 元数据校验文件下载失败</h2><h3 id="_403-forbidden" tabindex="-1"><a class="header-anchor" href="#_403-forbidden" aria-hidden="true">#</a> 403 (Forbidden)</h3>',4),x={href:"https://apps.microsoft.com/store/detail/snap-hutao/9PH4NXJ2JN52",target:"_blank",rel:"noopener noreferrer"},g=e("h3",{id:"_502-bad-gateway",tabindex:"-1"},[e("a",{class:"header-anchor",href:"#_502-bad-gateway","aria-hidden":"true"},"#"),o(" 502 (Bad Gateway)")],-1),k={href:"https://github.com/DGP-Studio/Snap.Hutao/issues/100",target:"_blank",rel:"noopener noreferrer"},w=e("p",null,[o("当胡桃工具箱无法从远程服务器获取到必要资源时(通常是配置文件和图片缓存),会在用户界面抛出如下图所示的 "),e("code",null,"HttpRequestException"),o(" 错误。")],-1),E=e("p",null,[e("img",{src:"https://img.alicdn.com/imgextra/i3/1797064093/O1CN01Tb2RUm1g6du5YeNuy_!!1797064093.jpg",alt:"HttpRequestException",loading:"lazy"})],-1),y=e("p",null,"当你遇到该情况,且已经确定本地网络没有互联网连接问题时,请检查是否启用了系统代理程序。如果是,请关闭。胡桃工具箱的远程服务器在全世界范围内都有类似的体验效果, 你无需为了胡桃工具箱的网络连接而使用代理网络。",-1),C={href:"https://www.telerik.com/fiddler/add-ons",target:"_blank",rel:"noopener noreferrer"},N={href:"https://learn.microsoft.com/zh-CN/windows/iot-core/develop-your-app/loopback",target:"_blank",rel:"noopener noreferrer"};function v(R,S){const t=s("ExternalLinkIcon");return r(),a("div",null,[d,h,u,e("ul",null,[p,_,e("li",null,[o("Solution: Download "),e("a",m,[o("EnableLongPaths.zip"),n(t)]),o(", unzip it and run "),f,o(" file as administrator")])]),b,e("p",null,[o("解决方案:更新胡桃工具箱至"),e("a",x,[o("最新版本"),n(t)])]),g,e("blockquote",null,[e("p",null,[o("相关 Issue: "),e("a",k,[o("https://github.com/DGP-Studio/Snap.Hutao/issues/100"),n(t)])])]),w,E,y,e("p",null,[o("如果系统代理是你的网络必须选项,请关闭系统代理而使用 TUN 模式代理;或者也可以通过 "),e("a",C,[o("Windows 8 AppContainer Loopback Utility"),n(t)]),o(" 解除 "),e("a",N,[o("Windows APP Container Loopback 的限制"),n(t)]),o(" 。")])])}const P=i(c,[["render",v],["__file","exceptions.html.vue"]]);export{P as default};
|