-
Notifications
You must be signed in to change notification settings - Fork 2
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
fix: add try-catch block to authentication manager #336
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor item with the log statement.
Is an additional test case needed to hit the catch
block?
packages/spacecat-shared-http-utils/src/auth/authentication-manager.js
Outdated
Show resolved
Hide resolved
@@ -46,6 +46,7 @@ export default class ScopedApiKeyHandler extends AbstractHandler { | |||
this.log(`No API key entity found in the data layer for the provided API key: ${apiKeyFromHeader}`, 'error'); | |||
return null; | |||
} | |||
this.log(`API Key entity: ${apiKeyEntity}`, 'debug'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this object be stringified?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removing these logs as we might not need them anymore.
This PR will trigger a patch release when merged. |
…nager.js Co-authored-by: Bruce Lefebvre <[email protected]>
Yes. Added the additional test case to fix the test errors. |
# [@adobe/spacecat-shared-http-utils-v1.6.7](https://github.com/adobe/spacecat-shared/compare/@adobe/spacecat-shared-http-utils-v1.6.6...@adobe/spacecat-shared-http-utils-v1.6.7) (2024-08-19) ### Bug Fixes * add try-catch block to authentication manager ([#336](#336)) ([a6cf629](a6cf629))
🎉 This issue has been resolved in version @adobe/spacecat-shared-http-utils-v1.6.7 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Related Issues
Add try-catch block to authentication-manager to try and figure out the issue with ScopedApiKeyHandler