The 'UnsignedInterfaceDisabled' error occurs when you use the single-domain resolution API to access Domain resources

更新时间:
复制 MD 格式

Problem description

When you call the single-domain resolution API to access Domain resources, the following error is returned:

UnsignedInterfaceDisabled

Cause

This error occurs because signature-based access is enabled for HTTPDNS, which prevents you from calling the single-domain resolution API to access Domain resources.

Solution

  1. Log on to the HTTPDNS console. In the navigation pane on the left, choose Access Configuration > Developer Configuration.

  2. On the Developer Configuration page, obtain the secretKey:

  3. Enable authentication in your client-side code:

    Android:

    HttpDnsService httpdns = HttpDns.getService(applicationContext, accountID, secretKey);

    iOS:

    HttpDnsService *httpdns = [[HttpDnsService alloc] initWithAccountID:accountID secretKey];

    Harmony:

    httpdns.configService(accountID, {
          context: this.context,
          secretKey: this.secretKey
        });

Applies to

  • HTTPDNS