Uploading artifacts as “archive“ to coordinator... too large archive id=139218 responseStatus=413

git 跑pipline,突然报错入参 无法打包运行。

Uploading artifacts as "archive" to coordinator... too large archive id=139218 responseStatus=413 Request Entity Too Large status=413 token=3NHeeovj

解决方法:

使用管理员账号登陆gitlab,进入Admin Area,Setting,CICD,

找到“Continuous Integration and Deployment" 点击 ”Exand"按钮展开,

找到 Maximum artifacts size (MB)  

这里默认是100M,将其放大到1000M,问题解决

在上传文件到服务器时出现错误,若需查看 `InnerException` 获取更多信息,可参考以下两种情况处理: - **使用 `StreamWriter` 时**:若使用 `StreamWriter` 上传文件,当尝试创建不存在的文件目录会失败并引发异常,由于使用了 `await`,异常会被封装在 `AggregateException` 中。在 `catch` 块里,使用 `ex.InnerException.Message` 来获取实际的异常信息。示例代码如下: ```csharp try { // 模拟使用 StreamWriter 操作 // StreamWriter writer = new StreamWriter("nonexistent_directory/file.txt"); // 此处应添加实际的文件上传代码 } catch (AggregateException ex) { Console.WriteLine(ex.InnerException.Message); } ``` - **任务并行库编程时**:在任务并行库中,若对任务运行 `Wait`、`WaitAny`、`WaitAll` 等方法,或者求 `Result` 属性,都可能捕获到 `AggregateException` 异常。可将 `AggregateException` 异常看作是任务并行库编程中最上层的异常,任务中捕获的异常最终都会包装到 `AggregateException` 中。在 `catch` 块中遍历 `InnerExceptions` 获取详细信息。示例代码如下: ```csharp Task t = new Task(() => { // 模拟上传文件时抛出异常 throw new Exception("上传文件时产生的未知异常"); }); t.Start(); try { t.Wait(); } catch (AggregateException e) { foreach (var item in e.InnerExceptions) { Console.WriteLine("异常类型:{0}{1}来自: {2}{3}异常内容:{4}", item.GetType(), Environment.NewLine, item.Source, Environment.NewLine, item.Message); } } ```
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值