martintajur / pipedrive-snapshot

Pipedrive account archiver/uploader
3 stars 3 forks source link

Error: Upload does not work at all #3

Open arenk opened 9 years ago

arenk commented 9 years ago

When trying to upload an existing backup to a new account with "node upload.js API_TOKEN backup1.json" the following error occurs:

... Ignoring filter (14) XXX/upload.js:52 if (err) throw new Error("Error: " + err.toString() + " " + JSON.stringify ^ Error: Error: Error: Pipedrive API error:You do not have permissions to do this.deals {"user_id":{"id":789944,"name":"Hans","email":"XXX","has_pic":false,"pic_hash":null,"active_flag":true,"value":789944},"person_id":{"name":"Person1","email":[{"value":"","primary":true}],"phone":[{"value":"","primary":true}],"value":1},"org_id":{"name":"Firma 1","people_count":1,"cc_email":"XXX","value":1},"stage_id":1,"title":"Deal1","value":200,"currency":"USD","add_time":"2015-08-20 11:46:22","update_time":"2015-08-20 11:46:23","status":"open","lost_reason":null,"visible_to":"3","close_time":null,"pipeline_id":1,"won_time":null,"lost_time":null,"expected_close_date":"2015-08-27"} at XXX/upload.js:52:20 at genericResponseHandler (XXX/node_modules/pipedrive/lib/Pipedrive.js:249:5) at Request. (XXX/node_modules/pipedrive/lib/Pipedrive.js:339:3) at Request.emit (events.js:110:17) at Request. (XXX/node_modules/pipedrive/lib/restler.js:116:15) at next (XXX/node_modules/pipedrive/node_modules/async/lib/async.js:798:43) at XXX/node_modules/pipedrive/node_modules/async/lib/async.js:32:16 at FetchStream. (XXX/node_modules/pipedrive/node_modules/fetch/lib/fetch.js:428:13) at FetchStream.emit (events.js:104:17) at FetchStream. (XXX/node_modules/pipedrive/node_modules/fetch/lib/fetch.js:321:22)