platform icon indicating copy to clipboard operation
platform copied to clipboard

SDK no longer works with DPNS-related methods

Open thephez opened this issue 1 year ago • 2 comments

Expected Behavior

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

Current Behavior

Since https://github.com/dashpay/platform/pull/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 avatar Jul 24 '24 19:07 thephez

Should be resolved by #2001 / #2002

thephez avatar Jul 25 '24 12:07 thephez

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

riongull avatar Jul 29 '24 05:07 riongull