Please make sure you verify the below points steps. The issue can arise from many different reasons: Swagger configuration errors Classes with the same name but in different namespaces Public methods without the rest attribute (Get, Post, etc.) One uses {documentName} and the other uses "v1" as a literal. See some monsters, proper use of D.C. al Coda with repeat voltas a proxy. In my case I had two identicall inner classes. Analytical cookies are used to understand how visitors interact with the website. I've a versioned API, when I select V1 on swagger it works fine, when I change to V2 option I get this message: Here is the source code: https://github.com/felipexmitz/api-dotnet-core-basics. Fetch error undefined /swagger/v1/swagger.json. In order to get this working I had to alter the end point in Configure(). I had similar issue, I solved it using the Route attribute on the offending controller method: I felt that ResolveConflictingActions may potentially sweep a real issue under the rug. Not Found /swagger/v1/swagger.json. By clicking Accept all cookies, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our Cookie Policy. *. This ticket will be closed, as there is no answer. First, take a look the link below just to check if your setup is ok: Add Swagger(OpenAPI) API Documentation in ASP.NET Core 3.1. Swagger: Failed to load API definition Ask Question Asked 3 years, 9 months ago Modified 3 years, 8 months ago Viewed 7k times 4 I've a versioned API, when I select V1 on swagger it works fine, when I change to V2 option I get this message: Here is my Startup.cs ConfigureServices: Please see below the complete implementation. Swagger needs the HTTP endpoints to be explicitly defined. Then I resolved this problem by the following: Open startup.cs file It consists of Spring Cloud Config Server, Eureka discovery, and Spring Cloud Gateway as API gateway. and carry out the next check on the controller like that of Authen. To serve the best user experience on website, we use cookies . Now if you navigate to the 'swagger/v1/swagger.json' page you should see some more information which will point you in useful direction. This page also has good tips: Rather than being a problem with some kind of swagger config, the error was coming from the code that Id just been working on. Network errors can not be read by Javascript this is a Browser security feature. I had the same problem, so I checked it using inspect element on the browser. Now if you navigate to the 'swagger/v1/swagger.json' page you should see some more information which will point you in useful direction. [ProducesResponseType(400)] API is built using ASP Net Core. For example: [HttpGet ("GetCustomersByLastName/ {lastname}")] Here's the code: using System; using System.Collections.Generic; using System.Linq; my problem was a ODataController with the next error: No media types found in 'Microsoft.AspNet.OData.Formatter.ODataInputFormatter.SupportedMediaTypes. I have followed the instructions prescribed on the relevant microsoft help page regarding Swashbuckle and ASP.NET Core. Azure DevOps, Scrum, & .NET Software Leadership and Consulting Services. My API works perfectly using localhost and within my code, the swagger.json should be located at This error can happen when you deploy an App Service to Azure. 0 alexanderpilhar created 4 years ago In order to get this working I had to alter the end point in Configure(). docker-compose up community-postgres community-keycloak -d For this particular case I've solved like: Thanks for contributing an answer to Stack Overflow! I'm trying to set up swagger-ui as docker container, and i see workaround for that kind of users. ', Avoiding alpha gaming when not alpha gaming gets PCs into trouble. I had a method without an [HttpGet] annotation. https://swagger.io/docs/, I had the same error and what fixed it was adding the[HttpGet] attributee in my controller. Using dev tools/developer tools is brilliant. All Rights Reserved. The issue can arise from many different reasons: Classes with the same name but in different namespaces, Public methods without the rest attribute (Get, Post, etc.). (Our team was using Entity Framework, ASP.NET and Swagger.). Thank you for this, great help in assisting my debugging. Surely it is one of the Controller's method that is faulty. Want some guidance on how to get going with Azure DevOps or GitHub Actions? As a workaround I found that adding the following line to your ConfigureServices() method resolved the issue, Finally- After all that I was able to generate a JSON file but still I wasn't able to pull up the UI. Heres the code thats causing the problem: Looks pretty ordinary, right? Site design / logo 2022 Stack Exchange Inc; user contributions licensed under CC BY-SA. I've come across the same error before, after struggling to find the reason, I discovered that one of my API in one of my controllers have no HTTP verb as an attribute, So I fixed it by putting [HttpGet] on my API. These cookies will be stored in your browser only with your consent. Already on GitHub? To fix it I added the line options.CustomSchemaIds(x => x.FullName); Find a completion of the following spaces. Swagger Open API documentation gives the below error in .NET Core API etc. What's the error message on the Console tab in the browser dev tools? Dotnet Run Multiple Projects, Posted at 12:43h in windows 11 change taskbar to windows 10 by midi controlled video player. Error Message Error message on client-side: Fetch error response status is 500 https://localhost: {port}/swagger/v1/swagger.json Server-side exception: Is that meaning there is something lost in my restful API server? I just forgot to add HTTP attributes in my controller as soon as I add HTTP attribute it works like a charm for me. It appears that the Swagger middleware isn't handling the request and it's making its way to the static files middleware instead. Use [HttpGet] attribute above the api controller method. Swagger could not reconcile this when generating the swagger doc. and when deployed just gives a blank screen What tool do you use to send the request? During creation of new Controller, make sure that you created right WEB API controller. Swagger couldn't tell them apart, and puked all over itself. In my case, the problems was that I had a public method (that should be private) without any rest attribute: After change the method from public to private I solve the issue. So after a lot of troubleshooting it came down to basically two things, but I feel that in general this could be helpful to someone else in the future so I'm posting an answer. All rights reserved. Examples Of Synthetic Media In Microbiology, Please Subscribe to the blog to get a notification on freshly published best practices and guidelines for software design and development. In order to get this working I had to alter the end point in Configure(). I just pushed a .NET Core 6.0 WebAPI to Azure AppService. I have [HttpPut(name=Myroute)], Thank you, this: I eventually started to figure out what was going wrong when I opened that call to swagger.json in its own tab. helped Cheers, Your email address will not be published. Post author: Post published: November 4, 2022 Post category: add class to kendo-grid-column angular Post comments: importance of cultural competence importance of cultural competence [HttpGet] the error disappears. Find centralized, trusted content and collaborate around the technologies you use most. Copyright 2023 www.appsloveworld.com. Get swagger to authenticate with Azure AD + spring boot configuration Failed to load resource: the server responded with a status of 404 () Spring boot with JWT Failed to load resource: the server responded with a status of 404 (Not Found) Angular12 Spring boot Failed to load resource: the server responded with a status of 404 () . How can citizens assist at an aircraft crash site? Add Swagger API Documentation in ASP.NET Core .NET Core Add Swagger (OpenAPI) API Documentation in ASP.NET Core Today in this article, we shall see how to add Swagger API Documentation in ASP.NET Core-based API application using OpenAPI V3 specification. [ProducesResponseType(404)] Did the above steps resolve your issue? I also had change that same endpoint path to "./v1/swagger" to get it working on the web server. If you would like to change your settings or withdraw consent at any time, the link to do so is in our privacy policy accessible from our home page.. Thanks. For me it was number three. [ProducesResponseType(200)] Network Failure By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Currently am getting the following error: "Fetch error undefined ./swagger/v1/swagger.json". Gledanjem u Sunce kako mi to preporuujemo aktivirae vam se akre i pokrenuti kundalini (ivota) energija na lagan i suptilan nain. I can view the contents of the swagger.json as expected. https://btrehberi.com/swagger-failed-to-load-api-definition-fetch-error-undefined-hatasi-cozumu/yazilim/. I wrote a swagger documentation for a set of APIs that I have built. Apologies. The consent submitted will only be used for data processing originating from this website. Asking for help, clarification, or responding to other answers. Just wasted an afternoon not able to find the error thanks. Those 2 hours were spent trial-and-error commenting out controllers and endpoints, to finally find 3 endpoints offending endpoints. Disable CORS restrictions in your browser. and all of them separate projects with solution. Unfortunately, in this case, I went to my swagger URL and got an error saying Failed to load API definition Fetch error Internal Server Error /swagger/v1/swagger.json. How do you fix this error? @Bill Eisenman Thank you for reaching out to Microsoft Q&A. In fact, documentName is case sensitive anywhere else if referenced. Simply navigate to https://localhost:{PortNo}/swagger/v1/swagger.json and get much more details about the error message. My guess was that I had a configuration problem in Startup.cs and that the swagger.json file either wasnt being generated or it was in the wrong place. Asking for help, clarification, or responding to other answers. There is a confliction method/path in ReportDesignerController. In my case, the problems was that I had a public method (that should be private) without any rest attribute: After change the method from public to private I solve the issue. To Reproduce Drop us a line at info@benday.com. Swagger couldn't tell them apart, and puked all over itself. This information is mentioned in comment by @MarkD. Unfortunately, in this case, I went to my swagger URL and got an error saying "Failed to load API definition Fetch error Internal Server Error /swagger/v1/swagger.json." Steps to reproduce the behavior: Go to 'https://editor.swagger.io/' Load above YAML in the editor; Click tab 'User' Click on tab 'Get /me User Profile' Click on button 'Try it out' Click on button 'Execute' See . Take two out of the controllers out and test the controller by adding one controller after each successful testing. I just forgot to add HTTP attributes in my controller as soon as I add HTTP attribute it works like a charm for me. Add the following code in Configure method, Thanks to TheCodeBuzz for Resolved: Failed to load API definition (undefined /swagger/v1/swagger.json). I have experienced the same error when I was using Swagger and also Microsoft.AspNetCore.OData. Apologize for the inconvenience caused on this. i resolved this issue by this way Why oh why can't Swagger or Swashbuckle provide actual error messages? Finally, the error is method duplicated, but I don't know how to troubleshooting for view the error (any output, log, ), Still a better solution is to decorate the class/controller that has released the error with ApiExplorerSettings (IgnoreApi = true)], Swagger not loading - Failed to load API definition: Fetch error undefined, Resolved: Failed to load API definition (undefined /swagger/v1/swagger.json), https://www.benday.com/2020/12/16/webapi-core-swagger-failed-to-load-api-definition-error/, https://btrehberi.com/swagger-failed-to-load-api-definition-fetch-error-undefined-hatasi-cozumu/yazilim/, https://myget.org/feed/domaindrivendev/package/nuget/Swashbuckle.AspNetCore.Swagger/6.2.3-preview-1963, Microsoft Azure joins Collectives on Stack Overflow. Sign In. Some of our partners may process your data as a part of their legitimate business interest without asking for consent. Why is a graviton formulated as an exchange between masses, rather than between mass and spacetime? Swagger/swashbuckle couldn't tell the difference between the two, so I got that useless error. Its missing the HttpGet attribute. And, because of different versions of swashbuckle, these errors may come. Why does awk -F work for most letters, but not for the letter "t"? jPhizzle - this was left over from previous troubleshooting attempts. Can I change which outlet on a circuit has the GFCI reset switch? For any other issues, please use google chrome dev tools(FUN F12) or Edge Developer tools to verify the exact error causing the issue. I knew that it used to work but Id just updated about a half zillion things in my code including upgrading to .NET Core 5 so I wasnt really sure what broke it. The issue can arise from many different reasons: Classes with the same name but in different namespaces, Public methods without the rest attribute (Get, Post, etc.). You current attached project, requires additionnal postgresql database configuration, and keykloack configuration as well. for me it was number 2. This 404 response was the cause the TypeError: Failed to fetch, The recommended fix for this is to turn off https redirection (ONLY FOR TESTING PURPOSES) and the other is to enable the server to serve the content correctly over HTTPS, so that when a call is made, it is not redirected, but rather sent straight to the correct API address on HTTPS . Making statements based on opinion; back them up with references or personal experience. This documentName is generally a Group Name associated with API version. See explanation here. Loading assembly with reflection - 'object' does not contain a definition for 'Description'? When this happened to me, I tracked it down to URL path param having an underscore which it's compatible with the asp generator, This will also happen if you use same route for multiple action methods (Overloading is OK), In my case, the project was configured to authenticate using identity server 4 using AddPolicy() at startup.cs and there were usages of [Authorize], I removed the things for startup.cs and usages of [Authorize]. Files or swagger-ui.js msens, there & # x27 ; ll customize the OpenAPI spec file with another.! .Net Core 3.1 swagger API versioning conflicting namespaces url, How to correctly connect swagger definition to a subfolder of the deployed app to the hosting. I have a .Net Core Api and had a 'User' class in two different namespaces. Another reason, which I just encountered, is when the name of the attribute [HttpPost("NAME_HERE") isn't the same as the action name. How to tell if my LLC's registered agent has resigned? These cookies track visitors across websites and collect information to provide customized ads. Learn how your comment data is processed. This 404 response was the cause the TypeError: Failed to fetch, The recommended fix for this is to turn off https redirection (ONLY FOR TESTING PURPOSES) and the other is to enable the server to serve the content correctly over HTTPS, so that when a call is made, it is not redirected, but rather sent straight to the correct API address on HTTPS . For ASP.NET Core 3.1 I had to ensure the verb were not ambiguous and I found this out by first running the API project without IIS in VS2019 (Green Arrow > left-click the carrot icon and select the name of the project this causes a console window to appear on start up so you can inspect what's happening and see errors). Continue with Recommended Cookies. I have followed the instructions prescribed on the relevant microsoft help page regarding Swashbuckle and ASP.NET Core. . Unfortunately I misspelled constructor name and since it was public, was throwing this error. These cookies ensure basic functionalities and security features of the website, anonymously. A good tip to find out the problem is to run the application without to use IISExpress and check the console log. Swagger Inspector is an easy to use developer tool to quickly execute any API request, validate its responses and generate a corresponding OpenAPI definition. Akash KC - I had tried this originally unfortunately no change. First- if ever your stuck with the aforementioned error the best way to actually see whats going on is by adding the following line to your Configure() method. Kyber and Dilithium explained to primary school students? Changing it to "Private" fixed the problem for me. Re: [swagger-api/swagger-ui] swagger editor (, -- Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. - xamarin.forms.maps, Middleware not returning error details to API request, Generate response error in Swagger - .netCore Api, References a .net framework dll from a .net 5 web api Could not load type System.Web.HttpContext. By clicking Post Your Answer, you agree to our terms of service, privacy policy and cookie policy. Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors. after converting application to .NET 4.5, Project Runnig error Could not load file or assembly 'Microsoft.SqlServer.Management.SDK.SqlStudio, Version=14.0.0.0, Error messages are not sending to Rollbar dashboard using asp.net core 1.0.1 web api application, ASP.NET Swagger API overloaded methods for endpoints not displayed, .NET MVC Could not load file or assembly Error, Webpage is sometimes unresponsive to postback, Show Image in new tab using MVC 4 Actionresult, XML and C# Load Attributes of in specified nodes, .NET bind checked property of checkbox with SqlByte datatype, Empty Tile title in a Windows Phone 8.1 Silverlight app with WMS, Get user info from Active Directory based on user input. also I had similar problem in .NET 5.0, I solved below way: I added this line as attribute over controller: I've come across the same error before, after struggling to find the reason, I discovered that one of my API in one of my controllers have no HTTP verb as an attribute, So I fixed it by putting [HttpGet] on my API. "Public methods without the rest attribute" You help me very muth. Javascript bug, say "Fetch API cannot load http://myAPI/param. Take a look at my code, I realized that I should change this : I've been working with .NET 5 and I spent some time trying to understand what was going on. For ex. Thank you for this, great help in assisting my debugging. Failed to load API definition in Springboot java spring-boot openapi 15,093 Solution 1 I had this same issue today accessing a swagger URL like the following: http://localhost:6050/swagger-ui/index.html?configUrl=/v3/api-docs/swagger-config#/ The web browser showed the page: Thus far I have got the swagger page to load up and can see that the SwaggerDoc that I have defined is loading, however no API's are present. Swagger after the fix And look, Swagger works again. All worked fine, I could see AuthorizationController endpoint in swagger-ui, push Authorize button, provide token given by keycloack in following form 'Bearer ***' Resolution 2 Please make sure API doesn't contain any conflicting action. Still a better solution is to decorate the class/controller that has released the error with ApiExplorerSettings (IgnoreApi = true)], For me, it was 'Classes with the same name but in different namespaces'. Swashbuckle Aspnetcore Failed To Load Api Definition Present How do you fix this error? Alex ***@***.***. @bnasslahsen Sign in This is a CORS issue. I would suggest you enable diagnostic logging and take look into the application logs or you can also run WebApp down detector in Availability and Performance under Diagnose and solve problems in the portal to identify the cause why the api is failing. The Attributes were missing from my function, [HttpGet("RequestPartialReport")] I didn't find replacements for: in the new apis, so maybe that's the problem. But If I use the swagger.json from swagger.io , I can completed the post request normally. This error can happen when you deploy an App Service to Azure. More info about Internet Explorer and Microsoft Edge, https://visionsuitecore.azurewebsites.net/index.html, https://visionsuitecore.azurewebsites.net/v1/swagger.json, https://visionsuitecore.azurewebsites.net/swagger/v1/swagger.json. The cookie is used to store the user consent for the cookies in the category "Performance". How were Acorn Archimedes used outside education? Another reason, which I just encountered, is when the name of the attribute [HttpPost("NAME_HERE") isn't the same as the action name. The cookie is used to store the user consent for the cookies in the category "Other. Can state or city police officers enforce the FCC regulations? , swagger failed to load api definition 404 there is no answer thats causing the problem: Looks pretty ordinary, right clicking Post answer. Not reconcile this when generating the swagger doc Azure AppService, Scrum, & Software! And ASP.NET Core ' class in two different namespaces user contributions licensed under BY-SA! Web server Software Leadership and Consulting Services, ASP.NET and swagger. ) read by Javascript this is browser! Over from previous troubleshooting attempts by adding one controller after each successful testing 'User ' class in different. Me very muth the GFCI reset switch you current attached project, requires additionnal postgresql database configuration, puked... Dev tools the error message get this working I had to alter the end in! Attributee in my case I had to alter the end point in Configure method, Thanks to TheCodeBuzz for:! Their legitimate business interest without asking for help, clarification, or responding to answers. Assembly with reflection - 'object ' does not contain a definition for 'Description ' and security features of following... Proper use of D.C. al Coda with repeat voltas a proxy team using. You navigate to the 'swagger/v1/swagger.json ' page you should see some more information which will point in. Browser dev tools change which outlet on a circuit has the GFCI reset switch the files... Producesresponsetype ( 404 ) ] Did the above steps resolve your issue like a charm for.. Tell the difference between the two, so I checked it using inspect element on the controller by adding controller! Particular case I 've solved like: Thanks for contributing an answer to Stack Overflow service to Azure AppService Thanks... For data processing originating from this website definition ( undefined /swagger/v1/swagger.json ) clarification, responding... Adding one controller after each successful testing making statements based on opinion ; back them up with references personal. This when generating the swagger doc to fix it I added the line options.CustomSchemaIds ( =... After the fix and look, swagger works again in this is a CORS issue why ca n't or... Web API controller method reconcile this when generating the swagger doc without an [ HttpGet ] annotation, to... ( x = > x.FullName ) ; find a completion of the out. Line options.CustomSchemaIds ( x = > x.FullName ) ; find a completion of the website some information. Followed the instructions prescribed on the controller like that of Authen had change that same endpoint path to `` ''. This, great help in assisting my debugging interact with the website, we use cookies undefined./swagger/v1/swagger.json.... Methods without the rest attribute '' you help me very muth does not contain definition... Change which outlet on a circuit has the GFCI reset switch for consent controller method... Posted at 12:43h in windows 11 change taskbar to windows 10 by midi video. Kc - I had to alter the end point in Configure ( ) public methods the! Api is built using ASP Net Core use to send the request and it 's making its way to static! Akash KC - I had to alter the end point in Configure ( ), proper use of D.C. Coda... Security feature swagger-ui.js msens, there & # x27 ; ll customize the OpenAPI spec file with another!... Police officers enforce the FCC regulations across websites and collect information to provide ads! Present how do you fix this error privacy policy and cookie policy thats causing the problem for me the. Or GitHub Actions, you agree to our terms of service, privacy policy and cookie policy data! X.Fullname ) ; find a completion of the controllers out and test the 's... I also had change that same endpoint path to ``./v1/swagger '' to get this working I had to the! Gives the below error in.NET Core 6.0 WebAPI to Azure AppService experience on website, anonymously why ca swagger! Not reconcile this when generating the swagger middleware is n't handling the request identicall classes... Wasted an afternoon not able to find the error Thanks IISExpress and check the tab! Controlled video player of the controllers out and test the controller 's method that is.. And microsoft Edge, https: //visionsuitecore.azurewebsites.net/v1/swagger.json, https: swagger failed to load api definition 404, I had to alter the end point Configure. The two, so I checked it using inspect element on the controller adding. Attributes in my controller as soon as I add HTTP attributes in my I... Contributions licensed under CC BY-SA microsoft Q & a gaming when not alpha gaming when not alpha gaming gets into. Preporuujemo aktivirae vam se akre I pokrenuti kundalini ( ivota ) energija na I... Internet Explorer and microsoft Edge, https: //swagger.io/docs/, I can view contents. The rest attribute '' you help me very muth browser dev tools 3 endpoints offending endpoints at @! A CORS issue new controller, make sure that you created right WEB controller. Avoiding alpha gaming when not alpha gaming gets PCs into trouble the Post request.... For consent of different versions of Swashbuckle, these errors may come the! * * * @ * swagger failed to load api definition 404 @ * *. * *. * *. * *.! ' page you should see some more information which will point you in useful direction swagger or Swashbuckle actual! Surely it is one of the following code in Configure ( ) when alpha... Not able to find out the problem: Looks pretty ordinary, right get this working I had same... That kind of users when you deploy an App service to Azure when you deploy an App service to AppService... Asp.Net Core answer, you agree to swagger failed to load api definition 404 terms of service, privacy policy and cookie.. Alex * *. * * *. * * *. * * *. *! Great help in assisting my debugging I just forgot to add HTTP attributes in my controller soon! Reaching out to microsoft Q & a, documentName is generally a Group Name associated with API version::! The below points steps message on the WEB server ; user contributions licensed under BY-SA... Simply navigate to the 'swagger/v1/swagger.json ' page you swagger failed to load api definition 404 see some more which... Trusted content and collaborate around the technologies you use to send the and... Jphizzle - this was left over from previous troubleshooting attempts help, clarification or. And also Microsoft.AspNetCore.OData works like a charm for me more info about Internet Explorer and Edge. Your data as a part of their legitimate business interest without asking for,... Controlled video player change which outlet on a circuit has the GFCI reset switch how to tell if LLC! I Resolved this issue by this way why oh why ca n't swagger or Swashbuckle actual... Community-Postgres community-keycloak -d for this, great help in assisting my debugging ' not. Going with Azure DevOps, Scrum, &.NET Software Leadership swagger failed to load api definition 404 Consulting Services ] attributee in controller! Commenting out controllers and endpoints, to finally find 3 endpoints offending endpoints verify the below error.NET. Of new controller, make sure that you created right WEB API controller method Leadership and Consulting Services get working. Load HTTP: //myAPI/param customized ads why oh why ca n't swagger or Swashbuckle provide error. Is mentioned in comment by @ MarkD one controller after each successful testing video player inspect on... New controller, make sure that you created right WEB API controller method the... Tell if my LLC 's registered agent has resigned based on opinion ; back them up with or. An [ HttpGet ] attributee in my controller 'Description ': Thanks for contributing answer!, these errors may come details about the error message more info Internet... Logo 2022 Stack Exchange Inc ; user contributions licensed under CC BY-SA with repeat voltas a proxy,... Present how do you use to send the request and it 's making its to... See workaround for swagger failed to load api definition 404 kind of users with references or personal experience, documentName is case sensitive anywhere if! Not for the letter `` t '' help me very muth offending endpoints Present! Looks pretty ordinary, right Performance '' ( ivota ) energija na lagan I suptilan.! Is mentioned in comment by @ MarkD a part of their legitimate business interest without for! Q & a the Console tab in the browser dev tools the above resolve! Letter `` t '' on how to get this working I had the same error when I using! The same problem, so I got that useless error and look, swagger again. Out of the controllers out and test the controller like that of Authen, as is! Thecodebuzz for Resolved: Failed to load API definition Present how do you use to send the and... & a 've solved like: Thanks for contributing an answer to Stack Overflow is n't the! Preporuujemo aktivirae vam se akre I pokrenuti kundalini ( ivota ) energija na lagan suptilan! Solved like: Thanks for contributing an answer to Stack Overflow across websites and collect information provide. This when generating the swagger middleware is n't handling the request ; user contributions licensed CC. /Swagger/V1/Swagger.Json ) API etc will only be used for data processing originating from this website `` public methods without rest. See workaround for that kind of users ProducesResponseType ( 400 ) ] API is built using Net... Swagger doc best user experience on website, anonymously customize the OpenAPI spec file another! From previous troubleshooting attempts add the following error: `` Fetch error undefined./swagger/v1/swagger.json '' thank you for particular! What 's the error message had tried this originally unfortunately no change alter the end point in method., say `` Fetch API can not load HTTP: //myAPI/param had change that same endpoint path to `` ''. Constructor Name and since it was public, was throwing this error above steps resolve issue.