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
1
answer
90
views
Not routing specific route with Ocelot and return code 200
I know there is a similar topic here, but looking into the answers there, none of them seems to work for me. I have a project using Ocelot as an API Gateway and it's only routing the requests to the ...
0
votes
0
answers
243
views
Ocelot API Gateway in .NET 8 not showing downstream services in Swagger UI
I'm implementing an Ocelot API Gateway in .NET 8 with Swagger integration, but my downstream services aren't appearing in the Swagger UI. Here's my setup:
Service 1 is running on port 5001, and it ...
1
vote
0
answers
57
views
Consul returns container ID instead of hostname when using Service Discovery in Docker (Ocelot + Consul)
I'm using Consul for service discovery in a Docker Compose environment. However, when my API Gateway (using Ocelot) tries to call a service, Consul returns the container ID instead of the expected ...
0
votes
1
answer
63
views
Ocelot and AWS XRay Issue .NET 8
I added the ocelot routes and sent the requests and so far everything is fine, the problem started when I wanted to add AWS X-Ray to have the traceability of everything, and it works in part, the ...
0
votes
1
answer
111
views
Ocelot Endpoints not added on swagger definitions
I am trying to use Ocelot as gateway for my microservices and wanted to see available endpoints through swagger. I have followed the steps from this link however it seems it is not added in the ...
0
votes
0
answers
134
views
Unable get Ocelot to use Serilog for its logging
I am developing an asp.net gateway application on top of Ocelot. I am using Serilog as a logger.
Problem: Ocelot package itself is not writing to this logfile, for example, bad requests etc, even ...
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 ...
0
votes
1
answer
124
views
Problem with Windows Authentication in ASP.NET Core Middleware - Continuous Redirect to Login
I'm having an issue with middleware configuration in my ASP.NET Core application that runs on IIS with Windows Authentication enabled. My application uses proxy middleware to forward requests to ...
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 ...
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 ...
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....
0
votes
0
answers
214
views
Ocelot gateway startup time is very slow
I have an API Gateway using ocelot 15.0.6 which includes more than 1500 routes.
Startup time of the API gateway process is very slow, about 4 minutes.
Is there any quick or easy way to improve startup ...
1
vote
0
answers
822
views
Ocelot Gateway not passing authorization header to API Routes in ASP.NET Core 6 MVC
I have a solution in ASP.NET Core 6 MVC with 3 projects:
Web Application Portal (UI)
Ocelot Gateway
API
As you can see, I have multiple projects, and each is linked with each other.
The project ...
0
votes
0
answers
544
views
How to set default route in Ocelot
I have created a separate ASP.NET Core Web API using Ocelot. The project will act as API gateway for other services.
What should be the configuration to call controllers (action methods) in API ...
0
votes
1
answer
892
views
Ocelot throwing error in .NET 8 microservice project
I am working on a micro service application - a simple online shop. I am learning micro services and want to use Ocelot as my gateway project, but I have a problem in the project.
Right now this is ...
0
votes
1
answer
367
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:/...
1
vote
0
answers
274
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/...
2
votes
1
answer
962
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 ...
0
votes
1
answer
247
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 ...
1
vote
2
answers
1k
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&...
0
votes
0
answers
670
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 ...
0
votes
1
answer
955
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 ...
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 ...
5
votes
1
answer
2k
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, ...