Comments (1)
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)
- Implement sophisticated parser other than dy upd HOT 1
- Set bootstrap data locally instead of downloading HOT 1
- export command cause panic when table doesn't have items
- Implement IaC feature enpowered by CloudFormation HOT 4
- [test] Improve setup function
- `cargo test` failed due to difference in command output on windows environment HOT 1
- Implement sophisticated parser for put command HOT 1
- Implement sophisticated parser for query command
- Implement sophisticated parser for bwrite command HOT 1
- `bwrite` command does not support binary data types HOT 1
- `desc_all_tables` integration test sometimes fails HOT 1
- Race condition of loading config cause EndOfStream HOT 1
- Allow Full Attributes on Query or Scan HOT 5
- Dynein format does not accept valid JSON string HOT 1
- Add format option to show dynein format
- Inference preferable format based on the situation
- Support DynamoDB JSON for import/export table HOT 3
- Add base64 literal for binary type to dynein format HOT 1
- Specify target OS for creating binaries
- Create a option like `EXPLAIN` of SQL to check actual JSON parameter
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dynein.