-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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(api-gateway): Catch error from contextToApiScopes #7521
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
7 Ignored Deployments
|
} catch (e: unknown) { | ||
if (e instanceof CubejsHandlerError) { | ||
res.status(e.status).json({ error: e.message }); | ||
} |
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.
There is no call for next
when error != CubejsHandlerError
.
This will lead to unhandled connection.
); | ||
if (next) next(); | ||
} catch (e: unknown) { | ||
if (e instanceof CubejsHandlerError) { |
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.
There is no call for next
when error != CubejsHandlerError
.
This will lead to unhandled connection.
} | ||
}, | ||
], | ||
userMiddlewares, |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
} | ||
}, | ||
], | ||
userMiddlewares, |
Check failure
Code scanning / CodeQL
Missing rate limiting High
authorization
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #7521 +/- ##
==========================================
- Coverage 48.02% 48.02% -0.01%
==========================================
Files 154 154
Lines 20903 20893 -10
Branches 5373 5378 +5
==========================================
- Hits 10039 10033 -6
+ Misses 10122 10120 -2
+ Partials 742 740 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Hello!
Thanks