Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 12 23:56
    dependabot[bot] labeled #1033
  • Aug 12 23:56
    dependabot[bot] opened #1033
  • Aug 12 23:56

    dependabot[bot] on npm_and_yarn

    Bump path-parse from 1.0.5 to 1… (compare)

  • Aug 04 17:12
    jayndu opened #1032
  • Jul 29 08:08
    codezilla91 commented #1011
  • Jul 14 18:10
    krishna-gennext opened #1031
  • Jul 06 14:49
    pprathameshmore edited #1030
  • Jul 06 14:39
    pprathameshmore opened #1030
  • Jun 29 15:18
    XVincentX closed #1029
  • Jun 29 15:18
    XVincentX commented #1029
  • Jun 29 07:58
    woderchen opened #1029
  • Jun 15 12:33
    isatria edited #1028
  • Jun 15 12:21
    isatria opened #1028
  • Jun 11 22:42
    Shamith005 commented #873
  • Jun 11 06:59
    izakfhy commented #873
  • Jun 07 02:54
    philipsjp26 commented #696
  • Jun 07 00:35
    philipsjp26 commented #1004
  • Jun 06 16:05
    dependabot[bot] labeled #1027
  • Jun 06 16:05

    dependabot[bot] on npm_and_yarn

    Bump ws from 6.2.1 to 6.2.2 Bu… (compare)

  • Jun 06 16:05
    dependabot[bot] opened #1027
Tejas-udeshi
@Tejas-udeshi
As he is only authorized to use /hello and /world api only
Tejas-udeshi
@Tejas-udeshi
I dont think such mechanism exists currently in express-gateway
@samuelkitazume:matrix.org Can you comment ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
If you cannot do that through the built in authorization... you can use a custom plugin for that
Tejas-udeshi
@Tejas-udeshi
ok thanks ! any suggested Plugins ? @samuelkitazume:matrix.org
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Hmm I meant you can code your custom plugin. In the project I was working on early this year I had to rely on AD groups, so I came up with a bunch of plugins...
Its very easy and straightforward
Tejas-udeshi
@Tejas-udeshi
oh okay got it.. Thanks alot! @samuelkitazume:matrix.org
Tarun Pai
@painotpi
I'm trying to implement helmet (https://www.npmjs.com/package/helmet) as a custom policy within express-gateway, but I don't have access to the gatewayExpressApp to apply this globally at the gateway level, is there another way to implement this?
1 reply
Simon Emms
@MrSimonEmms

Hello. Can someone explain what I'm doing wrong please? I'm forwarding to a service, but it appears to be adding a trailing slash. If I hit localhost:9999/api/v1/apiary, it forwards to apiary:3000/crud/ (with the trailing slash) even though I've configured without the trailing slash (see gist for config - https://gist.github.com/MrSimonEmms/461ec255a73d55c09b4d6e945be0df5d)

If I remove the /crud on the service, it doesn't put a trailing slash on

sudeepatpiserve
@sudeepatpiserve
how to remove a property from response array of object?
if the response is: [{"test":"test","test2":"test2"},{"test":"test","test2":"test2"}] I would like to remove test property
Andre
@andrequeiroz2
Hello gentlemen, I'm having trouble finding good examples of tutorials on express-gateway, could someone recommend me?
Thanks
polydevuk
@polydevuk
New to EG but finding it confusing as there only seems to be JSON and YAML. Where is the JS code that I can hack?
Miguel Durán
@miguel.386984_gitlab
Hi
RobbieS82
@RobbieS82
Can the website that discusses the headers option under proxy be updated with an example? I input a rule to add a header, but then my gateway starts complaining that no service endpoint is present
Vibha
@vibhaG
I am new to Express gateway and from the Spring world- does express come with support for an endpoint equivalent to spring cloud gateways lb:/app or Zuul’s service endpoint?
Alwan Alyafi Mulyawan
@Alwanly
Hi, I am new to Express gateway. how to run express gateway app on google kubernetes engine ?
1 reply
sunil193
@sunil193
Hello guys, is it way to send multipart form data (file) through gateway?
Armen
@chakhalyan1
Hi All, is it possible gateway configs used JSON format without YAML, if yes how ?
3 replies
Mauro de Pascale
@mdepa
Hi all, I'm exploring EQ as an option for a kubernetes project: is it possible to configure EG to perform TLS edge termination ? So the connection is protected up to the gateway and just http to the hidden service ? Sorry if the question sounds silly: I'm new to the tool.
Nuengnakhap
@Nuengnakhap
how to fix PayloadTooLargeError: request entity too large ?
shivam sharma
@Mr-4evER
hey, any idea for express-gateway on windows, it says eg is not working
1 reply
Krishna M
@krishna-gennext_gitlab
Hi
Please help for this error PayloadTooLargeError: request entity too large express api gateway
2 replies
RaedMou
@RaedMou
Hello, is there some documentation / articles about integrating a service discovery or service mesh with EG ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Not that Im aware of, RaedMou
RaedMou
@RaedMou
@samuelkitazume:matrix.org Do you have some implmentation propositions ?
Samuel Kitazume
@samuelkitazume:matrix.org
[m]
Not actually. That is something I wanted a while ago, but didnt have the budget to revisit. That would be awesome to have
Krishna M
@krishna-gennext_gitlab
Screenshot from 2021-07-09 10-20-58.png
Please help this error
shivam sharma
@Mr-4evER
@krishna-gennext_gitlab increase the limit of the middleware parser
Krishna M
@krishna-gennext_gitlab
is there any configuration?
Linus6
@Linus6
Hi, is there any way to check endpoint exists or not ? Currently its giving cors error. (front tries to access Endpoint which is not registered in config).
shivam sharma
@Mr-4evER
@krishna-gennext_gitlab go check express.json() in documentation of express, there you find a property name limit for express.json implement that
shivam sharma
@Mr-4evER
@Linus6 there is a http request TRACE, go check that out.
Linus6
@Linus6

Hi,
I have this config

apiEndpoints:
storeMs_send:
path: "/storems/store/order"
methods: ["POST", "OPTIONS"]

storemsapi:
apiEndpoints:

  - storeMs_send
policies:
  - cors:
      - action:
          origin: "*"
  - body-parser:
  - token-validation:
  - proxy:
      - action:
          serviceEndpoint: storems
          changeOrigin: true

serviceEndpoints:
storems:
url: ${STORE_MS_URL}

If front-end makes request to "/storems/store/orderAll"(unregistered endpoint in gateway).
Idealy it should return 404 but Gateway is returning CORS error(as cors is first policy in pipeline).
Intruducing a wildcard path would solve it(returns 404) but, is this the right way.

aneesh-rastogi
@aneesh-rastogi
Hey

I am trying to install a plugin using the command:
eg plugin install express-gateway-plugin-keycloak-connect

But I am getting the below error:
Just found a .yo-rc.json in a parent directory.
Setting the project root at: /Users/aneeshrastogi/my-gateway
Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead.
Configuring yargs through package.json is deprecated and will be removed in a future major release, please use the JS API instead.
node:internal/modules/cjs/loader:943
throw err;
^

Error: Cannot find module 'Run npm audit for details.'
Require stack:

  • /Users/aneeshrastogi/my-gateway/node_modules/express-gateway/lib/plugin-installer.js
  • /Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/generators/plugins/configure.js
  • /Users/aneeshrastogi/my-gateway/node_modules/yeoman-environment/lib/store.js
  • /Users/aneeshrastogi/my-gateway/node_modules/yeoman-environment/lib/environment.js
  • /Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/environment.js
  • /Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/index.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:940:15)
    at Function.Module._load (node:internal/modules/cjs/loader:773:27)
    at Module.require (node:internal/modules/cjs/loader:1012:19)
    at require (node:internal/modules/cjs/helpers:93:18)
    at ChildProcess.<anonymous> (/Users/aneeshrastogi/my-gateway/node_modules/express-gateway/lib/plugin-installer.js:94:33)
    at ChildProcess.emit (node:events:365:28)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:290:12) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    '/Users/aneeshrastogi/my-gateway/node_modules/express-gateway/lib/plugin-installer.js',
    '/Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/generators/plugins/configure.js',
    '/Users/aneeshrastogi/my-gateway/node_modules/yeoman-environment/lib/store.js',
    '/Users/aneeshrastogi/my-gateway/node_modules/yeoman-environment/lib/environment.js',
    '/Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/environment.js',
    '/Users/aneeshrastogi/my-gateway/node_modules/express-gateway/bin/index.js'
    ]
    }
    node:child_process:729
    throw err;
    ^

Error: Command failed: /Users/aneeshrastogi/my-gateway/node_modules/.bin/eg plugin install express-gateway-plugin-keycloak-connect
at checkExecSyncError (node:child_process:707:11)
at execFileSync (node:child_process:726:15)
at exports.executeInScope (/usr/local/lib/node_modules/express-gateway/bin/execution-scope.js:37:5)
at Object.exports.bootstrap (/usr/local/lib/node_modules/express-gateway/bin/environment.js:11:7)
at Object.<anonymous> (/usr/local/lib/node_modules/express-gateway/bin/index.js:9:46)
at Module._compile (node:internal/modules/cjs/loader:1108:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1137:10)
at Module.load (node:internal/modules/cjs/loader:988:32)
at Function.Module._load (node:internal/modules/cjs/loader:828:14)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:76:12) {
status: 1,
signal: null,
output: [ null, null, null ],
pid: 47993,
stdout: null,
stderr: null
}

I have installed node multiple times on my system, but I am still not able to install any express gateway plugins.
Can anyone help with this, please?
aneesh-rastogi
@aneesh-rastogi
I was able to resolve it by removing node_modules and package-lock.json inside the folder where gateway is installed and then using npm install
Earlier I was removing them from the place they were installed after installing node
Teelon
@Teelon
im using express-gateway fine on my local machine but when it deploy it to my online hosting it doesn't work the same. is there any documentation on deploying ? i cant seem to find any
Musabbir Mamun
@musabbir_gitlab

2021-09-09T12:51:24.392Z [EG:gateway] info: gateway http server listening on :::8080
node:events:355
throw er; // Unhandled 'error' event
^

Error: listen EACCES: permission denied 127.0.0.1:9876
at Server.setupListenHandle [as _listen2] (node:net:1293:21)
at listenInCluster (node:net:1358:12)
at GetAddrInfoReqWrap.doListen [as callback] (node:net:1496:7)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:71:8)
Emitted 'error' event on Server instance at:
at emitErrorNT (node:net:1337:8)
at processTicksAndRejections (node:internal/process/task_queues:81:21) {
code: 'EACCES',
errno: -4092,
syscall: 'listen',
address: '127.0.0.1',
port: 9876
}

I'm getting this error. What to do? TIA

Akhil Kulshrestha
@akul0108
I'm using express-gateway that is working fine in localhost but it's not working in hosting server. is there any documentation for deployment in hosting server??
Safwen
@trabelsi_safwen_twitter
Hello, does express gateway support WebSocket connections?
Saif Ur Rahman
@saifsmailbox98
Hi, how to log the whole request? Method, URL, Query Params, Headers, Body, etc?
pipelines:
  corePipeline:
    apiEndpoints:
      - coreApi
    policies:
      - log:
          - action:
              message: "${req.method} ${req.originalUrl} ${JSON.stringify(req.headers)} ${JSON.stringify(Object.keys(req))} ${JSON.stringify(req.complete)}"
      - proxy:
          - action:
              serviceEndpoint: coreService
              changeOrigin: true
              preserveHeaderKeyCase: true
this is what I tried but couldn't get the body, etc