cancel
Showing results for 
Search instead for 
Did you mean: 

Getting 404 on API call

SOLVED
Highlighted
New Contributor

Getting 404 on API call

Hi everyone!

I've imported my API to SwaggerHUB.Created a mock server for it and it worked fine. I've created a new version for this API because I wanted to add some examples. Created a new mock server for this, but every call return 404. What could go wrong here?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

Re: Getting 404 on API call

Hi @vzalan 

When you created a new version it doesn't always automatically update the Auto Mock server.  Try removing the servers object and saving the API and it should come back.

Check out https://community.smartbear.com/t5/SwaggerHub/404-when-accessing-API/m-p/170780 for more details.

Hope that helps,

Tim

View solution in original post

4 REPLIES 4
Highlighted

Re: Getting 404 on API call

Hello,

 

Can you please reach out to our support team using Chat in the SwaggerHub application so we can gather additional information that would allow us to log a support case and troubleshoot this issue for you. We would not have enough information to help here so working withour support team we will be able to advise more appropriately.

 

Thks,

Laura

Highlighted

Re: Getting 404 on API call

Hi @vzalan 

When you created a new version it doesn't always automatically update the Auto Mock server.  Try removing the servers object and saving the API and it should come back.

Check out https://community.smartbear.com/t5/SwaggerHub/404-when-accessing-API/m-p/170780 for more details.

Hope that helps,

Tim

View solution in original post

Highlighted
New Contributor

Re: Getting 404 on API call

By removing the servers object you mean the host and basePath in the API spec? I tryed that and it did not help. I might be doing something wrong.

 

BTW when is the chat support available? I've tryed at different times but it seems like we are in different timezone because I can't find available agents.

New Contributor

Re: Getting 404 on API call

Ahh I get it, I had to tick Update host settings when creating a mock server. Thank you for the help!

New Here?
Join us and watch the welcome video:
Announcements