{"action":"created","issue":{"url":"https://api.github.com/repos/npm/npm/issues/8380","labels_url":"https://api.github.com/repos/npm/npm/issues/8380/labels{/name}","comments_url":"https://api.github.com/repos/npm/npm/issues/8380/comments","events_url":"https://api.github.com/repos/npm/npm/issues/8380/events","html_url":"https://github.com/npm/npm/issues/8380","id":81652970,"number":8380,"title":"npm uses auth token from registry on http[s]:// dependencies, breaking BitBucket URLs","user":{"login":"MaxMotovilov","id":78924,"avatar_url":"https://avatars.githubusercontent.com/u/78924?v=3","gravatar_id":"","url":"https://api.github.com/users/MaxMotovilov","html_url":"https://github.com/MaxMotovilov","followers_url":"https://api.github.com/users/MaxMotovilov/followers","following_url":"https://api.github.com/users/MaxMotovilov/following{/other_user}","gists_url":"https://api.github.com/users/MaxMotovilov/gists{/gist_id}","starred_url":"https://api.github.com/users/MaxMotovilov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MaxMotovilov/subscriptions","organizations_url":"https://api.github.com/users/MaxMotovilov/orgs","repos_url":"https://api.github.com/users/MaxMotovilov/repos","events_url":"https://api.github.com/users/MaxMotovilov/events{/privacy}","received_events_url":"https://api.github.com/users/MaxMotovilov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/npm/npm/labels/bug","name":"bug","color":"C40233"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-05-27T22:30:34Z","updated_at":"2015-08-28T22:28:44Z","closed_at":null,"body":"npm@2.10.1\r\nExcerpt from the log:\r\n```\r\n1010 http fetch GET http://bitbucket.org/12qcp/sequelize/get/fc2.tar.gz\r\n1011 verbose request using bearer token for auth\r\n```\r\nfurther:\r\n```\r\n1724 info retry will retry, error on last attempt: Error: Exceeded maxRedirects. Probably stuck in a redirect loop https://bitbucket.org/account/signin/?next=/account/signin/%3Fnext%3D/account/signin/%253Fnext%253D/account/signin/%25253Fnext%25253D/account/signin/%2525253Fnext%2525253D/account/signin/%252525253Fnext%252525253D/account/signin/%25252525253Fnext%25252525253D/account/signin/%2525252525253Fnext%2525252525253D/account/signin/%252525252525253Fnext%252525252525253D/12qcp/sequelize/get/fc2.tar.gz\r\n1725 http fetch 302 http://bitbucket.org/12qcp/sequelize/get/fc2.tar.gz\r\n1726 error fetch failed http://bitbucket.org/12qcp/sequelize/get/fc2.tar.gz\r\n1727 warn retry will retry, error on last attempt: Error: fetch failed with status code 302\r\n```\r\nRemoving auth token with `npm logout` helps. Apparently BitBucket server reacts badly to foreign auth tokens. This issue has not been observed with npm 1.x."},"comment":{"url":"https://api.github.com/repos/npm/npm/issues/comments/135902088","html_url":"https://github.com/npm/npm/issues/8380#issuecomment-135902088","issue_url":"https://api.github.com/repos/npm/npm/issues/8380","id":135902088,"user":{"login":"erikvanzijst","id":63338,"avatar_url":"https://avatars.githubusercontent.com/u/63338?v=3","gravatar_id":"","url":"https://api.github.com/users/erikvanzijst","html_url":"https://github.com/erikvanzijst","followers_url":"https://api.github.com/users/erikvanzijst/followers","following_url":"https://api.github.com/users/erikvanzijst/following{/other_user}","gists_url":"https://api.github.com/users/erikvanzijst/gists{/gist_id}","starred_url":"https://api.github.com/users/erikvanzijst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erikvanzijst/subscriptions","organizations_url":"https://api.github.com/users/erikvanzijst/orgs","repos_url":"https://api.github.com/users/erikvanzijst/repos","events_url":"https://api.github.com/users/erikvanzijst/events{/privacy}","received_events_url":"https://api.github.com/users/erikvanzijst/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T22:28:44Z","updated_at":"2015-08-28T22:28:44Z","body":"I'm having trouble reproducing this (I'm one of the Bitbucket devs). Can you reproduce this with curl on the command line and hand me a command I can test with? Go ahead and obscure the actual token value."}}