googleapis / googleapis/google-api-nodejs-client
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received an instance of Object
- Lingua principale
- TypeScript
- Stelle
- 12.2k
- Fork
- 2k
- Merge medio
- 1g 9h
- PR unite (30g)
- 24
Descrizione
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


Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- nodejs, typescript
- Ambito
- api
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100