tzssangglass commented on issue #7125:
URL: https://github.com/apache/apisix/issues/7125#issuecomment-1280188826

   > @tzssangglass sorry for the late reply. Here are the steps.
   > 
   > 1. enable `enable_http2: true` in `node_listen`
   > 2. start the apisix
   > 3. all requests with h1.1 will return 502 directly. You can deploy 
[penpot](https://help.penpot.app/technical-guide/getting-started/) and access 
it through apisix which will get this error.
   
   I cannot be reproduced.
   
   my step:
   
   `config.yaml`:
   
   ```
   deployment:
     role: traditional
     role_traditional:
       config_provider: etcd
     admin:
       admin_key:
         - name: admin
           key: edd1c9f034335f136f87ad84b625c8f1  # using fixed API token has 
security risk, please update it when you deploy to production environment
           role: admin
     node_listen:
       - port: 9080
         enable_http2: true
   ```
   
   route config:
   
   ```
   curl http://127.0.0.1:9180/apisix/admin/routes/1 -H 'X-API-KEY: 
edd1c9f034335f136f87ad84b625c8f1' -X PUT -i -d '
   {
       "uri": "/get",
       "upstream": {
           "type": "roundrobin",
           "nodes": {
               "httpbin.org:80": 1
           }
       }
   }'
   ```
   
   
   test:
   
   ```
   curl http://127.0.0.1:9080/get
   {
     "args": {},
     "headers": {
       "Accept": "*/*",
       "Host": "127.0.0.1",
       "User-Agent": "curl/7.79.1",
       "X-Amzn-Trace-Id": "Rxxxxxx",
       "X-Forwarded-Host": "127.0.0.1"
     },
     "origin": "xxxxxx",
     "url": "http://127.0.0.1/get";
   }
   ```


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