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

connect -> incomplete error message when missing parameters #14

Open
maverick-zhn opened this issue Feb 17, 2021 · 1 comment
Open

connect -> incomplete error message when missing parameters #14

maverick-zhn opened this issue Feb 17, 2021 · 1 comment

Comments

@maverick-zhn
Copy link
Member

maverick-zhn commented Feb 17, 2021

To replicate the issue (I am missing the type of connection):

this.oada = await connect({ domain: this.domain, token: this.token })
      .catch(e => {
        console.log("Error -> failed to connect to OADA. The error was ", e);
      });

I got this:

Error -> failed to connect to OADA. The error was  TypeError: emitter.once is not a function

A more descriptive error message is needed.

@tomohiroarakawa
Copy link
Member

connect should work without the connection parameter. Are you specifically looking at the case where connection is not provided and the OADA server is not responding?

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

2 participants