5.9K Star 11.6K Fork 4K

GVPdotNET China / Furion

 / 详情

This instance has already started one or more requests. Properties can only be modified before sending the first request.

已完成
创建于  
2022-09-29 19:45

💢 特别说明:如果 Issue 没有严格按照模板编写且未提供测试源码下载或 Git 测试仓库地址,则视为无效 Issue,将无法得到答复。

Furion 版本号

哪个版本号?
4.5.1

.NET SDK 版本号

  • .NET5
  • .NET6
  • .NET7

Web 项目类型

  • WebApi
  • Mvc
  • Razor Pages
  • Blazor Server
  • MinApp

操作系统和版本

  • Windows(版本)
  • Linux(版本)
  • MacOS(版本)
  • 其他(版本)

代码环境

  • 开发环境(Development)
  • 生产环境(Production)
  • 测试环境(Tests/单元测试/集成测试 )

描述你的问题

发生了什么?
第一次http请求成功 第二次报错
This instance has already started one or more requests. Properties can only be modified before sending the first request.
之前的代码可以的

异常堆栈信息

异常堆栈是什么?

System.InvalidOperationException: This instance has already started one or more requests. Properties can only be modified before sending the first request.
         at System.Net.Http.HttpClient.CheckDisposedOrStarted()
         at System.Net.Http.HttpClient.set_Timeout(TimeSpan value)
         at Furion.RemoteRequest.HttpRequestPart.SendAsync(CancellationToken cancellationToken)
         at Furion.RemoteRequest.HttpRequestPart.SendAsStringAsync(CancellationToken cancellationToken)
         at HttpClient.Application.SystemAppService.GetDescription() in C:\Users\Administrator\Desktop\HttpClient\HttpClient\HttpClient.Application\System\SystemAppService.cs:line 25
         at lambda_method15(Closure , Object )
         at Microsoft.AspNetCore.Mvc.Infrastructure.ActionMethodExecutor.AwaitableObjectResultExecutor.Execute(IActionResultTypeMapper mapper, ObjectMethodExecutor executor, Object controller, Object[] arguments)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeActionMethodAsync>g__Logged|12_1(ControllerActionInvoker invoker)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeNextActionFilterAsync>g__Awaited|10_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Rethrow(ActionExecutedContextSealed context)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.Next(State& next, Scope& scope, Object& state, Boolean& isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ControllerActionInvoker.<InvokeInnerFilterAsync>g__Awaited|13_0(ControllerActionInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)
         at Microsoft.AspNetCore.Mvc.Infrastructure.ResourceInvoker.<InvokeNextExceptionFilterAsync>g__Awaited|26_0(ResourceInvoker invoker, Task lastTask, State next, Scope scope, Object state, Boolean isCompleted)

测试项目代码

⚠⚠ 必须提供完整可运行且包含错误的 Git 仓库 DEMO,DEMO 提供最简单的错误逻辑代码,否则将无法得到答复。⚠⚠

您的代码下载地址?


数据库信息

  • Sqlite
  • SqlServer
  • Mysql
  • Oracle
  • PGSql
  • Firebird
  • Cosmos

期待结果

期待的结果是?


评论 (5)

郑宜扬 创建了任务

Furion 版本号和详细堆栈补齐再来,请认真写 Issue

郑宜扬 修改了描述
郑宜扬 修改了描述
郑宜扬 修改了描述

晚上我测试一下,如果有问题我就修复,明天早上给你发一个版本。

tccgit 修改了描述
tccgit 修改了描述
百小僧 修改了描述

已修正,确认是 Furion v4.4.8+ 版本后导致的问题,v4.4.7(含)之前版本正常:8baac51

最快今晚发布,最慢明天早上11点之前。

百小僧 里程碑设置为v4.5.2
百小僧 任务状态待办的 修改为已完成
郑宜扬 修改了描述

Furion v4.5.2 已发布,已修正。

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
974299 monksoul 1578937227
C#
1
https://gitee.com/dotnetchina/Furion.git
git@gitee.com:dotnetchina/Furion.git
dotnetchina
Furion
Furion

搜索帮助