298 questions
0
votes
1
answer
28
views
"No operations defined in spec!" when using MMLib.SwaggerForOcelot to build combined swagger for Ocelot
This is my ocelot configuration...
{
"Routes": [
{
"UpstreamPathTemplate": "/api/test/{url}",
"DownstreamPathTemplate": "/api/{url}",...
0
votes
3
answers
3k
views
404 error: Trying to deploy ocelot gateway inside docker to call microservices
We have developed two ASP.NET CORE (5.0) microservices and deployed them inside docker
http://localhost:28621/stock
http://localhost:62362/user
Both are easily accessible from browser.
We have used ...
1
vote
2
answers
818
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 ...
0
votes
2
answers
2k
views
Can API Gateway point a to a Web Service (SOAP) or the alternative would be can SOAP be used in a microservice so that the API Gateway point to it?
So I'm using dotnet core 3.1, and working with a client that requires access to a web service. I was wondering if it's possible to use/integrate an API Gateway architecture so that the API Gateway ...
1
vote
0
answers
281
views
Connection refused when using Ocelot as API gateway in docker compose
I'm playing around with docker and I'm currently trying to set up some microservices with multiple .net 8 API's, a gateway and an angular frontend.
I got 2 api's up and running and working without ...
0
votes
1
answer
134
views
How to merge multiple Ocelot configuration files for different microservices in .NET?
I have a .NET project with ocelot:
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
var builder = WebApplication.CreateBuilder(args);
builder.Configuration.AddJsonFile("ocelot.json&...
-1
votes
1
answer
200
views
Ocelot - Error connecting to downstream service - Connection refused
i am trying to connect .Net web API using ocelot gateway. Routing works fine when i run ocelot and API respectively without docker.
With docker desktop (using 4.38.0) it shows 502 in browser with ...
2
votes
1
answer
3k
views
Ocelot route in ASP.NET Core 6.0
I'm using ocelot to create a simple API gateway in my ASP.NET Core 6.0.
Here is my program.cs code :
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
var builder = WebApplication....
0
votes
1
answer
222
views
Hostname could not be parsed while executing the API gateway
While executing the API gateway (micro services) using Ocelot, I'm getting:
warn: Ocelot.Responder.Middleware.ResponderMiddleware[0]
requestId: 0HN3PALTATQMC:00000001, previousRequestId: No ...
0
votes
2
answers
2k
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 ...
0
votes
2
answers
362
views
"IDX10500: Signature validation failed." error with self-hosted KeyCloak and API Gateway Ocelot
So as stated in the title, I am having issues with the token validation in dotnet application. Here is the program.cs code:
using Microsoft.AspNetCore.Authentication.JwtBearer;
using Microsoft....
0
votes
1
answer
74
views
I cannot see endpoints of microservice in swagger in ocelot
cs file code
using API;
using Confluent.Kafka;
using Ocelot.DependencyInjection;
using Ocelot.Middleware;
var builder = WebApplication.CreateBuilder(args);
var producerConfig = new ProducerConfig();
...
1
vote
1
answer
173
views
After migrating the project from .NET Core 3.1 to .NET 8.0, I'm getting http 401 unauthorized
I migrated my project from .NET Core 3.1 to .NET 8 and the Ocelot library to the latest version.
Before migrating the project authentication functionality was working fine. After migrating the project ...
2
votes
3
answers
3k
views
Ocelot Identity Server: message: Request for authenticated route {api-path} by was unauthenticated
I am getting the following error in a docker container. I am trying to create api gateway using ocelot and authentication by identity server.
message: Client has NOT been authenticated for {api-path} ...
6
votes
3
answers
12k
views
API Gateway Ocelot .Net Core 6.1 Setup
The .Net 6 have removed the Start up Class and i am not able to find out how to configure Ocelot in new .Net 6 structure. I have found two methos
using Ocelot.DependencyInjection;
using Ocelot....
1
vote
2
answers
563
views
Azure DevOps Pipeline Json Variable Substitution - Ocelot.json
I have the following file ocelot.json and I want to change the Host object of each route configured inside the file through a variable. I want to change the localhost to the correct hostname through a ...
2
votes
0
answers
64
views
Unable to connect signalr with ocelot
I can access and use the signalR service myself using javascript. But when I try it via Ocelot, I get the following errors.
I checked the cors settings.
I checked the ocelot.json file.
I checked ...
1
vote
0
answers
558
views
Ocelot and .Net framework web API
I recently created a .NET Framework web API and not .NET Core due to reliance on old libraries.
Also, we had the requirement to have an API gateway, with this we used ocelot but it keeps on failing ...
1
vote
0
answers
842
views
.Net 6 with Ocelot 18 returns error 404 when navigating to an URL of the gateway after publish in IIS
I created a gateway with Ocelot and Net6, I configured the .json file and tested locally and everything works fine, but when I publish it to IIS it gives me a 404. When I go to the error it is setting ...
4
votes
1
answer
4k
views
Ocelot RouteClaimsRequirement does not recognize my claims and returns 403 Forbidden
I have configured ocelot in Linux containers with multiple micro service. For restricting some of the micro services I'm using RouteClaimsRequirement. I have administrator role as claim, but when I ...
1
vote
1
answer
42
views
config watchdog.net for ocelot api gateway
i want to config watchdog.net for ocelot API gateway
but when i login to dashboard watchdog and refresh for load data from database watchdog.net i had this error:
and this is my program.cs
builder....
6
votes
0
answers
8k
views
Micro Services with API Gateway - Ocelot vs Envoy [closed]
I have a .NET Core based micro service architecture and have several micro services. We chose Ocelot as API Gateway for routing, aggregation & security implementation. During our architectural ...
1
vote
0
answers
110
views
Minimizing IdentityServer4 Round Trips in Microservice Architecture with Ocelot
I'm currently working on a microservice architecture project that uses Ocelot for APIGateway, and IdentityServer4 for authentication and authorization. Recently, I transitioned from self-contained ...
3
votes
1
answer
169
views
how to manage multi threading and batchReading in Ocelot Load Balancer with custom load balancer
I have a worker that sends Batchrequests to the api which is implemented my custom load balancer in ocelot,in this customLoadBalance , I want to distribute 70% of every batchRequests to HostAndPort1 ...
2
votes
0
answers
526
views
ASP.NET Core 5 - Force Ocelot Routing to use URL Encoding
I have a little issue with Ocelot Gateway v17.
I'm using URL Encoding to pass some parameter to controller. Like this:
https://localhost:44350/api/analytics/alarms/RD-A-001%2F1/1
Testing in my laptop,...