gpt4 book ai didi

python - 使用 Python/SUDS 设置 IncludeExceptionDetailInFaults

转载 作者:太空宇宙 更新时间:2023-11-03 17:35:21 26 4
gpt4 key购买 nike

如何使用 Python/SUDS 设置 IncludeExceptionDetailInFaults?对于我的一个请求,我收到此错误消息:

  File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 542, in __call__
return client.invoke(args, kwargs)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 602, in invoke
result = self.send(soapenv)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 649, in send
result = self.failed(binding, e)
File "/usr/local/lib/python2.7/dist-packages/suds/client.py", line 702, in failed
r, p = binding.get_fault(reply)
File "/usr/local/lib/python2.7/dist-packages/suds/bindings/binding.py", line 265, in get_fault
raise WebFault(p, faultroot)
WebFault: Server raised fault: '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 behavior) on the server in order to send the exception information back to the client, or turn on tracing as per the Microsoft .NET Framework SDK documentation and inspect the server trace logs.'

请求中没有明显的错误,因此我想获取更多信息,但找不到使用 SUDS API 的方法。有什么办法吗?

最佳答案

据我现在的理解,答案是否定的。 IncludeExceptionDetailInFaults 设置似乎只能在服务器上访问,似乎没有办法从客户端更改它。

关于python - 使用 Python/SUDS 设置 IncludeExceptionDetailInFaults,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31267073/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com