googleapis / googleapis/google-api-nodejs-client
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- TypeScript
- Sterne
- 12.3k
- Forks
- 2k
- Ø Merge
- 1 T. 9 Std.
- Gemergte PRs (30 T.)
- 24
Beschreibung
Hello!
I'm trying to get a list of folders in a specific folder, using the googleapis library, it gives an error. (typescript)
const folderId:string = "1U4Zucpia-a3S2fwgBJC1omsR4-15KMm2";
const search_query: string = `${folderId} in parents and mimeType contains 'application/vnd.google-apps.folder' and trashed = false`;
const listParams: drive_v3.Params$Resource$Files$List = { q:search_query };
const res: GaxiosResponse = await gd.files.list(listParams);
const listResults: drive_v3.Schema$FileList = res.data;
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object


Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Start with the TypeScript call to gd.files.list(listParams) and the reported ERR_INVALID_ARG_TYPE stack trace. Check how the googleapis client expects list parameters and whether this example reaches the client as intended; done means the request lists folders without the TypeError.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- nodejs, typescript
- Bereich
- api
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100