Finish and error to: Error Domain=NSURLErrorDomain Code=-1001 "请求超时。

本文介绍了一种常见的网络请求超时错误(ErrorDomain=NSURLErrorDomainCode=-1001),并提供了详细的排查步骤。首先确认服务器状态,然后检查网络连接情况。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误显示:Finish and error to: Error Domain=NSURLErrorDomain Code=-1001 "请求超时。" UserInfo={NSUnderlyingError=0x17024a500 {Error Domain=kCFErrorDomainCFNetwork Code=-1001 "请求超时。" UserInfo={NSErrorFailingURLStringKey=http://192.168.10.106/content/fileroot/museum/xmt_museum/data/ios/xmt_museum.zip, NSErrorFailingURLKey=http://192.168.10.106/content/fileroot/museum/xmt_museum/data/ios/xmt_museum.zip

 

修改方法:首先要看后台服务器是否工作,直接复制网址“192.168.10.106/content/fileroot/museum/xmt_museum/data/ios/xmt_museum.zip”到浏览器,查看能否得到数据,如果没有得到数据则证明后台服务器有错误,直接找后台协商;如果获取到数据证证明后台服务器没问题,接下来就要查看你的网络了,查看你的网络是否正常工作。(如果网络速度较慢,加载的文件较大,也会出现该类错误)。

转载于:https://www.cnblogs.com/Yun-Longcom/p/6274442.html

warning: sys-info@0.9.1: c/linux.c:96:11: error: call to undeclared library function 'index' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] warning: sys-info@0.9.1: 96 | mount = index(procline, ' '); warning: sys-info@0.9.1: | ^ warning: sys-info@0.9.1: c/linux.c:96:11: note: include the header <strings.h> or explicitly provide a declaration for 'index' warning: sys-info@0.9.1: 1 error generated. error: failed to run custom build command for `sys-info v0.9.1` Caused by: process didn't exit successfully: `/data/data/com.termux/files/home/uv/target/release/build/sys-info-71663c4fe1c5422a/build-script-build` (exit status: 1) --- stdout OUT_DIR = Some(/data/data/com.termux/files/home/uv/target/release/build/sys-info-37439f1d31a224ca/out) OPT_LEVEL = Some(3) TARGET = Some(aarch64-linux-android) HOST = Some(aarch64-linux-android) cargo:rerun-if-env-changed=CC_aarch64-linux-android CC_aarch64-linux-android = None cargo:rerun-if-env-changed=CC_aarch64_linux_android CC_aarch64_linux_android = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT RUSTC_WRAPPER = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some(false) cargo:rerun-if-env-changed=CFLAGS_aarch64-linux-android CFLAGS_aarch64-linux-android = None cargo:rerun-if-env-changed=CFLAGS_aarch64_linux_android CFLAGS_aarch64_linux_android = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = Some(-D_GNU_SOURCE) cargo:rerun-if-env-changed=CC_SHELL_ESCAPED_FLAGS CC_SHELL_ESCAPED_FLAGS = None CARGO_ENCODED_RUSTFLAGS = Some() cargo:warning=c/linux.c:96:11: error: call to undeclared library function 'index' with type 'char *(const char *, int)'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] cargo:warning= 96 | mount = index(procline, ' '); cargo:warning= | ^ cargo:warning=c/linux.c:96:11: note: include the header <strings.h> or explicitly provide a declaration for 'index' cargo:warning=1 error generated. --- stderr error occurred in cc-rs: Command LC_ALL="C" "aarch64-linux-android-gcc" "-O3" "-DANDROID" "-ffunction-sections" "-fdata-sections" "-fPIC" "-D_GNU_SOURCE" "-o" "/data/data/com.termux/files/home/uv/target/release/build/sys-info-37439f1d31a224ca/out/a1edd97dd51cd48d-linux.o" "-c" "c/linux.c" with args aarch64-linux-android-gcc did not execute successfully (status code exit status: 1). warning: build failed, waiting for other jobs to finish... 又是什么问题
07-12
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值