We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have the following gateway.config.yml file
http: port: 8080 admin: port: 9876 apiEndpoints: lags: path: '/lags/*' serviceEndpoints: lags: url: 'http://lags:50001' policies: - response-transformer - basic-auth - cors - expression - jwt - log - oauth2 - proxy - rate-limit - verify-auth0-jwt pipelines: lags: apiEndpoints: - lags policies: - log: - action: message: ${req.ip} ${req.method} ${req.originalUrl} - rate-limit: - action: max: 1 windowMs: 1000 - jwt: - action: secretOrPublicKeyFile: ./key/pubKey.pem checkCredentialExistence: false - response-transformer: - action: headers: add: content-type: "'application/json'" - verify-auth0-jwt: - action: - proxy: - action: serviceEndpoint: lags changeOrigin: true
When I run it, I get this error
api-gateway_1 | error: [EG:policy] Could not find policy response-transformer, Please make sure the plugins providing such policy api-gateway_1 | is correctly configured in system.config file. api-gateway_1 | /app/node_modules/express-gateway/lib/policies/index.js:46 api-gateway_1 | throw new Error('POLICY_NOT_FOUND'); api-gateway_1 | ^ api-gateway_1 | api-gateway_1 | Error: POLICY_NOT_FOUND api-gateway_1 | at Policies.resolve (/app/node_modules/express-gateway/lib/policies/index.js:46:13) api-gateway_1 | at /app/node_modules/express-gateway/lib/gateway/index.js:72:29 api-gateway_1 | at Array.forEach (<anonymous>) api-gateway_1 | at bootstrap (/app/node_modules/express-gateway/lib/gateway/index.js:71:66) api-gateway_1 | at module.exports (/app/node_modules/express-gateway/lib/gateway/index.js:20:39) api-gateway_1 | at Main.run (/app/node_modules/express-gateway/lib/index.js:23:43) api-gateway_1 | at Object.<anonymous> (/app/server.js:6:4) api-gateway_1 | at Module._compile (node:internal/modules/cjs/loader:1101:14) api-gateway_1 | at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10) api-gateway_1 | at Module.load (node:internal/modules/cjs/loader:981:32) api-gateway_1 | at Function.Module._load (node:internal/modules/cjs/loader:822:12) api-gateway_1 | at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:79:12) api-gateway_1 | at node:internal/main/run_main_module:17:47
It is running in a docker container. I have the latest version of express-gateway defined in my package.json
The text was updated successfully, but these errors were encountered:
Try request-transformer
Sorry, something went wrong.
No branches or pull requests
I have the following gateway.config.yml file
When I run it, I get this error
It is running in a docker container. I have the latest version of express-gateway defined in my package.json
The text was updated successfully, but these errors were encountered: