如何解决是否可以在 Power Query 的 OAuth 的注销方法中使用 Extension.CurrentCredentials()?
每当在 Power Query 中调用 Logout 方法时,我都会尝试撤销我的 refresh_token。但是我遇到了一些错误。我将发布我的代码和错误的图片。如果我能在这个问题上得到一些帮助,那就太好了。非常感谢。
同样截断的堆栈跟踪是:
反馈类型:
皱眉(错误)
错误信息:
未将对象引用设置为对象的实例。
堆栈跟踪:
在 Microsoft.Mashup.Engine1.Runtime.Extensibility.ExtensionOAuthFactory.Provider.Microsoft.Mashup.OAuth.IOAuthProvider.Logout(String accessToken)
在 Microsoft.Mashup.Client.UI.Shared.OAuthManager.OpenOAuthDialog(IWindowHandle parentWindowHandle,String resourceKind,String accessToken,String resourceUrl)
在 Microsoft.Mashup.Client.UI.Shared.OAuthManager.c__DisplayClass6_0.b__0()
在 Microsoft.Mashup.Client.UI.Shared.OAuthManager.c__DisplayClass7_0.b__0()
在 Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler,Action action)
堆栈跟踪消息:
未将对象引用设置为对象的实例。
调用堆栈跟踪:
在 Microsoft.Mashup.Host.Document.ExceptionExtensions.GetCurrentInvocationStackTrace()
在 Microsoft.Mashup.Client.UI.Shared.StackTraceInfo..ctor(String exceptionStackTrace,String invocationStackTrace,String exceptionMessage)
在 Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.GetStackTraceInfo(Exception e)
在 Microsoft.PowerBI.Client.Windows.Telemetry.PowerBIUserFeedbackServices.ReportException(IWindowHandle activeWindow,IUIHost uiHost,FeedbackPackageInfo feedbackPackageInfo,Exception e,Boolean useGDICapture)
在 Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.c__DisplayClass15_0.b__0()
在 Microsoft.Mashup.Client.UI.Shared.UnexpectedExceptionHandler.HandleException(Exception e)
在 Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler,Action action)
在 System.RuntimeMethodHandle.InvokeMethod(Object target,Object[] arguments,Signature sig,Boolean constructor)
在 System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj,Object[] parameters,Object[] arguments)
在 System.Delegate.DynamicInvokeImpl(Object[] args)
在 System.Windows.Forms.Control.InvokeMarshaledCallbackDo(ThreadMethodEntry tme)
在 System.Windows.Forms.Control.InvokeMarshaledCallbackHelper(Object obj)
在 System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext,ContextCallback callback,Object state,Boolean preserveSyncCtx)
在 System.Threading.ExecutionContext.Run(ExecutionContext executionContext,Object state)
在 System.Windows.Forms.Control.InvokeMarshaledCallback(ThreadMethodEntry tme)
在 System.Windows.Forms.Control.InvokeMarshaledCallbacks()
在 System.Windows.Forms.Control.WndProc(Message& m)
在 System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd,Int32 msg,IntPtr wparam,IntPtr lparam)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
在 System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID,Int32 reason,Int32 pvLoopData)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason,ApplicationContext context)
在 System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason,ApplicationContext context)
在 System.Windows.Forms.Form.ShowDialog(IWin32Window owner)
在 Microsoft.Mashup.Client.UI.Windows.DialogWindowBase.ShowModal(IWindowHandle windowHandle)
在 Microsoft.Mashup.Client.UI.Shared.WebDialogs.WebDialog.n__0(IWindowHandle 所有者)
在 Microsoft.Mashup.Client.UI.Shared.WindowManager.ShowModal[T](T dialog,Func`1 showModalFunction)
在 Microsoft.Mashup.Client.UI.Shared.Ux.FloatingDialog.ChallengeEditFloatingDialog.Show(IWindowHandle owner,CredentialsStorage credentialsStorage,PackageReference packageReference,FormulaPath formulaPath,ResourceChallenge resourceChallenge,ITelemetryService telemetryService,Credential existing&Credentiald) /p>
在 Microsoft.Mashup.Client.UI.Shared.Ux.FloatingDialog.KoEditDataSourcePermissionsDialogBase.c__DisplayClass38_0.b__0()
在 Microsoft.Mashup.Host.Document.ExceptionHandlerExtensions.HandleExceptions(IExceptionHandler exceptionHandler,Object state)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。