GuoMonth commented on issue #10346:
URL: https://github.com/apache/apisix/issues/10346#issuecomment-1780360172
# Test Case 4
- Requesting graphql services through the APISIX gateway.
```bash
~> curl -i -H 'content-type: application/graphql' -H 'Authorization: Bearer
eyJ0eXxxxJhbGciOiJIUzI1NiJ9.eyJleHAiOjE2OTgzNzxxxMDEsImtleSI6InVzZXIta2V5In0.FDfPX0YBKtbDYPBhQkf-ebrEHGTtTbcRNV0Qe8SIxxx'
\
-X POST 'http://1.15.160.45:8082/client/graphql' -d '
query tClientInfo {
tClientInfo(
filters: { status: { eq: 1 } }
orderBy: { updateTime: DESC }
) {
nodes {
id
clientId
clientCode
clientName
status
createUser
createTime
remark
updateTime
updateUser
}
}
}'
HTTP/1.1 400 Bad Request
Content-Length: 59
Connection: keep-alive
access-control-allow-origin: *
vary: origin
vary: access-control-request-method
vary: access-control-request-headers
access-control-expose-headers: *
date: Thu, 26 Oct 2023 03:28:25 GMT
Server: APISIX/3.4.0
Access-Control-Allow-Methods: *
Access-Control-Max-Age: 5
Access-Control-Allow-Headers: *
InvalidRequest(Error("expected value", line: 2, column: 1))%
```
APISIX error log
```text
172.17.0.15 - - [26/Oct/2023:03:27:17 +0000] xx.xx.xx.xx:xx "POST
/client/graphql HTTP/1.1" 400 59 0.001 "-" "curl/8.4.0" 172.18.1.7:8007 400
0.001 "http://xx.xx.xx.xx:xx"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]