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

SDK no longer works with DPNS-related methods #1999

Closed
thephez opened this issue Jul 24, 2024 · 2 comments
Closed

SDK no longer works with DPNS-related methods #1999

thephez opened this issue Jul 24, 2024 · 2 comments
Labels
bug Something isn't working js-sdk JS Dash SDK related

Comments

@thephez
Copy link
Collaborator

thephez commented Jul 24, 2024

Expected Behavior

SDK should be able to register/retrieve names using the names.* methods.

Current Behavior

Since #1984, this error is returned when using names.register():

Error: JsonSchemaError: Additional properties are not allowed ('dashUniqueIdentityId' was unexpected), path: /records

Also receiving errors like this when attempting to retrieve a name:

InvalidRequestError: where clause on non indexed property error: query must be for valid indexes, valid indexes are: {"identityId": Index { name: "identityId", properties: [IndexProperty { name: "records.identity", ascending: true }], unique: false, null_searchable: false, contested_index: None }, "parentNameAndLabel": Index { name: "parentNameAndLabel", properties: [IndexProperty { name: "normalizedParentDomainName", ascending: true }, IndexProperty { name: "normalizedLabel", ascending: true }], unique: true, null_searchable: true, contested_index: Some(ContestedIndexInformation { field_matches: {"normalizedLabel": Regex(Regex("^[a-zA-Z01-]{3,19}$"))}, resolution: MasternodeVote }) }}

Possible Solution

Steps to Reproduce (for bugs)

  1. Attempt to create or retrieve a name using the RC package for JS SDK

Context

Your Environment

  • Version used: 4.0.0-rc.1 on testnet
@thephez thephez added the bug Something isn't working label Jul 24, 2024
@thephez
Copy link
Collaborator Author

thephez commented Jul 25, 2024

Should be resolved by #2001 / #2002

@riongull
Copy link

names.register() with v4.0.0-rc.2 worked for me.

@QuantumExplorer QuantumExplorer added the js-sdk JS Dash SDK related label Sep 4, 2024
@thephez thephez closed this as completed Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working js-sdk JS Dash SDK related
Projects
None yet
Development

No branches or pull requests

3 participants