NPM Module API error

Hi all

I am having some issues with the Pipedrive NPM module, getting the below errors.

Running import…
Error: Pipedrive API error:unauthorized access
at RestHandlers.genericResponse (/app/node_modules/pipedrive/lib/restHandlers.js:56:22)
at Request. (/app/node_modules/pipedrive/lib/restHandlers.js:90:9)
at Request.emit (events.js:180:13)
at Request. (/app/node_modules/pipedrive/lib/rest.js:131:16)
at next (/app/node_modules/pipedrive/node_modules/async/lib/async.js:798:43)
at /app/node_modules/pipedrive/node_modules/async/lib/async.js:32:16
at FetchStream. (/app/node_modules/fetch/lib/fetch.js:428:13)
at FetchStream.emit (events.js:180:13)
at FetchStream. (/app/node_modules/fetch/lib/fetch.js:321:22)
at IncomingMessage.emit (events.js:185:15)
at endReadableNT (_stream_readable.js:1106:12)
at process._tickCallback (internal/process/next_tick.js:178:19)

I am able to pull the data via Postman no issues. Any guidance as to how I can further investigate this?

Hi Mike,

Looking at the initial error, I would just want to have you doublecheck that the API token is correct and that it is connected to an Admin account.

Let me know if that doesn’t help.