Skip to content

Allow importing more than 100 devices using the CLI tool #7628

Closed
@vlasebian

Description

@vlasebian

Summary

Importing more than 100 devices using the CLI tool is restricted by rate limiting. It would be useful for a user to be able to import a larger number of devices without splitting the import file into smaller ones and processing each file separately.

Current Situation

When trying to import a large number of end devices from the CLI tool, rate limiting restricts this at 100 devices:

error:pkg/ratelimit:rate_limit_exceeded (rate limit of `100` accesses per minute exceeded for resource `grpc:method:/ttn.lorawan.v3.DeviceRepository/GetTemplate::token:E5MPAAJ5S3PHGJREBBPOPJRHLEPEUDKHR2CEIHI`)
    rate=100

Why do we need this? Who uses it, and when?

This is feature would be used by users when importing a large number of end devices into The Things Stack. It simplifies the process of importing end devices.

Proposed Implementation

Add a pause & retry for the CLI tool when a rate limiting error is received.

Contributing

  • I can help by doing more research.
  • I can help by implementing the feature after the proposal above is approved.
  • I can help by testing the feature before it's released.

Validation

Code of Conduct

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingui/cliThis is related to ttn-lw-cli

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions