|
12 | 12 | API_KEY_REQUIRED_STARTING_AT,
|
13 | 13 | REDIS_HOST,
|
14 | 14 | REDIS_PASSWORD,
|
15 |
| - API_KEY_REGISTRATION_FORM_LINK, |
| 15 | + API_KEY_REGISTRATION_FORM_LINK_LOCAL, |
16 | 16 | TEMPORARY_API_KEY,
|
17 | 17 | URL_PREFIX,
|
18 | 18 | )
|
|
29 | 29 | ROLLOUT_WARNING_RATE_LIMIT = "This request exceeded the anonymous limit on requests per minute."
|
30 | 30 | ROLLOUT_WARNING_MULTIPLES = "This request exceeded the anonymous limit on selected multiples."
|
31 | 31 | _ROLLOUT_WARNING_AD_FRAGMENT = "To be exempt from this limit, authenticate your requests with an API key, which will be enforced starting {}. Registration now available at {}.".format(
|
32 |
| - API_KEY_REQUIRED_STARTING_AT, API_KEY_REGISTRATION_FORM_LINK |
| 32 | + API_KEY_REQUIRED_STARTING_AT, API_KEY_REGISTRATION_FORM_LINK_LOCAL |
33 | 33 | )
|
34 | 34 |
|
35 | 35 | PHASE_1_2_STOPGAP = ( # todo: add temporary key
|
|
38 | 38 |
|
39 | 39 |
|
40 | 40 | # steady-state error messages
|
41 |
| -ERROR_MSG_RATE_LIMIT = "Rate limit exceeded for anonymous queries.\nTo remove this limit, register a free API key at {}".format(API_KEY_REGISTRATION_FORM_LINK) |
42 |
| -ERROR_MSG_MULTIPLES = "Requested too many multiples for anonymous queries.\nTo remove this limit, register a free API key at {}".format(API_KEY_REGISTRATION_FORM_LINK) |
| 41 | +ERROR_MSG_RATE_LIMIT = "Rate limit exceeded for anonymous queries.\nTo remove this limit, register a free API key at {}".format(API_KEY_REGISTRATION_FORM_LINK_LOCAL) |
| 42 | +ERROR_MSG_MULTIPLES = "Requested too many multiples for anonymous queries.\nTo remove this limit, register a free API key at {}".format(API_KEY_REGISTRATION_FORM_LINK_LOCAL) |
43 | 43 | ERROR_MSG_INVALID_KEY = (
|
44 |
| - "API key does not exist. Register a new key at {} or contact $CONTACT_POINT to troubleshoot".format(API_KEY_REGISTRATION_FORM_LINK) |
| 44 | + "API key does not exist. Register a new key at {} or contact $CONTACT_POINT to troubleshoot".format(API_KEY_REGISTRATION_FORM_LINK_LOCAL) |
45 | 45 | )
|
46 | 46 | ERROR_MSG_INVALID_ROLE = "Provided API key does not have access to this endpoint, please contact $CONTACT_POINT."
|
47 | 47 |
|
|
0 commit comments