GuoMonth commented on issue #10346:
URL: https://github.com/apache/apisix/issues/10346#issuecomment-1780376247

   # Test summary Use curl to reproduce the error perfectly
   
   Requesting graphql services through the APISIX gateway.
   
   - success
   ```bash
   curl -i -H 'content-type: application/json' \
   -H 'Authorization: Bearer 
eyJxxxOiJKV1QixxciOiJxxx.eyJleHAiOjE2OTgzNzY4MDEsImtleSI6InVzZXItaxx.FDfPX0YBKtbDYPBxx-ebrEHGTtTbcRNV0Qxxx'
 \
   -X POST http://xx.xx.xx.xx:xx/client/graphql -d '{"query":"query tClientInfo 
{tClientInfo(\n        filters: { status: { eq: 1 } }\n        orderBy: { 
updateTime: DESC }\n    ) {\n        nodes {\n            id\n            
clientId\n            clientCode\n            clientName\n            status\n  
          createUser\n            createTime\n            remark\n            
updateTime\n            updateUser\n        }\n            }\n}"}'
   ```
   
   - failed
   ```bash
   curl -i -H 'content-type: application/graphql' \
   -H 'Authorization: Bearer 
eyJxxxOiJKV1QixxciOiJxxx.eyJleHAiOjE2OTgzNzY4MDEsImtleSI6InVzZXItaxx.FDfPX0YBKtbDYPBxx-ebrEHGTtTbcRNV0Qxxx'
 \
   -X POST http://xx.xx.xx.xx:xx/client/graphql -d '{"query":"query tClientInfo 
{tClientInfo(\n        filters: { status: { eq: 1 } }\n        orderBy: { 
updateTime: DESC }\n    ) {\n        nodes {\n            id\n            
clientId\n            clientCode\n            clientName\n            status\n  
          createUser\n            createTime\n            remark\n            
updateTime\n            updateUser\n        }\n            }\n}"}'
   ```
   
   The only difference between these two requests: content-type
   


-- 
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]

Reply via email to