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

[BUG] better error reporting and error handling for instantiated clients without credentials #225

Open
KenEucker opened this issue Jan 9, 2024 · 0 comments

Comments

@KenEucker
Copy link
Owner

Describe the bug
If you attempt to get BikeTag data from a BikeTagClient object without setting adequate credentials, the following unhelpful error is returned:
TypeError: Cannot read properties of undefined (reading 'fetch') at http://prime.localhost:8080

When what is happening is that a request is being made without credentials:

Screenshot 2024-01-09 at 10 30 41 AM

To Reproduce
Steps to reproduce the behavior:

  1. create a new BikeTagClient (const biketag = new BikeTagClient())
  2. attempt to call biketag.getGame(undefined)
  3. See error

Expected behavior
An error that indicates that adequate credentials are not present should be returned.

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