Authentication token was not provided - error when running actor



I’m calling the actor “act-executions-compare” by cermak-petr (

However, whenever I attempt to call this via - either directly or via a finish webhook after a crawl. I receive the following error in the logs:

2019-03-10T19:20:33.725Z ACTOR: Creating Docker container
2019-03-10T19:20:33.845Z ACTOR: Starting Docker container
2019-03-10T19:20:35.305Z creating comparing map
2019-03-10T19:20:35.460Z processed old results: 376
2019-03-10T19:20:35.466Z comparing map created
2019-03-10T19:20:35.468Z comparing results
2019-03-10T19:20:35.532Z compared new results: 91
2019-03-10T19:20:35.534Z comparing results finished
2019-03-10T19:20:35.537Z processing deleted results
2019-03-10T19:20:35.539Z processing deleted results finished
2019-03-10T19:20:35.541Z new: 0, updated: 0, deleted: 283, unchanged: 91
2019-03-10T19:20:35.555Z User function threw an exception:
2019-03-10T19:20:35.557Z ApifyError: Authentication token was not provided
2019-03-10T19:20:35.560Z at newApifyErrorFromResponse (/usr/src/app/node_modules/apify-client/build/utils.js:71:12)
2019-03-10T19:20:35.562Z at Request._callback (/usr/src/app/node_modules/apify-client/build/utils.js:139:50)
2019-03-10T19:20:35.564Z at Request.self.callback (/usr/src/app/node_modules/request/request.js:185:22)
2019-03-10T19:20:35.566Z at emitTwo (events.js:126:13)
2019-03-10T19:20:35.568Z at Request.emit (events.js:214:7)
2019-03-10T19:20:35.570Z at Request. (/usr/src/app/node_modules/request/request.js:1157:10)
2019-03-10T19:20:35.572Z at emitOne (events.js:116:13)
2019-03-10T19:20:35.574Z at Request.emit (events.js:211:7)
2019-03-10T19:20:35.576Z at IncomingMessage. (/usr/src/app/node_modules/request/request.js:1079:12)
2019-03-10T19:20:35.578Z at Object.onceWrapper (events.js:313:30)
2019-03-10T19:20:35.580Z at emitNone (events.js:111:20)
2019-03-10T19:20:35.583Z at IncomingMessage.emit (events.js:208:7)
2019-03-10T19:20:35.585Z at endReadableNT (_stream_readable.js:1064:12)
2019-03-10T19:20:35.587Z at _combinedTickCallback (internal/process/next_tick.js:138:11)
2019-03-10T19:20:35.589Z at process._tickCallback (internal/process/next_tick.js:180:9)

I’m not able to determine why the error is occuring - does anyone have any ideas what this error means?




It looks like the call to Apify.setValue is throwing the exception. I’ve tried calling other actors using my account in the same manner which call Apify.setValue and I don’t get the exception. Whats going on?


Further update to this - if I copy the contents of main.js from the git repo and create a new actor under my account, build with the defaults. I can call this actor without error.

Reached out to the author of the project - but not had a response. I’m guessing there is some APIFY platform issue with the build of the actor.



it is strange behavior.

I will forward this issue to @petr-cermak, who created this actor. Maybe he can help you with that.

Have a nice day,
Jakub D.