Authentication error: Unable to respond to any of these challenges: {} Android - 401 Unauthorized

后端 未结 4 1638
情书的邮戳
情书的邮戳 2021-02-05 18:09

Authentication error: Unable to respond to any of these challenges: {} Android - 401 Unauthorized

I have taken reference from this link Authentication Error when usi

4条回答
  •  刺人心
    刺人心 (楼主)
    2021-02-05 18:24

    I'd suggest to test first the PHP side out the app. There are several ways to make your own calls including headers and auth. From curl to GraphicalHttpClient (http://itunes.apple.com/us/app/graphicalhttpclient/id433095876?mt=12 , I personally use that and it works decently). There some other options like REST client debugger (https://addons.mozilla.org/en-US/firefox/addon/restclient/)

    This way you'll be able to test your call in so many ways which is pain doing directly in the client (sometimes it's just changing from http to https or adding the type of your token in the Authorization header and that's much easier to be madeo n the fly).

    Once everything works as expected, reproduce the same call, headers and body in your client and you are ready to go.

提交回复
热议问题