martintajur / pipedrive-snapshot

Pipedrive account archiver/uploader
3 stars 3 forks source link

Error: Pipedrive API error:You do not have permissions to do this. #2

Open yawn opened 10 years ago

yawn commented 10 years ago

I'm trying to call download like this (with PERSONAL TOKEN being the personal API token from https://app.pipedrive.com/settings#api):

node download.js PERSONAL-TOKEN 20140915

Output:

Error: Pipedrive API error:You do not have permissions to do this.
    at genericResponseHandler (/Users/.../pipedrive-snapshot/node_modules/pipedrive/lib/Pipedrive.js:214:20)
    at Request.<anonymous> (/Users/.../pipedrive-snapshot/node_modules/pipedrive/lib/Pipedrive.js:248:3)
    at Request.emit (events.js:98:17)
    at Request.<anonymous> (/Users/.../pipedrive-snapshot/node_modules/pipedrive/lib/restler.js:116:15)
    at next (/Users/.../pipedrive-snapshot/node_modules/pipedrive/node_modules/async/lib/async.js:801:43)
    at /Users/.../pipedrive-snapshot/node_modules/pipedrive/node_modules/async/lib/async.js:32:16
    at FetchStream.<anonymous> (/Users/.../pipedrive-snapshot/node_modules/pipedrive/node_modules/fetch/lib/fetch.js:428:13)
    at FetchStream.emit (events.js:92:17)
    at FetchStream.<anonymous> (/Users/.../pipedrive-snapshot/node_modules/pipedrive/node_modules/fetch/lib/fetch.js:321:22)
    at Gunzip.emit (events.js:117:20)

The personal token belongs to an admin user. I can export via the web interface w/o problems. Please advise!

QIPC commented 9 years ago

Hi, I got the same error message here. Can you help me out?

Error message:

Error: Pipedrive API error:You do not have permissions to do this. at genericResponseHandler (D:\Dump\pipedrive-snapshot-master\pipedrive-snaps hot-master\node_modules\pipedrive\lib\Pipedrive.js:215:20) at Request. (D:\Dump\pipedrive-snapshot-master\pipedrive-snapshot -master\node_modules\pipedrive\lib\Pipedrive.js:249:3) at Request.emit (events.js:98:17) at Request. (D:\Dump\pipedrive-snapshot-master\pipedrive-snapshot -master\node_modules\pipedrive\lib\restler.js:116:15) at next (D:\Dump\pipedrive-snapshot-master\pipedrive-snapshot-master\node_mo dules\pipedrive\node_modules\async\lib\async.js:801:43) at D:\Dump\pipedrive-snapshot-master\pipedrive-snapshot-master\node_modules\ pipedrive\node_modules\async\lib\async.js:32:16 at FetchStream. (D:\Dump\pipedrive-snapshot-master\pipedrive-snap shot-master\node_modules\pipedrive\node_modules\fetch\lib\fetch.js:428:13) at FetchStream.emit (events.js:92:17) at FetchStream. (D:\Dump\pipedrive-snapshot-master\pipedrive-snap shot-master\node_modules\pipedrive\node_modules\fetch\lib\fetch.js:321:22) at Gunzip.emit (events.js:117:20)

yawn commented 9 years ago

Nope sorry, have not tried to fix the issue

arri-cc commented 9 years ago

same issue still

arenk commented 9 years ago

Apparently, Pipedrive does not allow to access the objects "roles" and "permisson sets" using the API. This has nothing to do with pipedrive-snapshot, just try to list those objects on https://developers.pipedrive.com/v1.

Workaround: Remove roles and permissionSets in lib/objects.json and everything works fine.