apache/apisix

bug: grpc-transcode cant transcode empty array list to [] , but it did to {}

Chiusa

#11.440 aperta il 26 lug 2024

 (13 commenti) (0 reazioni) (1 assegnatario)Lua (2860 fork)batch import
buggood first issue

Metriche repository

Star
 (16.597 stelle)
Metriche merge PR
 (Merge medio 6g 8h) (109 PR mergiate in 30 g)

Descrizione

Current Behavior

when back to front server, grpc transcode plugin cant transcode empty list (array) to [] , but to {} . use grpc example demo : image

when list has content , it did well . image

Expected Behavior

response empty list expect to get [] . not {}

Error Logs

No response

Steps to Reproduce

  1. apisix 3.9 latest
  2. grpc server golang
  3. postman

Environment

  1. apisix 3.9 latest
  2. grpc server golang
  3. postman

Guida contributor