Comments (6)
The following one request logs:
The first line "max_body_size":1000
is the plugin configuration set in the route.
The second line "max_body_size":2097152
is the plugin configuration set in the consumer.
2024/02/26 17:38:58 [error] 90#90: *144 [lua] wm-test.lua:48: phase_func(): trace_id: ac11e468b8dd269df4f9bec53394e6be {"_meta":{"disable":false},"max_body_size":1000}, client: 127.0.0.1, server: _, request: "POST /api3/page/save HTTP/1.1", host: "127.0.0.1:9080"
2024/02/26 17:38:58 [error] 90#90: *144 [lua] wm-test.lua:48: phase_func(): trace_id: ac11e468b8dd269df4f9bec53394e6be {"_meta":{"disable":false},"types":{"multipart/form-data":20000000},"max_body_size":2097152}, client: 127.0.0.1, server: _, request: "POST /api3/page/save HTTP/1.1", host: "127.0.0.1:9080"
However, I feel that this logic can be used more flexibly. ^_^!
from apisix.
During implementation, it was found that the same plug-in first executed the routing configuration plug-in, and then executed the consumer configuration plug-in. Is this correct?
What plugin is this and steps to reproduce?
from apisix.
I'm using a custom plugin, outputting logs during the rewrite phase for verification.
local core = require("apisix.core")
local _M = {
version = 0.1,
priority = 22000,
name = "wm-test",
schema = {
type = "object",
properties = {},
}
}
function _M.check_schema(conf)
return core.schema.check(schema, conf)
end
function _M.rewrite(conf, ctx)
core.log.error(core.json.encode(conf))
end
return _M
from apisix.
can you provide some logs about it ?
from apisix.
Related Issues (20)
- help request: 请问配置了clickhouse插件,为什么在控制面板看不到呀? HOT 5
- bug: allow_origins_by_metadata does not work without allow_origins HOT 4
- help request: Pubsub with Kafka ready for production ? HOT 2
- bug: Running APISIX in AWS with AWS CDK hangs on deployment HOT 1
- prometheus.lua:920: log_error(): Error while setting 'batch_process_entries{} 'no memory' while logging request HOT 2
- feat: developer portal
- bug: Apaceh apisix taking more than 2 seconds for some of the requests HOT 2
- help request: APISIX 3.8 and Consul Integration HOT 12
- bug: Cannot serialise table: excessively sparse array force: true HOT 3
- feat: proxy-rewrite plugin's execution phase should change from rewrite to access HOT 5
- bug: 插件 jwt-auth 的 function get_real_payload 存在 key 和 exp 被恶意修改的可能 HOT 15
- help request: log_rotate is not working HOT 2
- feat: enhance the cas-auth plugin to support JSON format responses HOT 2
- feat: uri_without_ticket function from cas-auth plugin need to generate uri based on container enviroment HOT 3
- help request: The number of udp socket is not released HOT 2
- help request: how to send mTLS requests in apisix from Lua plugin HOT 5
- bug: nginx-1.25.3 is Vulnerable, waiting for a new release of openresty HOT 2
- feat: Support to set the upstream host dynamically HOT 10
- proposal: allow proxy_next_upstream directive HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from apisix.