-
Notifications
You must be signed in to change notification settings - Fork 60
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Http 500 error when navigating to Swagger UI #465
Comments
Hi @sameer-coder, thank you for reporting this. There is improved handling of regex routes in Lambda in v3.31.1. Please could you let us know if this resolves the issue? |
Hi @sameer-coder, there were some further fixes required to static asset handling in Lambda to get this working. These are released in v3.31.2. |
Thanks @outofcoffee I will deploy again and report back on the issue |
Hello, Thanks for the update. I no longer get a 500 error but now I am facing the same problem mentioned in this open issue At the moment, Imposter serves the swagger UI at The endpoints in the OpenAPI spec still work fine because I can specify Probably we could add an env var to set a Thanks for the help! |
Hi @sameer-coder, from v3.32.0 you can set the environment variable For example:
...will make the spec UI accessible at http://localhost:8080/api/core-mock/v1/_spec/ |
Amazing! Thank you 🙏 |
Hello,
We have deployed imposter on AWS lambda using the
imposter-awslambda.zip
package. We are using the Open API plugin to serve content from a bunch of open API 3.0.1 specs. Everything works great except when we navigate to the Swagger UI, it throws a 500 error. This is only happening with the imposter instance deployed on AWS Lambda. Locally, running with imposter.jar it is working fine.Any help would be appreciated.
Stack trace
The text was updated successfully, but these errors were encountered: