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] BikeTags wouldn't load after updating a single tag #184

Open
ehoraizon opened this issue Apr 22, 2022 · 1 comment
Open

[BUG] BikeTags wouldn't load after updating a single tag #184

ehoraizon opened this issue Apr 22, 2022 · 1 comment
Assignees

Comments

@ehoraizon
Copy link
Contributor

Describe the bug
Updating a BikeTag with admin credentials and only the tagnumber property in a predetermined game makes the API unable to load the BikeTags from that game.

To Reproduce
Steps to reproduce the behavior:

  1. Call method
const tag = BikeTagClient.createTagObject({tagnumber: 26})
(new BikeTagClient(adminConfig)).updateTag(tag)
(new BikeTagClient(clientConfig)).getTags(undefined, {
              game: game.name,
              hash: game.mainhash,
              source: 'imgur',
})
  1. See error
{
    "status": 500,
    "data": null,
    "error": {
        "message": "Cannot read properties of undefined (reading 'length')",
        "stack": "TypeError: Cannot read properties of undefined (reading 'length')\n    at pe (http://prime.localhost:8080/node_modules/.vite/deps/biketag.js"
    },
    "success": false,
    "source": "imgur"
}

Expected behavior
Expected an error if the BikeTag is malformed.

Environment (please complete the following information):

  • Library version: 2.1.4
  • OS: Windows 10 Home
  • NodeJS version: v16.14.0
@KenEucker
Copy link
Owner

@MatthewHung02

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