Questions tagged [ocelot]

Ocelot is a .NET API Gateway.

Filter by
Sorted by
Tagged with
0 votes
1 answer
38 views

Redirect to secondary host when primary host is unavailable in Ocelot API Gateway (C#, .NET Core, Ocelot)

I would like to use Ocelot API Gateway to connect services, but if the primary host is unavailable it needs to redirect to secondary host. For example in below configuration i have two ports one is ...
Raviteja Mulukuntla's user avatar
0 votes
1 answer
31 views

Ocelot routing by body

Is it possible to route request based on value in body using Ocelot? For example: body: { "Token" : 1 // route to http://google.com } body: { "Token" : 2 // route to http:/...
Szymson's user avatar
  • 1,002
0 votes
1 answer
27 views

Authorization in microservices arch .net

I'm quite new to the .NET microservices architecture and right now I'm implementing a .Net app for learning management and it consists of several microservices and an API gateway - Ocelot. So the ...
Andreea Elena's user avatar
1 vote
0 answers
25 views

Ocelot API Gateway as Outbound Gateway (External Calls)

I'm new with Ocelot API Gateway. I see several implementation in .NET Core when we get External Request to the Microservices via the API Gateway (Ocelot). https://learn.microsoft.com/en-us/dotnet/...
Markus's user avatar
  • 11
1 vote
1 answer
71 views

How to get all C# microservices together in same Swagger page

I'm developing a platform where I have 3 microservices and an API Gateway done in Ocelot. The problem is that I want to get all microservices in a Swagger page like : I don't want implement Swagger ...
Salva P's user avatar
  • 15
0 votes
0 answers
29 views

MMLib.SwaggerForOcelot: Possibility to overwrite the swagger endpoints json file at runtime

I'm using ocelot as an Api gateway toghether with several microservices. At each deploy microservice A will increase his version so i'm looking for a way to overwrite the version placed in swagger ...
Elena2020's user avatar
1 vote
1 answer
60 views

I need to create an Ocelot API Gateway with a SecurityKey per Tenant. Ideas?

The task before us is to create a client facing api for a multi-tenant application using .NET Core. We are gravitating towards Ocelot as the solution for our api gateway. As a multi-tenant provider a ...
Jamey McElveen's user avatar
-1 votes
0 answers
38 views

Https connection stays open in chromium browser, debugging an ocelot webapp

The issue: We have an ASP.Net (.net 6/7) using ocelot, but also using some Mvc routes. When debugging (over https) inside a chromium based browser, the browser keeps sockets open - but only for ocelot ...
user1515791's user avatar
1 vote
1 answer
194 views

authorization via identity server and use of ocelot

There are 2 microservices, an ocelot gateway, a web client and an authorization server (https://github.com/skoruba/Duende.IdentityServer.Admin). I want to check authorization on the gateway. gateway ...
Evgeny's user avatar
  • 41
0 votes
0 answers
29 views

Ocelot reverse proxy - Two requests at same time (For different users) returns the same data

I have a microservice application that's using NetCore API and Ocelot as reverse proxy. I'm having the following issue: When two users log into my application they're redirected a page where the ...
Andres Ramos's user avatar
0 votes
0 answers
15 views

UseOcelot and Hot Chocolate

i have gateway with ocelot and Hot Chocolate grapqhl after my initialisation app.UseHttpsRedirection(); app.MapGet("/", () => "Ok"); app.MapGraphQL(); app.UseAuthorization(); ...
Patrik Urban's user avatar
0 votes
1 answer
39 views

Api gateway with identity server 4

I create idenyity server 4 project, create api gateway and api resource My question Why need to handle jwt configuration in api gateway although I handled configuration jwt in api resource, I know ...
Mohamed Mansour's user avatar
0 votes
0 answers
42 views

Request Not Going Through API Gateway Microservices

I am using .net core 7 web API project as a API gateway to entry point for my another Microservices deployed on Azure app services. A few days back everything was working fine; now request now going ...
Khan Faizan's user avatar
0 votes
0 answers
32 views

Ocelot request not going through the desired priority

I have implemented Ocelot API gateway in my project { "DownstreamPathTemplate": "/api/{suffix}", "DownstreamScheme": "http", "...
jhardik's user avatar
0 votes
0 answers
64 views

Don't route specific route in Ocelot

I have a load balancer/API. This Process runs on 3 ports 5000, 5001 and 5002. Every request that comes in on ports 5000 and 5001 with the base route /api should be routed to the specified hosts. But ...
adkop's user avatar
  • 15
0 votes
0 answers
27 views

How to proxy request to different services on same url using Ocelot base on client ip

I have configuration below { "DownstreamPathTemplate": "/api{catchall}", "DownstreamHostAndPorts": [ { "Host": "my-...
Paddi's user avatar
  • 77
0 votes
0 answers
130 views

ocelot.json Getting "GlobalConfiguration" values with appsettings.json

I set up an Api Gateway using Visual studio 2022. The library I use is "ocelot" Everything works fine in the development environment, but when I wanted to deploy with docker-compose, it didn'...
Fatih mzm's user avatar
  • 395
0 votes
0 answers
39 views

Exception UnSupported media type using reset client in .NET 4.7.2 calling .NET 7 Ocelot gateway url

I have Abp project in .NET 7 and using Ocelot gateway when calling using REST client or http client. From .NET 6 it is working fine, but when calling from .NET framework, it throws an exception ...
Mamdouh Eltawel's user avatar
1 vote
2 answers
288 views

ASP.NET Core 7.0 Minimal Web API with Ocelot as API gateway redirects to downstream service

I have an ASP.NET Core 7.0 Minimal Web API with Ocelot as API gateway. I've uploaded it to my production server and use this configuration in ocelot.json config file: { "GlobalConfiguration&...
hdv212's user avatar
  • 83
0 votes
0 answers
33 views

Cannot aggregate multiple requests from the same microservice using Ocelot

I'm trying to aggregate two requests from the same microservice using Ocelot, but it seems to not be working (when I'm calling the aggregate request route the response is 404). I'm not even sure ...
gabriel neagu's user avatar
0 votes
1 answer
64 views

Why my Gateway returns with 403 status code?

I have a service called Catalog. When I make a request as follows to access this service normally and take courses through the service, the request is answered successfully. localhost:5011/api/courses ...
Peace's user avatar
  • 1
0 votes
0 answers
153 views

Can Ocelot API gateway have it own logic for call multiple API's with a single request from the client?

there is one transaction from the client that need to call multiple API's from the microservices. so i'm thinking can ocelot handle the logic that if that request was sent to ocelot, ocelot can route ...
BijiDabes's user avatar
0 votes
0 answers
54 views

Why is the ocelot API gateway when published runs on localhost:5000 instead of the base URL?

I have an API gateway using ocelot (latest), when run in Visual Studio, it runs on the base UR, but when I publish it into an exe it runs on localhost:5000. This is my launchsettings.json: { "...
Rohit Sharma's user avatar
0 votes
1 answer
83 views

How to host my react app made from vite into an API made by ocelot?

I have made an API gateway using ocelot which runs on port 8000 and my react app runs on 3000 but when I am trying to redirect it using the API gateway I get error 404 I tried making a react app using ...
Rohit Sharma's user avatar
0 votes
1 answer
98 views

Keep client's IP in http header in Ocelot

Similar to this question which has no answer: Retrieving client IP address in a microservice application with Ocelot gateway My project is in .NET 7 and made by Ocelot library (latest version) to hide ...
maryam mohammadbagheri's user avatar
1 vote
2 answers
78 views

Ocelot Gateway Post requests Issue

I am using ocelot as a gateway and the get requests are working perfectly but the post requests returns 400 bad request Bad Request but this same request is working on postman and returning 200 as the ...
Waleed Khaled's user avatar
0 votes
0 answers
39 views

How to check substring in Ocelot claims check?

We have an Ocelot gateway in front of our microservices. We need to check claims in a jwt. Claims come from custom claims requests from adb2c. Since adb2c doesn't support arrays for custom claims, we ...
dzg's user avatar
  • 14.1k
0 votes
0 answers
13 views

Securing an MVC4 Application with OAuth from Separate .NET Core API using API Gateway

I have an existing MVC4 application that I want to enhance by securing a specific endpoint using OAuth, with GitHub as the authentication provider. However, I would prefer not to implement the OAuth ...
Shah Zeb's user avatar
0 votes
0 answers
347 views

How to implement different ocelot.json for every microservices in .NET 6

I am new to microservices architecture and already implemented micro services and API Gateway with single ocelot.json file as shown in below image. You can see there is one ocelot.json file in ...
Varun Savaliya's user avatar
1 vote
0 answers
30 views

SignalR microservice routing through Ocelot Gateway

I have to develop several microservices which will be routed through ocelot microservice. All the other microservices are working fine when used with ocelot but Unable to connect signalR microservice ...
Rahul's user avatar
  • 36
1 vote
1 answer
391 views

Ocelot Gateway Healthcheck

I want to add an Ocelot Gateway healthcheck, but This is nowhere to be found as default nuget package from AspNetCore.HealthChecks.??? . Is this not done usually? When adding the healthcheck myself, ...
RubenHerman's user avatar
  • 1,714
0 votes
0 answers
66 views

First request timeout in microservices architecture. (IIS 10)

The company i'm working is implementing (kinda) a microservices architecture. it's half implemented because it has no containers, no orchestrator and they are experimenting because they don't know ...
SirHectorin's user avatar
0 votes
0 answers
346 views

Dynamically replace downstream Host in Ocelot gateway

I have an ocelot gateway that is routing API requests to multiple microservices that are supporting multitenancy. However, I wanted to use the azure storage APIs to simplify the solution instead of ...
Praveen Valavan's user avatar
0 votes
2 answers
295 views

CORS Missing 'Access-Control-Allow-Origin'

I'm trying to do a typescript fetch and got some troubles with CORS. FROM http://localhost:3000 (solidjs web app) THROUGH https://localhost:6331 (Ocelot gateway) TO http://localhost:1339 (asp.net ...
RubenHerman's user avatar
  • 1,714
0 votes
0 answers
101 views

I wrote a gateway with Ocelot to my API that I wrote with .Net. However, I want to convert this Http Request Gateway to WebSocket

This is my regular Http Request : { "UpstreamPathTemplate": "/gateway/User/GetList?{page}&{pageSize}", "UpstreamHttpMethod": [ "Get" ], ...
Redingis's user avatar
0 votes
0 answers
197 views

ocelot Failed to match Route configuration for upstream path with {everything} is not work as expected

I am using ocelot v17.0.0 to forward my requests to downstream services, with configuration as below it matches only requests with a following path like /api/route1/1 or /api/route1/1?key1=value1: { ...
thirdDeveloper's user avatar
0 votes
0 answers
126 views

Why am I consistently receiving a 403 error in Ocelot API Gateway even after trying to modify Role using JwtTokenHandler in C#?

I am actually working on ApiGateway with Ocelot C# but I am always getting 403 error due to the Role. Here is my code : Ocelot.json: `"UpstreamPathTemplate": "/api/api", ...
Goutsse's user avatar
2 votes
0 answers
81 views

Ocelot gatway doesn't work with selected port

I want to use ocelot middleware with full dns address. But If I sent request to selected port postman says ECONNREFUSED. If I change the port it doesn't help me. I added ocelot.json and ocelot....
Farid Huseynli's user avatar
0 votes
0 answers
278 views

Deployment of microservices on Kubernetes with Swagger .NET Core using an istio virtual service

The swagger doc doesn't load well with the virtual service but if I test it without the virtual service, it works fine in kubernetes. El nuget del swagger es MMLib.SwaggerForOcelot. Virtual Service ...
Sanchez Jesus's user avatar
0 votes
0 answers
46 views

How to manage multi-tenant request and directs the request to targets

We have designed a multi-tenant application and deployed this on AWS, as of now for each tenant an instance of application is deployed on different node managed by EKS cluster and using kubernates ...
Rohitesh's user avatar
  • 1,564
2 votes
2 answers
96 views

How to add JsonArrayObject in JsonArray

Here I am trying to implement Ocelot for API Gateway for my multiple micro services. I have Seven Micro services which have lots of API almost 550 APIs. While preparing ocelot.json it is a huge file ...
Iswar's user avatar
  • 2,241
1 vote
1 answer
248 views

Docker Compose - Ocelot Api GetWay - Call API

I have on question about docker, I have my api called IdentityService for example with this configuration, launchsetting.json: "IdentityService": { "commandName": "...
Jordi's user avatar
  • 11
0 votes
1 answer
412 views

Solution Explorer of Visual Studio 2022 not updated after creating an ASP.NET Core Web API project inside the solution folder for mircoservices

Hi Overflow Community, I am new to .NET development and am having some trouble getting started right off the bat. I will list out the steps that I have done to be clear about what is going wrong. I ...
thetti27's user avatar
0 votes
0 answers
146 views

getting 404 error in ocleot ApiGateway in k8s cluster

I am deploying a microservices project in Minikube I am getting this error 404 not found when trying to hit any of my services API when I get the logs from Ocelot I get this message Ocelot.Responder....
yazon hamwi's user avatar
1 vote
0 answers
240 views

Retrieving client IP address in a microservice application with Ocelot gateway

I have a microservice application consisting of three microservices: Gateway using Ocelot Identity microservice Core API microservice However, when I try to retrieve the client's IP address from the ...
rahim soufiane's user avatar
1 vote
2 answers
374 views

Mapping API with some Microservices with Ocelot duplicates controller name

i'm asking for help here because i'm trying to make an API Gateway with Ocelot and when I map the services with this { "UpstreamPathTemplate": "/api/Product/{everything}", ...
Daniel Macedo Crespo's user avatar
0 votes
0 answers
65 views

Why does strcmp always give 0

I build a doubly linked list which orders strings in alphabetical order as you add them. The strings come from an input file and I use getopt to get the input file from the command line. When i test ...
Luis V's user avatar
  • 1
0 votes
2 answers
399 views

What could be causing the `HttpContext.Request.Form.Files` collection to appear empty when uploading a file through an Ocelot gateway

I have an endpoint for uploading a file that needs to be bound with my current Ocelot gateway. When I try to upload a file directly using the API, I can normally access the file through the ...
AbuDawood Oussama's user avatar
1 vote
0 answers
27 views

Trying to add button to fogbugz customization so we can condense some articles

Fogbugz has updated the way that their pages are generated... They call it ocelot. This JQuery no longer works in their customizations. The goal of the code was to take any of the text generated with &...
eranner's user avatar
  • 11
0 votes
0 answers
331 views

How can I use the default controllers in an ASP.NET Web API to respond to requests when using Ocelot?

I'm using Ocelot with .NET 7 in a simple API project that only has a WeatherForecast controller. I want to route all requests that begin with '/OtherRequest' to an external API on the domain '...
Brokrammer's user avatar

1
2 3 4 5 6