-
Notifications
You must be signed in to change notification settings - Fork 85
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
Getting 404 on endpoints when using the docker image V2.0.2 #61
Comments
Yep, we've found an odd behaviour, and the host you send the requests to needs to be the same as the $ docker run -it -d --name prom2teams -e PROM2TEAMS_CONNECTOR="myConnectorURL" -e PROM2TEAMS_HOST="172.17.0.2" -p 8089:8089 idealista/prom2teams:2.0.2 Now you could navigate to http://172.17.0.2:8089/ and you'll see the swagger interface. Sending alarms to the endpoints will work as expected. We will take a look and try to improve this behaviour as soon as possible. Feel free to contribute sending us a PR. Regards, |
I'm trying to run this on Kubernetes. So ideally the app doesn't care what the hostname is if it's running in a container. As Kubernetes dynamically assigns IP addresses to containers when they are created and uses service manifests to allow the containers to communicate to each other using a DNS name. I can try to take a look. |
Ah this explains it. I was wondering where this odd behaivour came from. |
#61: Fix getting 404 (SERVER_NAME removed from flask app)
Hey guys, It looks good. I'm able to hit both api versions and the Swagger UIs. Thanks for the quick turnaround on this. |
Prerequisite: Steps to reproduce: Also, I tried but I wasn't able to hit the swagger-ui. Would you mind providing some solution around this new version if there's a fix already in place. Thanks! |
Prerequisites
Description
Getting 404 on endpoints when using the docker image V2.0.2
Steps to Reproduce
Hey guys, the documentation is a little confusing on what the appropriate endpoint is for this application. When using the docker image, I am unable to hit the endpoints. I'm getting a 404. I tried http://host:port/v2 and http://host:port/v2/Connector. Also I wasn't able to hit the swagger-ui. I was hoping for some clarification on this. Thanks!
The text was updated successfully, but these errors were encountered: