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

Not able to fetch all connections via the http connection api when there are more than 100 connections #2002

Open
JeffreyThijs opened this issue Aug 21, 2024 · 1 comment

Comments

@JeffreyThijs
Copy link
Contributor

When i request all connection via the connection http api while having more than 100 connection, I receive following error message:

{
    "status": 400,
    "error": "connectivity:connections.amount.illegal",
    "message": "The amount of requested exceptions exceeds the limit of '100'.",
    "description": "Please request less connection ids."
}

This limit seems to be configured via:

https://github.com/eclipse-ditto/ditto/blob/master/gateway/service/src/main/resources/gateway.conf#L220

Currently, you can not configure this option via an environment variable so it would be a good idea to add this to allow a quick fix. A better solution would be add pagination to the endpoint like what is done with the search things http api.

@thjaeckle
Copy link
Member

Hi @JeffreyThijs

Indeed, configuring it via ENV var would be a quick win for this.
In the meantime, you can configure every HOCON (the config format) setting via Java system properties.
In this case, this would be a parameter to the JVM:

-Dditto.gateway.command.connections-retrieve-limit=1337

And yes - eventually we will need pagination on this API.

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

2 participants