Giter VIP home page Giter VIP logo

Comments (1)

thash avatar thash commented on August 22, 2024

Hi, thank you for reporting it. Let me share the current status of the issue.

After investigation, I have identified the issue can happen when ~/.dynein/cache.yml contains at least one cached table, but ~/.dynein/config.yml doesn't have any "using" table. Here's my reproduction steps to replicate your issue.

$ dy --version
dynein 0.1.2
$ dy config clear
$ dy config dump
---
tables: ~
---
using_region: ~
using_table: ~

$ dy -r local list ### works fine
DynamoDB tables in region: local
  Forum
  ProductCatalog
  Reply
  Thread

$ dy -r local desc Forum 1>/dev/null ### to cache a table in ~/.dynein/cache.yml
$ dy config dump
---
tables:
  local/Forum:
    region: local
    name: Forum
    pk:
      name: Name
      kind: S
    sk: ~
    indexes: ~
    mode: OnDemand
---
using_region: ~
using_table: ~

$ dy -r local list ### error
DynamoDB tables in region: local
[2021-07-21T18:52:47Z ERROR dy::app]
    To execute the command you must specify target table in one of following ways:
        * [RECOMMENDED] $ dy use <your_table> ... save target table to use.
        * Or, optionally you can pass --region and --table options to specify target for your commands. Refer --help for more information.
    To find all tables in all regions, try:
        * $ dy ls --all-regions

We'll need to modify the code to radically prevent this issue, I apologize for the inconvenience. For now, as a workaround, you can do $ dy use <your_table_name> or simply clear cached tables info by using $ dy config clear when you encounter the issue.

Please let me know if you need further assistance concerning the issue.

from dynein.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.