googleapis / googleapis/google-api-nodejs-client
dfareporting fails with "ctr is not a constructor"
- Lingua principale
- TypeScript
- Stelle
- 12.2k
- Fork
- 2k
- Merge medio
- 1g 9h
- PR unite (30g)
- 24
Descrizione
dfareporting v3.4 was sunset the a couple weeks ago and migrating to 3.5 hasn't been going smoothly.
doing this -
const { google } = require("googleapis");
this.dfareporting = google.dfareporting({
version: "v3.5",
auth: this.auth,
})
results in -
`Error: Unable to load endpoint dfareporting("v3.5"): ctr is not a constructor
at Object.getAPI (\node_modules\googleapis-common\build\src\apiIndex.js:36:15)
at GoogleApis.dfareporting (\node_modules\googleapis\build\src\apis\dfareporting\index.js:24:32)`
and when I try to revert to 3.4 -
this.dfareporting = google.dfareporting({
version: "v3.4",
auth: this.auth,
})
results in -
403 DCM Service Error: 3140 : Version v3.4 of the DCM/DFA Trafficking and Reporting API is no longer supported. Please upgrade
to the latest version of the API.
So I'm not sure what to do, and also running `$ npm install @googleapis/dfareporting` doesn't update node_modules with v3.5.
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia con gli stack trace segnalati in node_modules/googleapis-common/build/src/apiIndex.js e node_modules/googleapis/build/src/apis/dfareporting/index.js, quindi esamina il pacchetto @googleapis/dfareporting installato e le versioni API disponibili. Il lavoro è completato quando dfareporting v3.5 viene caricato correttamente e l’installazione del pacchetto fornisce i file v3.5 previsti in node_modules.
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