Ocelot API Gateway: Intermittent 'Failed to Load API Definition' When Idle #2190
Unanswered
robbypranata010118
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Robby, officially Ocelot team doesn't support any Swagger features. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am developing an application using
I’m actually not sure where this issue originates – whether it’s from Ocelot, Consul, or the web API that I created. The issue I’m facing is that sometimes Ocelot's Swagger responds with "failed to load API definition,"
even though when I check in Consul, the web API service is still registered and in a healthy status.
I’ve also checked, and the web API can be accessed directly if I go to the downstream address.
I suspect this issue happens when the application is idle for a certain period without any access. So far, my workaround has been to restart the web API service to get it working again.
(FYI, my web API is deployed on IIS, and I’ve set the idle timeout to 0.)
Has anyone else experienced this, and how did you handle this issue?
Beta Was this translation helpful? Give feedback.
All reactions