You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(error): internal server error when formatting non CDS and GraphQLError errors (#132)
* Test status code of requests with undefined queries
* Fix trying to set stacktrace in extensions when error isn't GraphQLError
* Reorder function declarations
* Prettier format
* Add changelog entry
* Format changelog
* Improve comment
* Destructure response in tests
* Fix expects for GET requests
* Improve expects for POST requests
* Add comments about GraphiQL to expected HTML
Copy file name to clipboardExpand all lines: CHANGELOG.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,12 +16,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
16
16
- Moved registration of `cds.compile.to.gql` and `cds.compile.to.graphql` targets from `@sap/cds` to `@cap-js/graphql`
17
17
- Improve merging of custom `graphql` protocol configuration with plugin default configuration
18
18
- Errors representing client errors (`4xx` range) are now logged as warnings instead of errors
19
-
- Exclude the stack trace of the outer logged error message in multiple error scenarios, as the inner stack trace already
20
-
contained the precise initial segment of the outer stack trace.
19
+
- Exclude the stack trace of the outer logged error message in multiple error scenarios, as the inner stack trace already contained the precise initial segment of the outer stack trace
21
20
22
21
### Fixed
23
22
24
23
- Load custom `errorFormatter` relative to CDS project root
24
+
- Fix internal server error when formatting errors that aren't CDS errors (thrown by CDS or in custom handlers) or instances of GraphQLError, such as the error caused by requests with undefined `query` property
0 commit comments