Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

GraphMinimalPermissionsPlugin: permissions service returns 403 "Ip Forbidden" from several networks in Spain

已关闭
#1,917 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

维护者通常 1 天内回复

@waldekmastykarz 已经在做这个了。

开始于 2026年10月9日。

评估

这个 Issue 还没有评估数据。

描述

Description

When stopping a recording with GraphMinimalPermissionsPlugin, no minimal permissions are reported. The plugin fails because the external permissions service responds with an HTML 403 Ip Forbidden page instead of JSON. We tested from three different networks in Spain (home broadband, an office network and a mobile phone hotspot) with the same result, and a teammate hit the same error on their own setup.

Expected behaviour

The minimal permissions for the recorded requests are reported.

Actual behaviour

No permissions are reported. Dev Proxy prints:

An error has occurred while retrieving minimal permissions:
System.Text.Json.JsonException: '<' is an invalid start of a value.

Calling the service directly (outside Dev Proxy) shows the cause: the response is HTTP/1.1 403 Ip Forbidden with an x-ms-forbidden-ip header, which suggests an IP restriction on the service side. (I've left out the IP address on purpose.)

Steps to reproduce
  1. Enable GraphMinimalPermissionsPlugin (tested with type: delegated and type: application).
  2. Run devproxy --urls-to-watch https://graph.microsoft.com/* --record.
  3. Send a few Graph requests (sites, lists, columns, items, drives).
  4. Stop the recording.
Dev Proxy Version

3.3.1

Operating system (environment)

Windows

Shell

PowerShell

Configuration file

{
"plugins": [
{
"name": "GraphMinimalPermissionsPlugin",
"enabled": true,
"pluginPath": "~appFolder/plugins/DevProxy.Plugins.dll",
"configSection": "graphMinimalPermissionsPlugin"
}
],
"urlsToWatch": ["https://graph.microsoft.com/*"],
"graphMinimalPermissionsPlugin": {
"type": "application"
}
}

Additional Info

Possibly related to #1012, where the service URL had changed. Is the permissions service restricted by IP or region on purpose? If so, it would help if the plugin reported a clear message instead of a JSON parsing error.

主要语言
C#
星标
832
派生
90
平均合并
12 小时 53 分钟
30 天内合并 PR
44

环境准备

  • 提供 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

dotnet/dev-proxy 的其他 Issue

查看 dotnet/dev-proxy 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。