@chewxy any update on that one?
Can we follow the bug you opened on a bug tracker?
I tried that on https://cloud.dgraph.io/ as it moved on 21.03 and the error seems to be there too.
I got a 502 error with the failing query:
$ curl -v 'https://withered-wave.eu-central-1.aws.cloud.dgraph.io/graphql' \
-X POST \
-H 'content-type: application/json' \
--data '{
"query": "{ queryFoo(order: {asc: date})@cascade(fields:[\"bar\"]) { bar { id } } }"
}'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 3.65.76.212:443...
* Connected to withered-wave.eu-central-1.aws.cloud.dgraph.io (3.65.76.212) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.eu-central-1.aws.cloud.dgraph.io
* start date: Apr 14 12:35:08 2021 GMT
* expire date: Jul 13 12:35:08 2021 GMT
* subjectAltName: host "withered-wave.eu-central-1.aws.cloud.dgraph.io" matched cert's "*.eu-central-1.aws.cloud.dgraph.io"
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55afe4163970)
> POST /graphql HTTP/2
> Host: withered-wave.eu-central-1.aws.cloud.dgraph.io
> user-agent: curl/7.77.0
> accept: */*
> content-type: application/json
> content-length: 94
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* We are completely uploaded and fine
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 502
< server: Caddy
< content-length: 0
< date: Fri, 04 Jun 2021 07:15:46 GMT
<
* Connection #0 to host withered-wave.eu-central-1.aws.cloud.dgraph.io left intact
a working query returns a 200:
$ curl -v 'https://withered-wave.eu-central-1.aws.cloud.dgraph.io/graphql' \
-X POST \
-H 'content-type: application/json' \
--data '{
"query": "{ queryFoo(order: {asc: date}) { bar { id } } }"
}'
Note: Unnecessary use of -X or --request, POST is already inferred.
* Trying 3.64.168.155:443...
* Connected to withered-wave.eu-central-1.aws.cloud.dgraph.io (3.64.168.155) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/certs/ca-certificates.crt
* CApath: none
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.3 (IN), TLS handshake, Encrypted Extensions (8):
* TLSv1.3 (IN), TLS handshake, Certificate (11):
* TLSv1.3 (IN), TLS handshake, CERT verify (15):
* TLSv1.3 (IN), TLS handshake, Finished (20):
* TLSv1.3 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.3 (OUT), TLS handshake, Finished (20):
* SSL connection using TLSv1.3 / TLS_AES_128_GCM_SHA256
* ALPN, server accepted to use h2
* Server certificate:
* subject: CN=*.eu-central-1.aws.cloud.dgraph.io
* start date: Apr 14 12:35:08 2021 GMT
* expire date: Jul 13 12:35:08 2021 GMT
* subjectAltName: host "withered-wave.eu-central-1.aws.cloud.dgraph.io" matched cert's "*.eu-central-1.aws.cloud.dgraph.io"
* issuer: C=US; O=Let's Encrypt; CN=R3
* SSL certificate verify ok.
* Using HTTP2, server supports multi-use
* Connection state changed (HTTP/2 confirmed)
* Copying HTTP/2 data in stream buffer to connection buffer after upgrade: len=0
* Using Stream ID: 1 (easy handle 0x55ffa9b68970)
> POST /graphql HTTP/2
> Host: withered-wave.eu-central-1.aws.cloud.dgraph.io
> user-agent: curl/7.77.0
> accept: */*
> content-type: application/json
> content-length: 68
>
* TLSv1.3 (IN), TLS handshake, Newsession Ticket (4):
* We are completely uploaded and fine
* Connection state changed (MAX_CONCURRENT_STREAMS == 250)!
< HTTP/2 200
< access-control-allow-credentials: true
< access-control-allow-headers: X-Dgraph-AccessToken, X-Dgraph-AuthToken, Content-Type, Content-Length, Accept-Encoding, Cache-Control, X-CSRF-Token, X-Auth-Token, X-Requested-With, sentry-trace, DG-Auth
< access-control-allow-methods: POST, OPTIONS
< access-control-allow-origin: *
< content-type: application/json
< date: Fri, 04 Jun 2021 07:17:54 GMT
< graphql-toucheduids: 3
< server: Caddy
< content-length: 437
<
* Connection #0 to host withered-wave.eu-central-1.aws.cloud.dgraph.io left intact
{"data":{"queryFoo":[{"bar":{"id":"0x9c4f5c1"}}]},"extensions":{"touched_uids":3,"tracing":{"version":1,"startTime":"2021-06-04T07:17:54.147804484Z","endTime":"2021-06-04T07:17:54.152054709Z","duration":4250235,"execution":{"resolvers":[{"path":["queryFoo"],"parentType":"Query","fieldName":"queryFoo","returnType":"[Foo]","startOffset":105135,"duration":4140283,"dgraph":[{"label":"query","startOffset":143985,"duration":4099697}]}]}}}}%