#401·guess

GuessJS 不能与 Firebase Analytics 一起使用

作者: JandroMejia97创建于 2020年5月20日更新于 2020年5月20日

GaxiosError: User does not have sufficient permissions for this profile. at Gaxios._request (/home/mejia97/Documentos/CTM/ctm-front/node_modules/gaxios/build/src/gaxios.js:85:23) at processTicksAndRejections (internal/process/task_queues.js:97:5) at async JWT.requestAsync (/home/mejia97/Documentos/CTM/ctm-front/node_modules/google-auth-library/build/src/auth/oauth2client.js:340:18) { response: { config: { url: 'https://analyticsreporting.googleapis.com/v4/reports:batchGet', method: 'POST', paramsSerializer: [Function (anonymous)], data: [Object], headers: [Object], params: [Object: null prototype] {}, validateStatus: [Function (anonymous)], retry: true, body: '{"reportRequests":{"pageSize":10000,"viewId":"VIEWID","dateRanges":[{"startDate":"2019-05-21","endDate":"2020-05-20"}],"dimensions":[{"name":"ga:previousPagePath"},{"name":"ga:pagePath"}],"metrics":[{"expression":"ga:pageviews"}],"orderBys":[{"fieldName":"ga:pageviews","sortOrder":"DESCENDING"}]}}', responseType: 'json', retryConfig: [Object] }, data: { error: [Object] }, headers: { 'alt-svc': 'h3-27=":443"; ma=2592000,h3-25=":443"; ma=2592000,h3-T050=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q049=":443"; ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43" }, cacheControl: 'private', connection: 'close', 'content-encoding': 'gzip', 'content-type': 'application/json; charset=UTF-8', date: 'Wed, 20 May 2020 16:04:20 GMT', server: 'ESF', 'transfer-encoding': 'chunked', vary: 'Origin, X-Origin, Referer', 'x-content-type-options': 'nosniff', 'x-frame-options': 'SAMEORIGIN', 'x-xss-protection': '0' }, status: 403, statusText: 'Forbidden', request: { responseURL: 'https://analyticsreporting.googleapis.com/v4/reports:batchGet' } }, config: { url: 'https://analyticsreporting.googleapis.com/v4/reports:batchGet', method: 'POST', paramsSerializer: [Function (anonymous)], data: { reportRequests: [Object] }, headers: { 'x-goog-api-client': 'gdcl/4.1.1', 'x-goog-api-https': 'true', 'x-goog-api-key': 'AIzaSyAQ000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000