【问题标题】:Retrofit error java.io.IOException: Received authentication challenge is null改造错误 java.io.IOException: Received authentication challenge is null
【发布时间】:2014-08-29 04:15:00
【问题描述】:

我尝试使用 HttpPost 发送一个 id 应用程序,但是当我尝试使用 Retrofit 执行此操作时出现异常:

java.io.IOException: Received authentication challenge is null

这里是发布应用程序ID的方法:

  @POST("/acces_token")
  @Headers({ "Content-type: application/json" })
  Response identifierApplication(@Header("X-FTVEN-ID") String header);

我在谷歌上搜索,但我没有发现改造时出现此错误。

感谢您的回复

【问题讨论】:

    标签: java android http retrofit


    【解决方案1】:

    也尝试添加:

    @Headers({ "WWW-Authenticate: None"})
    

    根据这个问题:IOException: "Received authentication challenge is null" (Apache Harmony/Android)

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2022-12-15
      • 2021-01-28
      • 2013-11-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多