none
download cab give confusing error to 401 unauthorized error instead of 400 not found

    Question

  • HTTPError: 401 Client Error: Unauthorized for url:

    https://manage.devcenter.microsoft.com/v1.0/my/analytics/desktop/cabdownload?applicationId=6882273900839993165&cabIdHash=e281b13a-eca6-4951-829a-a86297e19067

    <o:p>the error message is not correct, actually 400 error is the right one for not found resources</o:p>

    Thursday, November 8, 2018 11:18 PM

All replies

  • Hi Baihui Wang,

    The error code 401 is correct for your issue. The code 400 is for bad request, 401 for Unauthorized, 404 for not fund. Since your error is 'Valid authorization Token was not found', it seems more related to 401(specifically for use when authentication is required and has failed or has not yet been provided). 

    Best regards

    Daisy  Tian


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, November 9, 2018 7:59 AM
    Moderator