【问题标题】:Getting "org.glassfish.jersey.message.internal.HeaderValueException" error for a "post" method on an API为 API 上的“post”方法获取“org.glassfish.jersey.message.internal.HeaderValueException”错误
【发布时间】:2017-12-27 13:57:36
【问题描述】:

我得到的例外是

org.glassfish.jersey.message.internal.HeaderValueException:“Content-Type”标头值过多:“[application/json, application/json]”

当我收到此错误时,我正在传递内容类型 = 'application/x-www-form-urlencoded' 的请求。当我尝试不传递内容类型时,我仍然遇到同样的异常。

【问题讨论】:

    标签: cucumber bdd rest-assured web-api-testing karate


    【解决方案1】:

    请使用最新的空手道版本,应该可以解决这个问题:https://github.com/intuit/karate

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2018-11-04
      • 2021-08-26
      • 2022-01-13
      • 2023-03-10
      • 2016-03-03
      • 1970-01-01
      • 2017-03-31
      相关资源
      最近更新 更多