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 2019/11/08 00:50:25 UTC

[GitHub] [incubator-apisix] tom2nonames opened a new issue #820: bug: 上传 gRpc proto 内容超过4096个字节报错

tom2nonames opened a new issue #820: bug:  上传 gRpc proto 内容超过4096个字节报错
URL: https://github.com/apache/incubator-apisix/issues/820
 
 
   ### 上传 gRpc proto 内容超过4096个字节报错
   
   
   ### Environment
   
   * apisix version : 0.8
   * OS: CentOS 7.6
   
   ### Minimal test code / Steps to reproduce the issue
   1. shell cmd
   ```bash
   curl http://127.0.0.1:9080/apisix/admin/proto/1 -X PUT -d 'xxxxxxxxx len=4311'
   ```
   
   2. error message
   ```json
   {"error_msg":"invalid configuration: property \"content\" validation failed: string too long, expected at most 4096, got 4311"}
   ```
   
   3.  code
   
   ```
   _M.proto = {
       type = "object",
       properties = {
           content = {
               type = "string", minLength = 1, maxLength = 4096
           }
       },
       required = {"content"},
       additionalProperties = false,
   }
   ```
   
   希望 proto内容的尺寸上限改为一个合理的值.
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services