-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
Describe the bug
When using the ZenlessZoneZero.Record function characters. I would get an error
error: Error [NodeHoyoError]: Parameter Error
at ZZZRecordModule.characters (..\..\node-hoyolab\src\client\zzz\record\record.ts:114:12)
112 |
113 | if (res.retcode !== 0) {
> 114 | throw new NodeHoyoError(
| ^
115 | res.message ??
116 | 'Failed to retrieve data, please double-check the provided UID.',
117 | res.retcode, {
code: -400005,
http: [Object]
}
The parameters given are correct. I have diagnosed the issue and i've spotted several problems.
- In the
zzz.interface.tsyou have the enums
export enum ZZZRegion {
USA = 'prod_gf_jp', <-- should be 'prod_gf_us'
EUROPE = 'prod_gf_eu',
ASIA = 'prod_gf_jp',
CHINA_TAIWAN = 'prod_gf_cht',
}
- Not sure if we have access to a list of the agents. Seems we'll need to specify an id_list
To Reproduce
Steps to reproduce the behavior:
- Create a
ZenlessZoneZeroinstance - Input correct cookies, uid and region
- Log the character function using the newly created instance
Expected behavior
Retrieves the characters associated with the provided region and UID.
Screenshots
Desktop (please complete the following information):
- OS: Windows 10
- Browser Chrome
- Version 22
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels

