Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 1.35 KB | None | 0 0
  1. cass.apply_settings({
  2.   "RiotAPI": {
  3.     "logging": {
  4.       "print_calls": False
  5.     },
  6.     "api_key": "RGAPI-c21a306b-8063-4a1c-b6a0-8e02c051ea71",
  7.     "global": {
  8.       "default_region": "NA"
  9.     },
  10.     "request_error_handling": {
  11.       "403": {
  12.         "strategy": "exponential_backoff",
  13.         "initial_backoff": 1,
  14.         "backoff_factor": 2,
  15.         "max_attempts": 400
  16.       },
  17.       "404": {
  18.         "strategy": "throw"
  19.       },
  20.       "429": {
  21.         "service": {
  22.           "strategy": "exponential_backoff",
  23.           "initial_backoff": 1,
  24.           "backoff_factor": 2,
  25.           "max_attempts": 400
  26.         },
  27.         "method": {
  28.           "strategy": "retry_from_headers",
  29.           "max_attempts": 500
  30.         },
  31.         "application": {
  32.           "strategy": "retry_from_headers",
  33.           "max_attempts": 500
  34.         }
  35.       },
  36.       "500": {
  37.         "strategy": "exponential_backoff",
  38.         "initial_backoff": 1,
  39.         "backoff_factor": 2,
  40.         "max_attempts": 400
  41.       },
  42.       "503": {
  43.         "strategy": "exponential_backoff",
  44.         "initial_backoff": 1,
  45.         "backoff_factor": 2,
  46.         "max_attempts": 400
  47.       },
  48.       "timeout": {
  49.         "strategy": "exponential_backoff",
  50.         "initial_backoff": 1,
  51.         "backoff_factor": 2,
  52.         "max_attempts": 400
  53.       }
  54.     }
  55.   }
  56. })
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement