2

I try to send on post a id application this work with HttpPost but when I try to do this with Retrofit I have the exception:

java.io.IOException: Received authentication challenge is null

Here is the method to post application id:

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

I searched on google but I didn't find this error with retrofit.

Thank's for your response

Vladimir Vagaytsev
  • 2,871
  • 9
  • 33
  • 36
tamtoum1987
  • 1,957
  • 3
  • 27
  • 56

1 Answers1

0

Try adding also:

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

As per this question: IOException: "Received authentication challenge is null" (Apache Harmony/Android)

Community
  • 1
  • 1
David d C e Freitas
  • 7,481
  • 4
  • 58
  • 67