Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /usr/local/lib/python3.6/site-packages/boto3/resources/factory.py in property_loader(self)
- 337 if self.meta.data is None:
- 338 if hasattr(self, 'load'):
- --> 339 self.load()
- 340 else:
- 341 raise ResourceLoadException(
- /usr/local/lib/python3.6/site-packages/boto3/resources/factory.py in do_action(self, *args, **kwargs)
- 503 # instance via ``self``.
- 504 def do_action(self, *args, **kwargs):
- --> 505 response = action(self, *args, **kwargs)
- 506 self.meta.data = response
- 507 # Create the docstring for the load/reload mehtods.
- /usr/local/lib/python3.6/site-packages/boto3/resources/action.py in __call__(self, parent, *args, **kwargs)
- 81 operation_name, params)
- 82
- ---> 83 response = getattr(parent.meta.client, operation_name)(**params)
- 84
- 85 logger.debug('Response: %r', response)
- /usr/local/lib/python3.6/site-packages/botocore/client.py in _api_call(self, *args, **kwargs)
- 249 "%s() only accepts keyword arguments." % py_operation_name)
- 250 # The "self" in this scope is referring to the BaseClient.
- --> 251 return self._make_api_call(operation_name, kwargs)
- 252
- 253 _api_call.__name__ = str(py_operation_name)
- /usr/local/lib/python3.6/site-packages/botocore/client.py in _make_api_call(self, operation_name, api_params)
- 524 else:
- 525 http, parsed_response = self._endpoint.make_request(
- --> 526 operation_model, request_dict)
- 527
- 528 self.meta.events.emit(
- /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in make_request(self, operation_model, request_dict)
- 139 logger.debug("Making request for %s (verify_ssl=%s) with params: %s",
- 140 operation_model, self.verify, request_dict)
- --> 141 return self._send_request(request_dict, operation_model)
- 142
- 143 def create_request(self, params, operation_model=None):
- /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _send_request(self, request_dict, operation_model)
- 168 request, operation_model, attempts)
- 169 while self._needs_retry(attempts, operation_model, request_dict,
- --> 170 success_response, exception):
- 171 attempts += 1
- 172 # If there is a stream associated with the request, we need
- /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _needs_retry(self, attempts, operation_model, request_dict, response, caught_exception)
- 247 event_name, response=response, endpoint=self,
- 248 operation=operation_model, attempts=attempts,
- --> 249 caught_exception=caught_exception, request_dict=request_dict)
- 250 handler_response = first_non_none_response(responses)
- 251 if handler_response is None:
- /usr/local/lib/python3.6/site-packages/botocore/hooks.py in emit(self, event_name, **kwargs)
- 225 handlers.
- 226 """
- --> 227 return self._emit(event_name, kwargs)
- 228
- 229 def emit_until_response(self, event_name, **kwargs):
- /usr/local/lib/python3.6/site-packages/botocore/hooks.py in _emit(self, event_name, kwargs, stop_on_response)
- 208 for handler in handlers_to_call:
- 209 logger.debug('Event %s: calling handler %s', event_name, handler)
- --> 210 response = handler(**kwargs)
- 211 responses.append((handler, response))
- 212 if stop_on_response and response is not None:
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempts, response, caught_exception, **kwargs)
- 181
- 182 """
- --> 183 if self._checker(attempts, response, caught_exception):
- 184 result = self._action(attempts=attempts)
- 185 logger.debug("Retry needed, action of: %s", result)
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
- 249 def __call__(self, attempt_number, response, caught_exception):
- 250 should_retry = self._should_retry(attempt_number, response,
- --> 251 caught_exception)
- 252 if should_retry:
- 253 if attempt_number >= self._max_attempts:
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in _should_retry(self, attempt_number, response, caught_exception)
- 267 attempt_number < self._max_attempts:
- 268 try:
- --> 269 return self._checker(attempt_number, response, caught_exception)
- 270 except self._retryable_exceptions as e:
- 271 logger.debug("retry needed, retryable exception caught: %s",
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
- 315 for checker in self._checkers:
- 316 checker_response = checker(attempt_number, response,
- --> 317 caught_exception)
- 318 if checker_response:
- 319 return checker_response
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in __call__(self, attempt_number, response, caught_exception)
- 221 elif caught_exception is not None:
- 222 return self._check_caught_exception(
- --> 223 attempt_number, caught_exception)
- 224 else:
- 225 raise ValueError("Both response and caught_exception are None.")
- /usr/local/lib/python3.6/site-packages/botocore/retryhandler.py in _check_caught_exception(self, attempt_number, caught_exception)
- 357 # the MaxAttemptsDecorator is not interested in retrying the exception
- 358 # then this exception just propogates out past the retry code.
- --> 359 raise caught_exception
- /usr/local/lib/python3.6/site-packages/botocore/endpoint.py in _get_response(self, request, operation_model, attempts)
- 202 request, verify=self.verify,
- 203 stream=operation_model.has_streaming_output,
- --> 204 proxies=self.proxies, timeout=self.timeout)
- 205 except ConnectionError as e:
- 206 # For a connection error, if it looks like it's a DNS
- /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/sessions.py in send(self, request, **kwargs)
- 571
- 572 # Send the request
- --> 573 r = adapter.send(request, **kwargs)
- 574
- 575 # Total elapsed time of the request (approximately)
- /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/adapters.py in send(self, request, stream, timeout, verify, cert, proxies)
- 368 decode_content=False,
- 369 retries=self.max_retries,
- --> 370 timeout=timeout
- 371 )
- 372
- /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py in urlopen(self, method, url, body, headers, retries, redirect, assert_same_host, timeout, pool_timeout, release_conn, **response_kw)
- 542 httplib_response = self._make_request(conn, method, url,
- 543 timeout=timeout_obj,
- --> 544 body=body, headers=headers)
- 545
- 546 # If we're going to release the connection in ``finally:``, then
- /usr/local/lib/python3.6/site-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py in _make_request(self, conn, method, url, timeout, **httplib_request_kw)
- 347 # conn.request() calls httplib.*.request, not the method in
- 348 # urllib3.request. It also calls makefile (recv) on the socket.
- --> 349 conn.request(method, url, **httplib_request_kw)
- 350
- 351 # Reset the timeout for the recv() on the socket
- /usr/local/lib/python3.6/http/client.py in request(self, method, url, body, headers, encode_chunked)
- 1237 encode_chunked=False):
- 1238 """Send a complete request to the server."""
- -> 1239 self._send_request(method, url, body, headers, encode_chunked)
- 1240
- 1241 def _send_request(self, method, url, body, headers, encode_chunked):
- TypeError: _send_request() takes 5 positional arguments but 6 were given
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement