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

TypeError: Cannot read properties of undefined (reading 'map') #3

Closed
kadistudio opened this issue Nov 8, 2022 · 2 comments
Closed

Comments

@kadistudio
Copy link

i noticed that when fetching a user (especially using a begineers namecard (Genshin Impact: A New World) an error occurs (see attached picture).

const userEnka = await enka.fetchUser(uid);

how long does the module update? because when i change something information in the game, when i try to console.log(userEnka) there's nothing change with the information.

image

@kravetsone
Copy link
Owner

how long does the module update? because when i change something information in the game, when i try to console.log(userEnka) there's nothing change with the information.

On the part of the enka network API, the response is cached and updated every 2 minutes. Caching by the library is calculated just from the life of the enka network api cache.

Sorry. I'm coming back from college and will be able to investigate the error a little later.

@kravetsone
Copy link
Owner

Fixed in enkaNetwork@1.1.5

Thank you for your cooperation! At the moment dummy accounts do not cause errors but contain a lot of undefined values. (as it should have been)

image

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