Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

oc-gs-storage-adapter failing #180

Open
kmcrawford opened this issue Apr 16, 2019 · 2 comments
Open

oc-gs-storage-adapter failing #180

kmcrawford opened this issue Apr 16, 2019 · 2 comments

Comments

@kmcrawford
Copy link
Member

There are occasional errors that aren't being logged due to opencomponents/oc#1022 the issue below looks to be an combination of a few errors all being logged at the same time. However what I think I can take away from this is that there is an auth issue. It looks like a new client is being created every time, which would call the auth api. Perhaps we can can create this once and re-use it.

https://github.com/opencomponents/storage-adapters/blob/master/packages/oc-gs-storage-adapter/index.js#L43

data: { error: 'internal_failure' },
--
connection: 'close',
'content-encoding': 'gzip',
'x-content-type-options': 'nosniff',
status: 503,
config:
data:
{ Error: internal_failure
at Generator.next (<anonymous>)
body:
at Gaxios.<anonymous> (/app/node_modules/gaxios/build/src/gaxios.js:72:27)
{ config:
url: 'https://www.googleapis.com/oauth2/v4/token',
{ 'cache-control': 'private',
server: 'scaffolding on HTTPServer2',
{ 'Content-Type': 'application/json',
status: 503,
headers: [Object],
paramsSerializer: [Function: paramsSerializer],
'x-xss-protection': '0' },
code: '503' } components/components.json

@kmcrawford
Copy link
Member Author

I have a fix in a branch that I'm running in our non-prod environments if it fixes, I'll create a PR.

@nickbalestra
Copy link
Contributor

Thanks for this Ken!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants