emojipacks: emojipacks fails after the most recent slack update

Slack has update the web UI for the emojis page, and now emojipacks now fails with the following.

Starting import
Got tokens
Logged in
Uh oh! Error: Login error: could not get emoji upload crumb for https://yourteam.slack.com
(node:12714) UnhandledPromiseRejectionWarning: Error: Login error: could not get emoji upload crumb for https://yourteam.slack.com
    at Slack.emoji (/Users/dc/Documents/src/emojipacks/lib/slack.js:162:34)
    at Slack.emoji.next (<anonymous>)
    at onFulfilled (/Users/dc/Documents/src/emojipacks/node_modules/co/index.js:65:19)
    at process._tickCallback (internal/process/next_tick.js:178:7)
(node:12714) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:12714) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

About this issue

  • Original URL
  • State: open
  • Created 6 years ago
  • Reactions: 27
  • Comments: 18 (4 by maintainers)

Most upvoted comments

@camwhite On it… Slapped this together in a few hours. It’s worked well for me so far.

https://github.com/itslenny/slack-emoji-import

+1 same

Hi! It seems that on npm is version without this fix: https://www.npmjs.com/package/emojipacks (last release about year ago)

Same error

occur same error

In my opinion this module needs to be rewritten using puppeteer because Slack has added a modal you must click through.