Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
imaduddinamajid opened this issue Jan 15, 2021 · 2 comments

Comments

@imaduddinamajid
Copy link

imaduddinamajid commented Jan 15, 2021

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
@yanestevesufjf
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants
@yanestevesufjf @imaduddinamajid and others