-
Notifications
You must be signed in to change notification settings - Fork 291
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
Lab no. 7 : Azure app not the calling APIs #43
Comments
Thanks for reaching out @husseinsa and glad to see your using Azure Pet Store. Can you please try adding the following 4 config properties PETSTOREPETSERVICE_URL=[your ip for ingress] I'm wondering if I introduced a dependency on these APIM params that do not come up until a later guide. If this works please let me know and I will update this guide. |
@chtrembl This is not the issue, since this endpoint petstorepetservice/v2/pet/findByStatus?status=available doesn't work locally (running containers) or an azure (running on kubernetes) 501 error when passing the status However, when removing the status, it complains about missing parameters which means its hitting the API I am wondering now why the application is working locally but not on Azure. Is the app hitting different endpoint that we are not aware of. I've tried adding the parameters you mentioned above, and it didnt work. |
I was able to reproduce the 400 errors and made a fix that should be all set with the latest commit, as mentioned I reproduced the 400 errors, not sure on that 501, looks like an extra slash in the above screenshot ":8081//" Please pull latest commit The "HOST" header is now a conditional header and only set when PETSTORE_APIM_HOST is present (not needed until guide 9, didn't realize this was breaking the NGINX ingress, thanks for pointing this out, I should write some regression tests :) ) make sure your application.yml still has the petstore.apim.host property commented out (it should be by default until guide 9) from your local machine if you can still get a 200 from the following: (looks like the cluster is stopped when I tried with yours)
then try: Azure App Service set: PETSTOREAPP_SERVER_PORT=8080 Please keep me posted. Thanks. |
It's working now. Thanks! |
Thanks for assisting @husseinsa, you are now a collaborator, welcome aboard!. Please submit a PR. |
Hi @chtrembl
I am using this project to introduce Azure to our folks.
When following lab no. 7, I updated the Application Settings "PETSTOREPETSERVICE_URL" to point to the public IP of Ingress controller:
However, when I browse the App, and navigate to "Shop by breeds", it doesn't work:
Troubleshooting:
curl -v http://20.246.239.92/petstorepetservice/v2/pet/findByStatus?status=available
The text was updated successfully, but these errors were encountered: