-
Notifications
You must be signed in to change notification settings - Fork 59
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
User Group Management doesn't support experimental_enabled
on Client
#1808
Comments
Hi,
The user group is both initialized and created without error. The exception you are getting seems like a connection error. If labelbox-python/libs/labelbox/src/labelbox/schema/user_group.py Lines 95 to 96 in 0e9f43f
Thanks, |
Could you run |
Hey @tommypkeane-gehc |
Thanks, @Gabefire ! Yeah, if these URL differences for the GraphQL requests don't matter, I don't have any particular insight on that. It's just that when using the I was experiencing both issues (the other being #1809 ) at the same time, so if everything runs as long as the Client instance has I just noticed that that seemed to be the point of the So if there's a preference not to make the updates here, I don't have any problem with that, as long as the (And thanks so much for such a quick response!) |
Hi, |
Describe the bug
The
Client
class has theenable_experimental
argument, but theexecute()
method does not check theself.enable_experimental
value.This means that
labelbox.schema.user_group.UserGroup
class's methods ignore theenable_experimental
even though it's defined as required by that class.To reproduce
labelbox.schema.user_group.UserGroup()
client=labelbox.Client(api_key="...", enable_experimental=True)
labelbox.exceptions.NetworkError: HTTPSConnectionPool(host='api.labelbox.com', port=443): Max retries exceeded with url: /graphql
Expected behavior
The error should be indicating the experimental URL:
/_gql
Screenshots / Videos
N/A
Environment (please complete the following information
macOS
3.11.x
[email protected]
poetry.lock
Additional context
N/A
Proposed Fix
Every call to
self.client.execute(...)
like here:labelbox-python/libs/labelbox/src/labelbox/schema/user_group.py
Line 141 in 45109d8
could be updated with
self.client.execute(..., experimental=self.client.enable_experimental)
The text was updated successfully, but these errors were encountered: