Error: Request failed with status code 403
- createError.js:16 createError
[lengjai]/[axios]/lib/core/createError.js:16:15
- settle.js:18 settle
[lengjai]/[axios]/lib/core/settle.js:18:12
- http.js:201 Unzip.handleStreamEnd
[lengjai]/[axios]/lib/adapters/http.js:201:11
- next_tick.js:63 process._tickCallback
internal/process/next_tick.js:63:19
{
resolve: `gatsby-source-google-analytics-reporting-api`,
options: {
email: '[email protected]',
key: '-----BEGIN PRIVATE KEY-----\ there's a lot inside of this key==\n-----END PRIVATE KEY-----\n',
viewId: `000000000`,
startDate: `2017-01-01`,
}
},
So I registered for the google reporting API and downloaded the key info as JSON when it prompted me to. Inside the JSON file I had all the information such as private key and client email. I removed those in my code for privacy. I gathered the viewId from my google analytics page. So I have a couple things that could potentially cause the issue: