Closed rlyle closed 4 years ago
Which version of bitbucket
are you using?
can you try running your script with DEBUG=bitbucket
environment variable set and paste the output here?
I switched over to this, and now it's working..
getUser(username) {
return new Promise((resolve, reject) => {
bitbucket.teams.get({username}).then(({data}) => {
log.info("get team members:", data );
resolve(data);
}).catch((err) => {
log.error("getUser error:", err );
reject(err);
})
})
}
This code has been working for ages, but lately we've been getting the following error now when trying to get users from bitbucket..
HTTPError: richard_lyle at getData.then.error (/var/task/node_modules/bitbucket/src/request/fetch.js:53:17) at process._tickCallback (internal/process/next_tick.js:68:7) Message: richard_lyle
This is the code we are using to grab a user by their username: