BotoServerError: 500 Internal Server Error <?xml version='1.0' encoding='UTF-8'?> <Response><RequestID>077b79e6-2e3a-45a4-9675-00d282cf1ecf</RequestID><Errors><Error><Code>InternalError</Code><Message>We encountered an internal error. Please try again.</Message></Error></Errors></Response> search by Google
/usr/local/lib/python3.7/unittest/case.py in testPartExecutor (arguments ▶)
- @contextlib.contextmanager
- def testPartExecutor(self, test_case, isTest=False):
- old_success = self.success
- self.success = True
- try:
- yield
- except KeyboardInterrupt:
- raise
- except SkipTest as e:
- self.success = False
/usr/local/lib/python3.7/unittest/case.py in run (arguments ▶)
- with outcome.testPartExecutor(self):
- self.setUp()
- if outcome.success:
- outcome.expecting_failure = expecting_failure
- with outcome.testPartExecutor(self, isTest=True):
- testMethod()
- outcome.expecting_failure = False
- with outcome.testPartExecutor(self):
- self.tearDown()
/root/c2tests/.venv/lib/python3.7/site-packages/c2tests/ec2/instanceoperations.py in test_network_detaching (arguments ▶)
- self.conn.attach_network_interface(interface1.id, instance.id, 1)
- instance.update()
- utils.wait_for_interface_attached(interface1)
- self.report("Detaching switch interface...")
- interface1.detach()
- # We don't allow attaching more than one NetworkInterface from
- # single VirtualSwitch.
- self.assert_error("InvalidParameterValue",
/root/c2tests/.venv/src/boto/boto/ec2/networkinterface.py in detach (arguments ▶)
/root/c2tests/.venv/src/boto/boto/ec2/connection.py in detach_network_interface (arguments ▶)
- params = {'AttachmentId': attachment_id}
- if force:
- params['Force'] = 'true'
- if dry_run:
- params['DryRun'] = 'true'
- return self.get_status('DetachNetworkInterface', params, verb='POST')
- def delete_network_interface(self, network_interface_id, dry_run=False):
- """
- Delete the specified network interface.
/root/c2tests/.venv/src/boto/boto/connection.py in get_status (arguments ▶)
- raise self.ResponseError(response.status, response.reason, body)
- def get_status(self, action, params, path='/', parent=None, verb='GET'):
- if not parent:
- parent = self
- response = self.make_request(action, params, path, verb)
- body = response.read()
- boto.log.debug(body)
- if not body:
- boto.log.error('Null body %s' % body)
/root/c2tests/.venv/src/boto/boto/ec2/connection.py in make_request (arguments ▶)
- def make_request(self, action, params=None, path='/', verb='GET'):
- if self.aws_sudo_id:
- if params is None:
- params = {}
- params['AWSSudoId'] = self.aws_sudo_id
- return AWSQueryConnection.make_request(self, action, params, path, verb)
- def get_params(self):
- """
- Returns a dictionary containing the value of all of the keyword
/root/c2tests/.venv/src/boto/boto/connection.py in make_request (arguments ▶)
- self.host)
- if action:
- http_request.params['Action'] = action
- if self.APIVersion:
- http_request.params['Version'] = self.APIVersion
- return self._mexe(http_request)
- def build_list_params(self, params, items, label):
- if isinstance(items, six.string_types):
- items = [items]
/root/c2tests/.venv/src/boto/boto/connection.py in _mexe (arguments ▶)
- # use it to raise an exception.
- # Otherwise, raise the exception that must have already happened.
- if self.request_hook is not None:
- self.request_hook.handle_request_data(request, response, error=True)
- if response:
- raise BotoServerError(response.status, response.reason, body)
- elif ex:
- raise ex
- else:
- msg = 'Please report this exception as a Boto Issue!'