AnonymousAuthenticationProvider causes HTTP layer to throw error
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 45/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 停滞
- 技术栈
- ruby
调研方向
从 anonymous_authentication_provider.rb 和 faraday_request_adapter.rb:52 处的调用开始,然后使用报告中的 PostsClient 代码片段重现该问题。检查 authenticate_request 的返回值,并验证匿名 provider 不再导致 HTTP 层对 nil 调用 resume,且请求能够成功完成。
由索引模型根据 Issue 内容生成。
描述
auth_provider = MicrosoftKiotaAbstractions::AnonymousAuthenticationProvider.new()
request_adapter = MicrosoftKiotaFaraday::FaradayRequestAdapter.new(auth_provider)
client = Client::PostsClient.new(request_adapter)
all_posts = client.posts_by_id("5").get.resume
This results in the following error:
/home/jasonjoh/.rbenv/versions/3.1.2/lib/ruby/gems/3.1.0/gems/microsoft_kiota_faraday-0.11.0/lib/microsoft_kiota_faraday/faraday_request_adapter.rb:52:in `block in send_async': undefined method `resume' for nil:NilClass (NoMethodError)
@authentication_provider.authenticate_request(request_info).resume
As a test, I modified anonymous_authentication_provider.rb, changing the authenticate_request to:
def authenticate_request(request)
Fiber.new do
end
end
And that resolved the error.
- 主要语言
- Ruby
- 星标
- 5
- 派生
- 8
- 平均合并
- 1 天 13 小时
- 30 天内合并 PR
- 26
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
microsoft/kiota-ruby 的其他 Issue
-
难度 4/5 3-5 天 新手友好度 35/100
microsoft/kiota-ruby#74 ·
维护者通常 1 天内回复
-
help wanted ruby type:bug
难度 4/5 3-5 天 新手友好度 35/100
microsoft/kiota-ruby#58 ·
维护者通常 1 天内回复
-
http - RetryHandler MUST respect retry-after: <date>可能已有人在做 @voidstackloop 于 36 天前认领。 未关闭enhancement help wanted type:enhancement
难度 3/5 1-2 天 新手友好度 45/100
microsoft/kiota-ruby#126 · 3 条评论 ·
维护者通常 1 天内回复
-
enhancement help wanted type:enhancement
难度 4/5 3-5 天 新手友好度 35/100
microsoft/kiota-ruby#127 ·
维护者通常 1 天内回复
-
难度 3/5 1-2 天 新手友好度 45/100
microsoft/kiota-ruby#129 ·
维护者通常 1 天内回复
查看 microsoft/kiota-ruby 的全部 Issue
相似的 Issue
-
Bug: Assistant replies lose the space before numbers ("Oct7", "as of10-22-2026") with OpenAI models未关闭
难度 2/5 1-3 小时 新手友好度 84/100
we-promise/sure#4441 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 70/100
lugassawan/swe-workbench#823 ·
维护者通常 1 天内回复
-
Admin user page looks up a Tag for every instance-scoped role (`Role#resource_name`)可能已有人在做 @pkfrank 今天认领。 未关闭bug
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
rubyjs/mini_racer#449 ·
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复