Exception:认证失败,可能APIKey无效: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html> <head><title>401 Authorization Required</title></head> <body> <h1>401 Authorization Required</h1> <p>This server could not verify that you are authorized to access the document requested.<hr/>Powered by Tengine</body> </html>

报错信息

AuthenticationException: 认证失败,可能APIKey无效: <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html>
<head><title>401 Authorization Required</title></head>
<body>
<h1>401 Authorization Required</h1>
<p>This server could not verify that you are authorized to access the document requested.<hr/>Powered by Tengine</body>
</html>

StackTrace:
   在 OpenAI_API.EndpointBase.<HttpRequestRaw>d__10.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 OpenAI_API.EndpointBase.<HttpStreamingRequest>d__18`1.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Threading.Tasks.Sources.ManualResetValueTaskSourceCore`1.GetResult(Int16 token)
   在 OpenAI_API.EndpointBase.<HttpStreamingRequest>d__18`1.System.Threading.Tasks.Sources.IValueTaskSource<System.Boolean>.GetResult(Int16 token)
   在 OpenAI_API.Chat.ChatEndpoint.<StreamChatAsync>d__15.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 OpenAI_API.Chat.ChatEndpoint.<StreamChatAsync>d__15.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
   在 DynamicClass.<SendAsyncRequest>d__40.MoveNext()
--- 引发异常的上一位置中堆栈跟踪的末尾 ---
   在 System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
   在 System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
   在 System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)

 

解决方法

暂无解决方案。

相关信息
0 查看
2024-04-04 09:41
Quicker版本
版本 反馈次数