Arattian / DynamoDb-GUI-Client

DynamoDb GUI Client
MIT License
659 stars 77 forks source link

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

Open imaduddinamajid opened 3 years ago

imaduddinamajid commented 3 years ago

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):

yanesteves commented 3 years ago

I have the same problem. But making it impossible for me to create tables even with the correct JSON.