node-bitbucket icon indicating copy to clipboard operation
node-bitbucket copied to clipboard

listPermissions question

Open yuliabaron opened this issue 6 years ago • 2 comments

Hi, I've noticed that repositories.listPermissions endpoint returns much more values than https://api.bitbucket.org/2.0/user/permissions/repositories/. In my test listPermissions returned 45 repos, while /2.0/user/permissions/repositories only returned 10 (and I expected 10). Could you check?

I'm using version 1.15.1

Thanks!

yuliabaron avatar Sep 04 '19 08:09 yuliabaron

repositories.listPermissions is correctly sending request to the https://api.bitbucket.org/2.0/user/permissions/repositories url.

Your finding might be caused by your authentication method. Since you haven't mentioned details about your testing, I can't say anything for sure.

Set the following environment variable for getting details about the requests made by this library: DEBUG=bitbucket

MunifTanjim avatar Sep 07 '19 12:09 MunifTanjim

Thanks. I've enabled debug and I indeed see the correct endpoint is called. I'll investigate more. Will update if further help is needed

yuliabaron avatar Sep 16 '19 12:09 yuliabaron