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] getVaultAccountsWithPageInfo with namePrefix and nameSuffix #95

Open
ehamery opened this issue Jun 2, 2022 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@ehamery
Copy link

ehamery commented Jun 2, 2022

Describe the bug
I have an vault account named Account#104 and when I run the following code:

try {
    const pagedVaultAccounts = await this.fireblocks.getVaultAccountsWithPageInfo({
        namePrefix: 'Account#',
        nameSuffix: '104'
        limit: 1
    });
} catch (error) {
    console.error(error);
}

I get:

Error: Request failed with status code 400
    at createError (/xxx/node_modules/axios/lib/core/createError.js:16:15)
    at settle (/xxx/node_modules/axios/lib/core/settle.js:17:12)
    at IncomingMessage.handleStreamEnd (/xxx/node_modules/axios/lib/adapters/http.js:293:11)
    at IncomingMessage.emit (events.js:412:35)
    at endReadableNT (internal/streams/readable.js:1334:12)
    at processTicksAndRejections (internal/process/task_queues.js:82:21) {config: {…}, request: ClientRequest, response: {…}, isAxiosError: true, toJSON: ƒ, …}

To Reproduce
Steps to reproduce the behavior:

  1. Create a vault account named Account#104
  2. Run the code above
  3. See error

Expected behavior
Have the account in pagedVaultAccounts.accounts[0]

Screenshots
N/A

Version:

  • fireblocks-sdk version: 2.1.0
  • npm version: 6.14.15
  • node version: v14.18.1

Additional context
N/A

@ehamery ehamery added the bug Something isn't working label Jun 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants