-
Notifications
You must be signed in to change notification settings - Fork 150
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
Misleading SpaceAccessError
shown during failed request (Response size too big)
#932
Comments
Got the same error, I had to dive in the code to find what was happening. I used the same fix in a migration node script if anyone needs this outside of the CLI: const options = {
migrationFunction: '...',
spaceId: '...',
accessToken: '...',
environmentId: 'env',
requestBatchSize: 50
}
await runMigration(options) Would be really nice to have a better error message. |
Same for me. This really should be improved, since it took me a while to find the real problem by digging into the code. It would be really cool, when there would be an automatic retry with a reduced batch size when the |
Just for anyone else who ends up here, I got this same error, but for something completely different. It seems like this error maybe a common output from multiple different errors when it's trying to interact with Contentful. In my use case, it was trying to find a content entry that didn't exist. |
I just ran into the issue |
I ran into the same issue when the actual error turned out to be a 404 |
Migration script throws a
SpaceAccessError
for all Request errors.One of my ContentTypes was returning a
Response size too big
error during themigration-parser
initialization.contentful-migration/src/lib/migration-parser.ts
Lines 109 to 114 in 168c7f2
After a lot of head scratching, the root cause was finally identified as coming from this response
Expected Behavior
Provide more accurate exception information. (Pass the caught
error
upstream)Workaround
In my case, I was able to get it to work by modifying the
requestBatchSize
argumentThe text was updated successfully, but these errors were encountered: