You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2022/02/09 02:27:33 UTC

[GitHub] [apisix] Chever-John edited a comment on issue #6266: bug: ctx.lua#59 parse_graphql(ctx)

Chever-John edited a comment on issue #6266:
URL: https://github.com/apache/apisix/issues/6266#issuecomment-1033276700


   In my experience, try removing the '-i' from the request configuration command first.
   ```
   curl http://localhost:9080/apisix/admin/routes/7 -H 'X-API-KEY: edd1c9f034335f136f87ad84b625c8f1' -X PUT -d '
   {
       "methods": ["POST"],
       "name":"mockGetUser",
       "uri": "/v2/c4d7a195/graphql",
       "vars": [
           ["graphql_operation", "==", "query"],
           ["graphql_name", "==", "getUser"]
       ],
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "api.mocki.io": 1
           }
       }
   }'
   ```
   If that doesn't work, try looking at the log, and I'll cover the entire troubleshooting process later.


-- 
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: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org