-
Notifications
You must be signed in to change notification settings - Fork 185
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
Make curl invocations reliable #96
Comments
the services does have liveliness and readiness probes add to avoid this empty result or HTTP 502. but i will be soon moving examples to use Quarkus so we should see faster boot up. @markusthoemmes - any thoughts ? |
It'd be interesting to know what response codes are returned. @syedriko could you add the You might see 404s briefly after your service becomes ready which equates to Istio's propagation delay. We've got an item to fix that on our backlog, although it's not high prio atm and there's also no plan as to how to fix it currently. |
Here you go:
Now thinking about it, may be running curl with -v is the way to go. It makes it clear what's going on instead of just exiting silently and we can explain in the tutorial that it's normal to see 404s for a while (is it?) but that the invocation will eventually succeed. |
@syedriko yes, for now the 404s are "works as intended" (they are also retried by upstream's e2e tests). knative/serving#3312 captures the requirement. |
@syedriko - if this expected behaviour then shall we close this bug? |
I suppose we can, as long as we explain in the text that a curl invocation can produce no output and the student may need to repeat it until it succeeds? |
Describe the bug
In Build Template
curl -H "Host: event-greeter.knativetutorial.example.com" $IP_ADDRESS
-H "Content-Type: application/json"
-d '{"message": "test message"}'
The above command produces no output and returns 0 for an exit code. A repeated invocation works fine and produces the expected result. It seems like a timeout on the curl part due to the target pod taking its time to spin up.
To Reproduce
Run the curl command in the Build Template chapter of the tutorial.
Expected behavior
curl makes a successful invocation every time.
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: