Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix undefined var: "ReferenceError: imgur is not defined" #87

Closed
jwflory opened this issue Nov 24, 2018 · 1 comment
Closed

Fix undefined var: "ReferenceError: imgur is not defined" #87

jwflory opened this issue Nov 24, 2018 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@jwflory
Copy link
Member

jwflory commented Nov 24, 2018

This is a bug where the existing code in master branch does not work because of an undefined variable:

$ docker run --rm -it teleirc-fedora-tmp
node-telegram-bot-api deprecated Automatic enabling of cancellation of promises is deprecated.
In the future, you will have to enable it yourself.
See https://github.com/yagop/node-telegram-bot-api/issues/319. module.js:653:30
Reading config file to get bot API token...
/opt/teleirc/lib/TeleIrc.js:39
      imgur.setClientId(this.config.imgur.imgurClientId);
      ^

ReferenceError: imgur is not defined
    at new TeleIrc (/opt/teleirc/lib/TeleIrc.js:39:7)
    at Object.<anonymous> (/opt/teleirc/teleirc.js:12:15)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)
    at bootstrap_node.js:625:3
@jwflory jwflory added bug Something isn't working priority:crit labels Nov 24, 2018
@jwflory jwflory added this to the v1.2.2 milestone Nov 24, 2018
@jwflory jwflory self-assigned this Nov 24, 2018
@jwflory
Copy link
Member Author

jwflory commented Nov 24, 2018

Addressed in #90.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant