Last week I was trying to publish Java packages on Bintray. For an hour I was stuck on getting 401 Unauthorized.
After some tears and vulgarisms I found out that the problem was not in the password, but my username in local.properties
file (which has the same key-value structure as for example .env
file) contained an extra space π€¦ββοΈ
Lesson learned: Always check both your username and password when you get a 401.
Top comments (0)