无益的错误 [英] Unhelpful Error

查看:169
本文介绍了无益的错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿那里,

我正在尝试利用REST中的Sharepoint API来读取和写入共享位置以供内部使用。

I'm trying to utilize the Sharepoint API in REST to read and write files to a shared location for internal usage.

我通过v1.0 auth端点获得了一个访问令牌,并通过带有"Bearer {{token}}"的Authorization标头附加了它。我正在尝试在Sharepoint文档中列出的几个端点,但只会收到错误。

I have gotten an access token through the v1.0 auth endpoint and am attaching it via an Authorization header with "Bearer {{token}}". I'm trying a few endpoints listed on the Sharepoint docs and only getting errors.

[我要查询的URL是https://tenant.sharepoint.com/site/_api/lists ]

[URL I'm querying is https://tenant.sharepoint.com/site/_api/lists]

我得到的错误是:

{" error_description":"服务器由于内部错误而无法处理请求。 有关错误的更多信息,请在服务器上启用IncludeExceptionDetailInFaults(来自ServiceBehaviorAttribute或来自< serviceDebug>
配置行为),以便将异常信息发送回< g class =" gr_ gr_141 gr-alert gr_gramm gr_inline_cards gr_run_anim标点符号-del replaceWithoutSep"数据-GR-ID =" 141" ID = QUOT; 141">客户机,和LT; / g取代;
或根据Microsoft .NET Framework SDK文档打开跟踪并检查服务器跟踪日志。"}

{"error_description":"The server was unable to process the request due to an internal error.  For more information about the error, either turn on IncludeExceptionDetailInFaults (either from ServiceBehaviorAttribute or from the <serviceDebug> configuration behaviour) on the server in order to send the exception information back to the <g class="gr_ gr_141 gr-alert gr_gramm gr_inline_cards gr_run_anim Punctuation only-del replaceWithoutSep" data-gr-id="141" id="141">client,</g> or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs."}

它是值得一提的是我在Java中这样做,所以C#中心错误信息毫无意义。

It's worth mentioning I am doing this in Java, so the C#-centric error message makes zero sense.

提前致谢,

Fionn

推荐答案

现在我正在尝试使用graph.microsoft.com,并获取" ; CompactToken解析失败,错误代码:80049217"对于所有端点
Now I am trying graph.microsoft.com, and getting "CompactToken parsing failed with error code: 80049217" for all endpoints


这篇关于无益的错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆