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

verifyToken is not a function #54

Closed
period opened this issue Aug 14, 2019 · 1 comment
Closed

verifyToken is not a function #54

period opened this issue Aug 14, 2019 · 1 comment

Comments

@period
Copy link

period commented Aug 14, 2019

Same issue as found in #49

Having the same issue. I'm using the code examples section found on the template I created (i.e. postmark.sendEmailWithTemplate).

root@vps102313:~# node --version
v9.7.1

Ubuntu 16

/root/acorn-autoclaim/node_modules/postmark/dist/client/BaseClient.js:22
this.verifyToken(token);
^

TypeError: this.verifyToken is not a function
at Object.BaseClient (/root/acorn-autoclaim/node_modules/postmark/dist/client/BaseClient.js:22:14)
at Object.ServerClient (/root/acorn-autoclaim/node_modules/postmark/dist/client/ServerClient.js:28:23)
at Object. (/root/acorn-autoclaim/index.js:6:42)
at Module._compile (module.js:662:30)
at Object.Module._extensions..js (module.js:673:10)
at Module.load (module.js:575:32)
at tryModuleLoad (module.js:515:12)
at Function.Module._load (module.js:507:3)
at Function.Module.runMain (module.js:703:10)
at startup (bootstrap_node.js:193:16)

@period
Copy link
Author

period commented Aug 14, 2019

Fixed it. I was using new require("postmark").ServerClient("api key") as a shortcut. Splitting the require worked.

@period period closed this as completed Aug 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant