Skip to content

Bug: getTeamMembers requires teamId but does not accept one #188

Description

@david-crespo

I get this error when trying to call, but I don't see any way to actually pass a teamId, and the pathToFunc function is called with no parameters.

error: Uncaught (in promise) Error: Parameter 'teamId' is required
    at file:///Users/david/Library/Caches/deno/npm/registry.npmjs.org/@vercel/sdk/1.18.2/esm/lib/url.js:10:23
    at String.replace (<anonymous>)
    at buildURLPath (file:///Users/david/Library/Caches/deno/npm/registry.npmjs.org/@vercel/sdk/1.18.2/esm/lib/url.js:8:28)
    at $do (file:///Users/david/Library/Caches/deno/npm/registry.npmjs.org/@vercel/sdk/1.18.2/esm/funcs/teamsGetTeamMembers.js:28:58)
    at teamsGetTeamMembers (file:///Users/david/Library/Caches/deno/npm/registry.npmjs.org/@vercel/sdk/1.18.2/esm/funcs/teamsGetTeamMembers.js:19:27)
    at Teams.getTeamMembers (file:///Users/david/Library/Caches/deno/npm/registry.npmjs.org/@vercel/sdk/1.18.2/esm/sdk/teams.js:27:28)
    at file:///Users/david/repos/dotfiles/bin/vercel-check.ts:13:40
    at eventLoopTick (ext:core/01_core.js:179:7)

const path = pathToFunc("/v3/teams/{teamId}/members")();

export type GetTeamMembersRequest = {
/**
* Limit how many teams should be returned
*/
limit?: number | undefined;
/**
* Timestamp in milliseconds to only include members added since then.
*/
since?: number | undefined;
/**
* Timestamp in milliseconds to only include members added until then.
*/
until?: number | undefined;
/**
* Search team members by their name, username, and email.
*/
search?: string | undefined;
/**
* Only return members with the specified team role.
*/
role?: QueryParamRole | undefined;
/**
* Exclude members who belong to the specified project.
*/
excludeProject?: string | undefined;
/**
* Include team members who are eligible to be members of the specified project.
*/
eligibleMembersForProjectId?: string | undefined;
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions