Strawberry Shake error using gzip compression

Strawberry Shake error using gzip compression


0

I am following the official Strawberry Shake guide: https://chillicream.com/docs/strawberryshake/v13/get-started/console

Specifically Step 4: Add a GraphQL client to your project using the CLI tools
I run this command:

dotnet graphql init https://integrate.somecloud.com/graphql -n SomeClient -p ./StrawberryShakeConsole --headers Accept-Encoding=gzip --tokenEndpoint https://integrate.somecloud.com/auth --token eyJhbGciOiJIUzI1...

I receive the following error:

Download schema started.
Download schema completed in 557 ms
Unhandled exception. System.Text.Json.JsonException: '0x1F' is an invalid start of a value. Path: $ | LineNumber: 0 | BytePositionInLine: 0.
 ---> System.Text.Json.JsonReaderException: '0x1F' is an invalid start of a value. LineNumber: 0 | BytePositionInLine: 0.

If I remove:

--headers Accept-Encoding=gzip

I receive the error:

Download schema started.
error INTROSPECTION_ERROR: Response too large

I can’t download the schema because it is too large but if I use gzip compression it throws a JsonException. Any ideas on how I can get around this to use Strawberry Shake?

Share
Improve this question


Load 7 more related questions


Show fewer related questions

0

Reset to default



Browse other questions tagged

or ask your own question.

Leave a Reply

Your email address will not be published. Required fields are marked *