Skip to content

Is old MD5 signature still working? SING_VALIDATE_FALED_4 #16

@hllhll

Description

@hllhll

I Have provisioned new key-secret pair and executing the example script

const Cloud = require('@tuyapi/cloud');

let api = new Cloud({key: '****', secret: '************************'});

api.register({email: 'bb*******l.com', password: '*******'}).then(async sid => {
  let token = await api.request({action: 'tuya.m.device.token.create', data: {'timeZone': '-05:00'}});

  console.log(token) // => { secret: '0000', token: '01010101' }
});

I get:

      throw new TuyaCloudRequestError({code: data.errorCode, message: data.errorMsg});
            ^

TuyaCloudRequestError: SING_VALIDATE_FALED_4
    at TuyaCloud.request (node_modules/@tuyapi/cloud/index.js:253:13)
    at process.processTicksAndRejections (node:internal/process/task_queues:103:5)
    at async TuyaCloud.register (node_modules/@tuyapi/cloud/index.js:278:23) {
  code: 'SING_VALIDATE_FALED_4'

Does Tuya still support this method of signature/authentication?

Similar to #2 Probably not;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions