jcarrasco-odf opened a new issue, #9561:
URL: https://github.com/apache/apisix/issues/9561

   ### Current Behavior
   
   I'm triying to configure 
   "response-rewrite": {
         "body_base64": true
       }
    
   to decode the body content but I always get 
   
   config_etcd.lua:634: failed to fetch data from etcd: failed to check item 
data of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer
   
   ### Expected Behavior
   
   An response with the body content base64 decoded
   
   ### Error Logs
   
   apisix 2023/05/27 21:36:52 [error] 54#54: *15874062 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 53#53: *15874058 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 55#55: *15874066 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 49#49: *15874052 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 52#52: *15874071 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 59#59: *15874056 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 51#51: *15874068 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 50#50: *15874078 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer                                              
                                                             
    apisix 2023/05/27 21:36:52 [error] 56#56: *15874083 [lua] 
config_etcd.lua:634: failed to fetch data from etcd: failed to check item data 
of [/apisix/routes] err:failed to check the configuration of plu 
    gin response-rewrite err: invalid base64 content,  etcd key: 
/apisix/routes, context: ngx.timer   
   
   ### Steps to Reproduce
   
   1 Run APISIX via Docker image
   2 Create a route with
   
     "plugins": {
       "response-rewrite": {
         "body_base64": true
       }
     }
   
   ### Environment
   
   - APISIX version (run `apisix version`):
   - Operating system (run `uname -a`):
   - OpenResty / Nginx version (run `openresty -V` or `nginx -V`):
   - etcd version, if relevant (run `curl 
http://127.0.0.1:9090/v1/server_info`):
   - APISIX Dashboard version, if relevant:
   - Plugin runner version, for issues related to plugin runners:
   - LuaRocks version, for installation issues (run `luarocks --version`):
   


-- 
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-unsubscr...@apisix.apache.org.apache.org

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

Reply via email to