Skip to content

Gives "Error Network failure. Can't process your request." instead of more informative message on local db #74

@imaduddinamajid

Description

@imaduddinamajid

Describe the bug
When I tried to create a new table in the local database with the wrong JSON format or wrong value format, it just gives the same error message. Instead, we should receive a more informative message as we receive in the remote database.

What I got on the local db
image

What I got on the remote db using the same JSON input for table creation
image

To Reproduce
Steps to reproduce the behavior:

  1. Go to Local Database
  2. Click on table creation button
  3. Select "Code" to give the JSON input for table creation
  4. Use this JSON
{
  "AttributeDefinitions": [
    {
      "AttributeName": "test_field",
      "AttributeType": "S"
    }
  ],
  "KeySchema": [
    {
      "AttributeName": "test_field",
      "KeyType": "HASH"
    }
  ],
  "ProvisionedThroughput": {
    "ReadCapacityUnits": 1,
    "WriteCapacityUnits": 1
  },
  "TableName": "test-db",
  "GlobalSecondaryIndexes": [
    {
      "IndexName": "",
      "KeySchema": [
        {
          "AttributeName": "",
          "KeyType": "HASH | RANGE"
        }
      ],
      "Projection": {
        "NonKeyAttributes": [
          ""
        ],
        "ProjectionType": "ALL | KEYS_ONLY | INCLUDE"
      },
      "ProvisionedThroughput": {
        "ReadCapacityUnits": 0,
        "WriteCapacityUnits": 0
      }
    }
  ],
  "SSESpecification": {
    "Enabled": false,
    "KMSMasterKeyId": "",
    "SSEType": "AES256 | KMS"
  },
  "StreamSpecification": {
    "StreamEnabled": false,
    "StreamViewType": "NEW_IMAGE | OLD_IMAGE | NEW_AND_OLD_IMAGES | KEYS_ONLY"
  }
}

Expected behavior
Error message on local DB should have a similar message as we got from remote DB.

Desktop (please complete the following information):

  • OS:
    LSB Version: core-11.1.0ubuntu2-noarch:printing-11.1.0ubuntu2-noarch:security-11.1.0ubuntu2-noarch
    Distributor ID: Ubuntu
    Description: Ubuntu 20.04 LTS
    Release: 20.04
    Codename: focal

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions