【问题标题】:PyOTRS connection to the remote server is aborted by the remote endPyOTRS 与远程服务器的连接被远程端中止
【发布时间】:2019-10-03 07:46:07
【问题描述】:

我正在尝试使用 PyOTRS 库与 OTRS 社区版 API 一起使用,但在 session_create 步骤中出现错误:

client = Client(baseurl="host_ip", username="username", password="passwd",)
client.session_create()

错误是:

http 通信出错:('连接中止。', RemoteDisconnected('远程结束关闭连接无响应',)

【问题讨论】:

  • 你的baseurl是什么?可能是它不接受连接。
  • BaseUrl 是简单的 ip 地址,放置 OTRS 6.0,除此之外,还有webservice_path 参数,调试时默认值为“/otrs/nph-genericinterface.pl/Webservice/GenericTicketConnectorREST/Session”。

标签: python otrs


【解决方案1】:

对不起我的英语。实际上对于 OTRS 5.x.x 他们没有在 pyOTRS 手册中写下使用前需要配置 Web 服务的任何地方。 名称必须是 GenericTicketConnectorREST 添加 Session、TicketCreate、TicketGet 和 TicketUpdate 操作。 单击 HTTP: REST 旁边的“配置”,然后在屏幕上指定路由映射。 Route Map to functions

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-08-30
    • 2016-08-10
    • 1970-01-01
    • 1970-01-01
    • 2011-12-17
    • 2013-05-24
    • 1970-01-01
    相关资源
    最近更新 更多