You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As tested in #339 Artifactory seems to automatically close any connection coming from the same address after a failed request from the same address. This can happen when we first tried to access a repository on the host for which we don't have access and afterwards try to access a repo for which we have access.
This cannot easily solved by adding some waiting time before redoing the request as we might have independent calls to audb on the same machine.
Would be nice if we can have instead a way to first ask Artifactory if access is given for a repos and only try to access the repo if this is the case.
Until then, the workaround is to not include a repository inside audb.config.REPOSITOIRES for which no reading rights exist.
This is not only affected by repos without access right, but also by empty repos. Maybe they connection is not closed when trying to access it and this lets the next connection fail?
This cannot easily solved by adding some waiting time before redoing the request as we might have independent calls to audb on the same machine.
In case that waiting will turn out as the only option: openai has a nice tutorial on expontential backoff as a waiting strategy here. Their usecase is API rate limits but the problem is very similar. They even provide a handcrafted decorator that should be easily adaptable and can avoid external dependencies.
Would be nice if we can have instead a way to first ask Artifactory if access is given for a repos and only try to access the repo if this is the case.
This SOV post suggests that it might be possible to get this information without doing a full audb.get.
As tested in #339 Artifactory seems to automatically close any connection coming from the same address after a failed request from the same address. This can happen when we first tried to access a repository on the host for which we don't have access and afterwards try to access a repo for which we have access.
This cannot easily solved by adding some waiting time before redoing the request as we might have independent calls to
audb
on the same machine.Would be nice if we can have instead a way to first ask Artifactory if access is given for a repos and only try to access the repo if this is the case.
Until then, the workaround is to not include a repository inside
audb.config.REPOSITOIRES
for which no reading rights exist./cc @ChristianGeng
The text was updated successfully, but these errors were encountered: