Skip to content

Clerk::Proxy.organization bug #142

Description

@awei82

the call to the Clerk::Proxy organization method fails due to an argument mismatch.

Refer to the following error output:

[12] pry(#<Router>)> env["clerk"].organization
ArgumentError: missing keyword: :organization_id (ArgumentError)

    caller: .../ruby/gems/4.0.0/gems/clerk-sdk-ruby-8.0.0/lib/clerk/proxy.rb:133
    |         sdk.organizations.get(org_id: org_id).organization
                               ^^^^
    callee: .../ruby/gems/4.0.0/gems/clerk-sdk-ruby-8.0.0/lib/clerk/organizations.rb:341
    |     def get(organization_id:, include_members_count: nil, include_missing_member_with_elevated_permissions: nil, retrie...
              ^^^
from .../ruby/gems/4.0.0/gems/clerk-sdk-ruby-8.0.0/lib/clerk/organizations.rb:341:in 'Clerk::Organizations#get'

sdk.organizations.get(org_id: org_id).organization

^ The above line calls the get method with the org_id keyword, when it actually requires organization_id instead.
def get(organization_id:, include_members_count: nil, include_missing_member_with_elevated_permissions: nil, retries: nil, timeout_ms: nil, http_headers: nil)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions