# Incorrect authentication credentials

**URL:** <https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720>\
**Category:** Development\
**Created:** [January 25, 2016, 1:39pm UTC](https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720 "2016-01-25T13:39:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![uri-wisestamp](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/uri-wisestamp/32/21435_2.png) [@uri-wisestamp](https://discourse.mozilla.org/u/uri-wisestamp)\
**Post date:** [January 25, 2016, 1:39pm UTC](https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720/1 "2016-01-25T13:39:22Z")

</div>

headers: { Authorization: ‘’, Accept: ‘application/json’ } }  
JPM [debug] [API] \<- { headers:  
{ allow: ‘GET, PUT, HEAD, OPTIONS’,  
‘content-type’: ‘application/json’,  
date: ‘Mon, 25 Jan 2016 10:37:05 GMT’,  
server: ‘nginx’,  
‘set-cookie’: ‘’,  
‘strict-transport-security’: ‘max-age=31536000’,  
vary: ‘Accept, X-Mobile, User-Agent’,  
‘www-authenticate’: ‘JWT realm=“api”’,  
‘x-frame-options’: ‘DENY’,  
‘content-length’: ‘51’,  
connection: ‘Close’ },  
response: { detail: ‘Incorrect authentication credentials.’ } }  
JPM [error] FAIL  
Error: Received bad response from the server while requesting [https://addons.mozilla.org/api/v3/addons/test-1%40wisestamp.com/versions/4.8.20.14/](https://addons.mozilla.org/api/v3/addons/test-1%40wisestamp.com/versions/4.8.20.14/)

status: 401  
response: {“detail”:“Incorrect authentication credentials.”}  
headers: {“allow”:“GET, PUT, HEAD, OPTIONS”,“content-type”:“application/json”,“date”:“Mon, 25 Jan 2016 10:37:05 GMT”,“server”:“nginx”,“set-cookie”:[“multidb\_pin\_writes=y; expires=Mon, 25-Jan-2016 10:37:20 GMT; Max-Age=15; Path=/”],“strict-transport-security”:“max-age=31536000”,“vary”:“Accept, X-Mobile, User-Agent”,“www-authenticate”:“JWT realm=“api””,“x-frame-options”:“DENY”,“content-length”:“51”,“connection”:“Close”}

at C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\lib\amo-client.js:85:13  
at tryCatchReject (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\makePromise.js:845:30)  
at runContinuation1 (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\makePromise.js:804:4)  
at Fulfilled.when (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\makePromise.js:592:4)  
at Pending.run (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\makePromise.js:483:13)  
at Scheduler.\_drain (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\Scheduler.js:62:19)  
at Scheduler.drain (C:\Users\uriwise\AppData\Roaming\npm\node\_modules\jpm\node\_modules\when\lib\Scheduler.js:27:9)  
at nextTickCallbackWith0Args (node.js:433:9)  
at process.\_tickCallback (node.js:362:13)

I checked and our credentials are correct.

> <https://github.com/mozilla-jetpack/jpm/issues/469>

---

<div class="post-metadata">

**Author:** ![noitidart](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@noitidart](https://discourse.mozilla.org/u/noitidart)\
**Post date:** [January 25, 2016, 2:20pm UTC](https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720/2 "2016-01-25T14:20:02Z")

</div>

I blindly guess this is a timing issue. Try syncing your clock to NTP then trying agian. I had this same issue:

Related issues I think:

- [https://github.com/mozilla/olympia/issues/1071](https://github.com/mozilla/olympia/issues/1071)
- [https://github.com/mozilla/olympia/issues/1109](https://github.com/mozilla/olympia/issues/1109)
- [https://github.com/mozilla/olympia/issues/1369#issuecomment-171858421](https://github.com/mozilla/olympia/issues/1369#issuecomment-171858421)

---

<div class="post-metadata">

**Author:** ![uri-wisestamp](https://sea1.discourse-cdn.com/flex001/user_avatar/discourse.mozilla.org/uri-wisestamp/32/21435_2.png) [@uri-wisestamp](https://discourse.mozilla.org/u/uri-wisestamp)\
**Post date:** [January 26, 2016, 7:38am UTC](https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720/3 "2016-01-26T07:38:45Z")

</div>

After taking my clock one minute back, it worked. However this should work also with the clock adjusted.

---

<div class="post-metadata">

**Author:** ![noitidart](https://avatars.discourse-cdn.com/v4/letter/n/9f8e36/32.png) [@noitidart](https://discourse.mozilla.org/u/noitidart)\
**Post date:** [January 27, 2016, 5:46am UTC](https://discourse.mozilla.org/t/incorrect-authentication-credentials/6720/4 "2016-01-27T05:46:52Z")

</div>

Yeah it’s a common request, but it’s the design/nature of JWT.
