-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add connector response size limit (#400)
Co-authored-by: Sean Park-Ross <[email protected]>
- Loading branch information
1 parent
5fc2f04
commit 5e1e351
Showing
3 changed files
with
53 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
sidebar_position: 10 | ||
sidebar_label: Response Size Limit | ||
description: "Hasura rejects responses from a connector when their size exceeds a certain limit" | ||
keywords: | ||
- size limit | ||
- response size limit | ||
- connector response | ||
seoFrontMatterUpdated: true | ||
--- | ||
|
||
# Connector Response Size Limit | ||
|
||
The maximum size for responses from connectors is **30 MB**. Beyond this threshold, Hasura will reject the | ||
response to ensure optimum performance and data processing. It's important to be mindful of this constraint when making | ||
data queries to Hasura's [GraphQL API](/graphql-api/overview/). | ||
|
||
To prevent hitting the response size limit, API consumers are encouraged to utilize the | ||
[limit argument](/graphql-api/queries/pagination#limit-results) in their queries to avoid over-fetching data from | ||
sources via data connectors. | ||
|
||
When GraphQL API requests exceed this size limit, they will result in an | ||
[internal error](/graphql-api/errors#internal-errors) API response. | ||
|
||
```json | ||
{ | ||
"data": null, | ||
"errors": [ | ||
{ | ||
"message": "internal error" | ||
} | ||
] | ||
} | ||
``` | ||
|
||
Hasura users are advised to check the traces for more detailed error information, which includes the actual response | ||
size from the connector. | ||
|
||
:::note Response size limit increases | ||
|
||
If you require an increase in the response size limit, please reach out to [Hasura support](https://hasura.io/help/) for | ||
assistance. | ||
|
||
::: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters