getProjects search with vercel SDK stopped working

Hey we’re using deployments over API with vercel sdk and since about Wednesday April 16th, the vercel.projects.getProjects stopped finding project using the search parameters. Here is my code:

const projects = await vercel.projects.getProjects({
slug: teamSlug,
search: projectName,
})

Suddenly this returns 0 projects. When I remove the search param, the project with projectName is listed there. Not sure if I can share the details (team slug and project name) here but we have currently 84 projects in this team.

As a workaround, I’m getting the project using project retrieval api which is not in the SDK, so I do this:

 await fetch(
        `https://api.vercel.com/v9/projects/${projectName}/?slug=${teamSlug}`,
        {
          headers: {
            Authorization: `Bearer ${process.env.VERCEL_API_TOKEN}`,
          },
        },
      )

I think it might have stopeed when we had ~60 projects in the team, I think the search parameter maybe only searches on first page of the projects on Vercel API backend side?

Hello, I am little confused about the date. Could you clarify since when you are facing this issue?

oops i meant April 16th, fixed

Thanks! Which @vercel/sdk are you using? are you able to reproduce with v1.6.2 as well?

Yeah I can reproduce even with 1.6.3

Just to confirm, you can reproduce with both 1.6.2 and 1.6.3 ?

Hello,

This was an issue with our search API which should be fixed now.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.