Skip to content

Broken reading localstack localdb because trying to read backups that do not exist #71

@ktwbc

Description

@ktwbc

Describe the bug
When using localstack (https://localstack.cloud) which includes local dynamodb within it, we can run a local dynamo instance on endpoint http://localhost:4566
When the plugin reads the local info, I see in the docker logs it's attempting two reads:

A ListTables followed by a ListBackups. The ListBackups fails with 400 because it's not supported, and that's causing the tables it found not to be displayed.

2025-04-05T17:22:50.612 INFO --- [et.reactor-0] localstack.request.aws : AWS dynamodb.ListTables => 200
2025-04-05T17:22:50.624535264Z 2025-04-05T17:22:50.624 INFO --- [et.reactor-0] localstack.request.aws : AWS dynamodb.ListBackups => 400

Steps to reproduce

  1. Install LocalStack by using docker:
docker run -d \
  --name localstack   \
  -p 4566:4566 -p 4510-4559:4510-4559 \
  -e SERVICES=dynamodb\
  -e DOCKER_HOST=unix:///var/run/docker.sock \
  localstack/localstack
  1. set up plugin to use DynamoDB Local, endpoint http://localhost:4566
  2. Create a table via plugin say from a copy action from another ddb database
  3. Hit reload (refresh) on plugin to re-read database, table will be missing

Expected behavior
Should read tables

I can confirm with awslocal that it's running and I have tables

awslocal dynamodb list-tables
{
    "TableNames": [
        "local-active-users",

Environment information:

  • OS: MacOS
  • IDE version: Webstorm latest
  • plugin version: 2024.1.1-243

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions