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

Error handling in access.js #26

Open
philawsophizing opened this issue Apr 13, 2017 · 2 comments
Open

Error handling in access.js #26

philawsophizing opened this issue Apr 13, 2017 · 2 comments
Labels

Comments

@philawsophizing
Copy link
Contributor

Not 100% but I think we encountered this. Had to parse the body before saying !body.access token, otherwise it's not checking it correctly.

  Request(options, (error, response, body) => {
    if (error) return reply(error);
    if (!body.access_token) {
      return reply('Something went wrong - no access token!');
    }
@philawsophizing
Copy link
Contributor Author

mmm maybe not because you set json to true..

@jwld
Copy link
Member

jwld commented Apr 13, 2017

Yea json: true handles this :)

@jwld jwld added the wontfix label Apr 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants