Questions tagged [express-gateway]

Express Gateway is a microservices API Gateway built on Express.js.

Express Gateway is a bunch of components which declaratively build around Express to meet the API Gateway use case. Express Gateway’s power is harnessed the rich ecosystem around Express middleware.

118 questions
0
votes
0 answers

Kubernetes: not able to access outside service from my kubernetes pod

I have a gateway running as a pod and accessing it via NodePort service on port 3XXXX on a server. I am able to send traffic to this gateway. But I am not able to forward traffic from this gateway pod to a service that is on a different and…
0
votes
0 answers

Configuring yargs through package.json and gitBash

I know that such a question has already been here, but using gitBash helped, so in my case it did not help, not using gitBash, PowerShell, maybe someone was able to fix the problem during this time?
Smoke
  • 21
  • 4
0
votes
0 answers

Response Transformer error: Policy Not Found

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 -…
NduJay
  • 760
  • 1
  • 10
  • 23
0
votes
0 answers

How to link API requests with request parameters to graphql server query running on another PORT

I have an API-Gateway running on some port. There is an API end point: fetch/products/. Request coming from this API end point with some request parameters needs to be sent to graphql server. How to dynamically send those JSON request parameters to…
0
votes
1 answer

I cannot access the data I want on Express-Gateway

Good work guys. My project that I developed with Node JS is running at 8001 PORT http://localhost:8001/companies_getAll (return data) I will use EXPRESS-GATEWAY as I want to install a microservice build. However, although I make the settings below,…
UAL100
  • 21
  • 8
0
votes
1 answer

How do i use multiple paths and endpoints in Express Gateway with my RESTAPI?

Currently working on an Express Gateway that handles call for an RESTAPI and a GraphQL microservices. The GraphQL pipeline works fine, but the pipeline for the RESTAPI is what I'm struggling with. I made a simple CRUD functionality RESTAPI that can…
0
votes
1 answer

Express-gateway config for Kubernetes services

Im trying to configure api-gateway for my micro service study. I created a pod as a auth-depl and auth-src service for this pod. Also I have another pod&service as links-depl and links-serv. And I want to make a api-gateway for. these services. The…
akasaa
  • 1,282
  • 4
  • 13
  • 33
0
votes
1 answer

Not able to run express-gateway on heroku - failed to bind to $PORT

I'm trying to have the basic example express-gateway running on Heroku http: port: ${HTTP_PORT:-8080} hostname: ${HOST:-localhost} admin: port: 9876 host: localhost apiEndpoints: api: host:…
0
votes
1 answer

Modifying graphql query variable using express-gateway

I'm trying to modify a graphql query variable using express-gateway. The code on the gateway is as below, const axios = require("axios"); const jsonParser = require("express").json(); const { PassThrough } = require("stream"); module.exports = { …
painotpi
  • 6,894
  • 1
  • 37
  • 70
0
votes
1 answer

How to get express-gateway working in kubernetes?

I'm building a microservice app where I used nginx-ingress to wire-up all my services which worked fine but now I would like to add some advanced features like jwt-authentication. Instead of implementing it in each service I thought I would use an…
0
votes
0 answers

Connecting React Production build with Express Gateway

Our React Development build runs flawless with Express Gateway setup on localhost. After build React for production and when we run serve -s build login page comes as it is the entry point of the app. It gets 200 ok response when we put sign-in…
mlhazan
  • 1,116
  • 2
  • 15
  • 24
0
votes
1 answer

Express Gateway adding scopes to endpoints

I have a working autoregister gateway function, which fills my gateway-config.yml. We will be using scopes so I added scopes to postData, but it doesn't add scopes. const postData = JSON.stringify({ host: '*', path: currentKey, …
Vanyo
  • 1
  • 1
0
votes
1 answer

Express Gateway degraded causing huge delays on requests

I have a Gateway configured to handle some services, but there is a huge performance issue and I don't know how can I address this. This is the config for this particular service: http: port: 3020 hostname:…
Jose Raul Perera
  • 778
  • 1
  • 7
  • 35
0
votes
2 answers

Use RedisDB with Express-Gateway. How to read DB credentials from .ENV?

I am using a Redis DB to use an Express-Gateway on Heroku. I would like to know how to set Redis credentials as a unique URL-param, instead of using separated vars. Right now, Express Gateway reads credentials from the file system.config.yml, where…
DeLac
  • 1,068
  • 13
  • 43
0
votes
3 answers

How to bind Express-Gateway "host" configuration property to localhost with Nginx reverse proxy?

Express-Gateway is unable to bind to localhost or 127.0.0.1 Calling endpoints directly works as expected: curl http://localhost:5000/ip curl http://localhost:5010/erp Accessing all endpoints via the ExpressGateway on port 5000 works as…
Nditah
  • 1,429
  • 19
  • 23