-
Notifications
You must be signed in to change notification settings - Fork 35
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
Proxy settings never save when submitting invalid host #1822
Comments
@brylie It happens because we don't have the special conditions in this line. errors: {
["failed [422] {"errors":{"servers[0].host":["Could not resolve host: no address for proxy.api"]}}"]
}
http_status: 422
result: {} I detected it when was debbuging |
@bajiat Interesting |
@marla-singer thanks for the details. How difficult do you suppose this would be to fix? |
@brylie If me guess is correct, it's about a hour. We don't save the proxy settings, if host is invalid, yes?And notify user about invalid host |
@marla-singer Sold! This is also yours, if you have time in addition to #1699 |
@brylie So we need explicitly to tell them that they need to go to Settings tab? |
@bajiat Nope, It's obviously, I think |
That would mitigate the issue. We would still have a potential problem if API Umbrella rejects the Proxy settings for any reason, since we are not handling failure in the code @marla-singer mentioned. |
I'm ok with alerting user and going back to edit mode. |
We can decide whether we want to check host already when API is added to Catalog later. |
When submitting proxy settings for an API with an invalid host, the Proxy Settings form never submits. The end-user is not informed of any problem, even though API Umbrella likely rejected the submission since the host does not exist.
Steps to reproduce
Expected result
The proxy form should indicate to the user that the submission has failed, exiting the 'pending' state.
Observed result
The proxy form remains in the 'pending' state, never completing the submission.
Screencast
The text was updated successfully, but these errors were encountered: