- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我目前正在从 Outlook API 迁移到 Microsoft Graph API,当我尝试像订阅 Outlook 那样订阅日历和事件的推送通知时,我得到一个错误:
{
"error": {
"code": "InternalServerError",
"message": "Object reference not set to an instance of an object.",
"innerError": {
"request-id": "130ef895-4741-472e-9155-73fcb38a487f",
"date": "2017-07-14T11:40:11"
}
}
}
我使用端点进行身份验证:
https://login.microsoftonline.com/common/oauth2/v2.0/authorize
当我发送请求时:
https://graph.microsoft.com/v1.0/subscriptions
{
"id": null,
"resource": "users/me/events/calendars/{calendarId}/events",
"notificationUrl": "https://myapp:8080/MyService/notifications/",
"clientState": null,
"@odata.type": null,
"@odata.id": null,
"@odata.context": null,
"changeType": "created,updated,deleted",
"expirationDateTime": "2017-07-19T11:40:10Z"
}
我发现有几个案例有同样的错误,但它们完全在不同的领域(不是订阅)。这里有什么问题?我试着回答这个问题:"Resource not found for the segment" using Graph subscription beta , 但是,该解决方案不适用于我的情况。
最佳答案
删除负载中设置为 null
的所有字段。像这样制作你的有效负载:
{
"resource": "users/me/events/calendars/{calendarId}/events",
"notificationUrl": "https://myapp:8080/MyService/notifications/",
"changeType": "created,updated,deleted",
"expirationDateTime": "2017-07-19T11:40:10Z"
}
关于java - Microsoft Graph API 在订阅请求时给出 InternalServerError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45102429/
我们一直在ElasticSearch中的随机查询上随机出现以下错误。 { \"status\":500, \"displayName\":\"InternalServerError\", \"mess
部署 ARM 时,其中部署了应用服务计划、存储、具有 2 个功能的功能应用程序。我在部署 2 个函数时遇到错误: { "status": "Failed", "error": { "code"
部署 ARM 时,其中部署了应用服务计划、存储、具有 2 个功能的功能应用程序。我在部署 2 个函数时遇到错误: { "status": "Failed", "error": { "code"
我使用 Sagemaker 对时间序列执行二元分类,每个样本都是形状为 [24,11](24h,11 个特征)的 numpy 数组。我在脚本模式下使用了 tensorflow 模型,我的脚本与我用作引
将缩略图卡发送到电报 channel 会产生以下异常。这在模拟器中运行良好。 操作返回无效状态代码“InternalServerError” 这是卡的代码: var Card = new Thumbn
使用: SDK 语言:C# SDK 版本:4.1.5 环境:本地主机、Azure channel :网络聊天 问题描述 在 Bot Framework Emulator V4 中测试机器人时,它确实按
我一直在遵循本指南来克隆现有应用程序。我通过 Docker 运行 Az Powershell 模块。 这是我运行的内容: $destapp = New-AzWebApp -ResourceGroupN
管道的设置是从存储在 Azure Blob 存储中的 .csv 文件到 Azure SQL 数据库表的简单导入。当我使用门户中的“调试”按钮在“调试”中运行管道时,作业将在 8 秒内完成。当我使用立即
我一直在遵循本指南来克隆现有应用程序。我通过 Docker 运行 Az Powershell 模块。 这是我运行的内容: $destapp = New-AzWebApp -ResourceGroupN
管道的设置是从存储在 Azure Blob 存储中的 .csv 文件到 Azure SQL 数据库表的简单导入。当我使用门户中的“调试”按钮在“调试”中运行管道时,作业将在 8 秒内完成。当我使用立即
从今天开始,我遇到了 GCM“订阅主题”的以下问题。Nexus 6、Android 6.0.1、Google Play 服务 9.0.83在应用程序中使用 google-play-services:8
我目前正在从 Outlook API 迁移到 Microsoft Graph API,当我尝试像订阅 Outlook 那样订阅日历和事件的推送通知时,我得到一个错误: { "error": { "co
我的机器人突然停止运行...... 我使用 botframework luis.ai c# 创建了一个机器人。我已经部署在 azure 中。 该机器人工作得很好,但现在当我向我的机器人发送消息时,我收
我正在尝试将 GET 请求发送到以下 API 端点: https://api.mediahound.com/1.3/search/all?PARAM_STRING https://api.mediah
我在尝试通过数据工厂调用 azure 函数时收到此错误。附有错误快照。 然后我再次尝试使用相同的参数,下一个执行实例运行良好。 我只是想知道这个问题是来自 azure 服务器端还是由于我的代码。任何帮
我正在尝试在 Azure 中测试一些灾难恢复过程。 我已在测试服务器上获取了生产 Azure SQL 数据库的副本,将其删除,并尝试使用 SQL Server 下的“已删除数据库”选项来还原它。恢复已
可以找到此方法的文档 here 这是我的代码: var appServiceManager = AppServiceManager.Authenticate(credentials,
我正在尝试在 Azure 中测试一些灾难恢复过程。 我已在测试服务器上获取了生产 Azure SQL 数据库的副本,将其删除,并尝试使用 SQL Server 下的“已删除数据库”选项来还原它。恢复已
可以找到此方法的文档 here 这是我的代码: var appServiceManager = AppServiceManager.Authenticate(credentials,
我正在使用 SqlAlchemy 1.4.18(异步),我相信我遇到了无法解释的竞争条件。底层数据库是Postgres和 asyncpg由 SqlAlchemy 内部使用。 我在 SQL Alchem
我是一名优秀的程序员,十分优秀!