-
Notifications
You must be signed in to change notification settings - Fork 33
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
feaure/unique proxy backend base paths #1603
Conversation
This does not seem to give any validation message when a duplicate 'frontend_prefix' is used. |
Still can't save API Proxy backend. A check for uniqueness works but in some cases can't submit the form. |
I am getting duplicate key errors, perhaps related to data sync from nightly.umbrella.apinf.io. |
I am able to add a Proxy Backend from Chromium, so we seem to have a Firefox bug related to the Disable API Key field. |
The uniqueness check appears to work in Chromium browser, but there is no User Interface message. I see this in the Chromium console: errorClass {error: 409, reason: "WriteError({"code":11000,"index":0,"errmsg":"E1100…-aa49-40363121cf57"},"_id":"baahyt4AK9w5f9k3L"}})", details: undefined, message: "WriteError({"code":11000,"index":0,"errmsg":"E1100…40363121cf57"},"_id":"baahyt4AK9w5f9k3L"}}) [409]", errorType: "Meteor.Error"}
details: undefined
error: 409
errorType: "Meteor.Error"
message: "WriteError({"code":11000,"index":0,"errmsg":"E11000 duplicate key error collection: meteor.proxyBackends index: frontend_prefix_1 dup key: { : null }","op":{"proxyId":"qPDcJkDmLbJbBxYf7","apiId":"DRsTjo7vbEeHAWK3a","apiUmbrella":{"name":"Google 2","frontend_host":"nightly.umbrella.apinf.io","backend_host":"google.com","backend_protocol":"http","servers":[{"host":"google.com","port":80}],"balance_algorithm":"least_conn","url_matches":[{"frontend_prefix":"/google/","backend_prefix":"/"}],"settings":{"disable_api_key":false},"id":"49f65fad-518e-41b9-aa49-40363121cf57"},"_id":"baahyt4AK9w5f9k3L"}}) [409]"
reason: "WriteError({"code":11000,"index":0,"errmsg":"E11000 duplicate key error collection: meteor.proxyBackends index: frontend_prefix_1 dup key: { : null }","op":{"proxyId":"qPDcJkDmLbJbBxYf7","apiId":"DRsTjo7vbEeHAWK3a","apiUmbrella":{"name":"Google 2","frontend_host":"nightly.umbrella.apinf.io","backend_host":"google.com","backend_protocol":"http","servers":[{"host":"google.com","port":80}],"balance_algorithm":"least_conn","url_matches":[{"frontend_prefix":"/google/","backend_prefix":"/"}],"settings":{"disable_api_key":false},"id":"49f65fad-518e-41b9-aa49-40363121cf57"},"_id":"baahyt4AK9w5f9k3L"}})" Also, the form fields are reset when this error occurs. |
# Conflicts: # proxy_backends/collection/apiUmbrellaSchema.js
Closing this. New PR #1722 |
Closes #1200