HTTPConnectionPool(host='credenciamento.fiepi.com.br', port=80): Max retries exceeded with url: /api/get_conteudo_cartao_servico?slug=9 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7cef407b8>: Failed to establish a new connection: [Errno -2] Name or service not known',))
Request Method: | GET |
---|---|
Request URL: | https://fiepi.com.br/sesi/noticias/9 |
Django Version: | 2.2.3 |
Exception Type: | ConnectionError |
Exception Value: | HTTPConnectionPool(host='credenciamento.fiepi.com.br', port=80): Max retries exceeded with url: /api/get_conteudo_cartao_servico?slug=9 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7cef407b8>: Failed to establish a new connection: [Errno -2] Name or service not known',)) |
Exception Location: | /home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/adapters.py in send, line 516 |
Python Executable: | /home/pantanal2019/portal_env/bin/python3.6 |
Python Version: | 3.6.8 |
Python Path: | ['/home/pantanal2019/portal_env/PORTAL', '/home/pantanal2019/portal_env/bin', '/home/pantanal2019/portal_env/lib/python36.zip', '/home/pantanal2019/portal_env/lib/python3.6', '/home/pantanal2019/portal_env/lib/python3.6/lib-dynload', '/usr/lib/python3.6', '/home/pantanal2019/portal_env/lib/python3.6/site-packages'] |
Server time: | Sex, 29 Mar 2024 08:23:12 -0300 |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connection.py
in _new_conn
extra_kw['source_address'] = self.source_address
if self.socket_options:
extra_kw['socket_options'] = self.socket_options
try:
conn = connection.create_connection(
(self._dns_host, self.port), self.timeout, **extra_kw)…
except SocketTimeout:
raise ConnectTimeoutError(
self, "Connection to %s timed out. (connect timeout=%s)" %
(self.host, self.timeout))
Variable | Value |
---|---|
extra_kw | {'socket_options': [(6, 1, 1)]} |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/util/connection.py
in create_connection
err = None
# Using the value from allowed_gai_family() in the context of getaddrinfo lets
# us select whether to work with IPv4 DNS records, IPv6 records, or both.
# The original create_connection function always returns all records.
family = allowed_gai_family()
for res in socket.getaddrinfo(host, port, family, socket.SOCK_STREAM):…
af, socktype, proto, canonname, sa = res
sock = None
try:
sock = socket.socket(af, socktype, proto)
# If provided, set socket level options before connecting.
Variable | Value |
---|---|
address | ('credenciamento.fiepi.com.br', 80) |
err | None |
family | <AddressFamily.AF_UNSPEC: 0> |
host | 'credenciamento.fiepi.com.br' |
port | 80 |
socket_options | [(6, 1, 1)] |
source_address | None |
timeout | None |
/usr/lib/python3.6/socket.py
in getaddrinfo
The family, type and proto arguments can be optionally specified in order to
narrow the list of addresses returned. Passing zero as a value for each of
these arguments selects the full range of results.
"""
# We override this function since we want to translate the numeric family
# and socket type values to enum constants.
addrlist = []
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):…
af, socktype, proto, canonname, sa = res
addrlist.append((_intenum_converter(af, AddressFamily),
_intenum_converter(socktype, SocketKind),
proto, canonname, sa))
return addrlist
Variable | Value |
---|---|
addrlist | [] |
family | <AddressFamily.AF_UNSPEC: 0> |
flags | 0 |
host | 'credenciamento.fiepi.com.br' |
port | 80 |
proto | 0 |
type | <SocketKind.SOCK_STREAM: 1> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connectionpool.py
in urlopen
if is_new_proxy_conn:
self._prepare_proxy(conn)
# Make the request on the httplib connection object.
httplib_response = self._make_request(conn, method, url,
timeout=timeout_obj,
body=body, headers=headers,
chunked=chunked)…
# If we're going to release the connection in ``finally:``, then
# the response doesn't need to know about the connection. Otherwise
# it will also try to release it and we'll have a double-release
# mess.
response_conn = conn if not release_conn else None
Variable | Value |
---|---|
assert_same_host | False |
body | None |
body_pos | None |
chunked | False |
clean_exit | False |
conn | None |
err | None |
headers | {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} |
is_new_proxy_conn | False |
method | 'GET' |
pool_timeout | None |
redirect | False |
release_conn | False |
release_this_conn | True |
response_kw | {'decode_content': False, 'preload_content': False} |
retries | Retry(total=0, connect=None, read=False, redirect=None, status=None) |
self | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
timeout | <urllib3.util.timeout.Timeout object at 0x7fb7cefb4c88> |
timeout_obj | <urllib3.util.timeout.Timeout object at 0x7fb7cee81d30> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connectionpool.py
in _make_request
raise
# conn.request() calls httplib.*.request, not the method in
# urllib3.request. It also calls makefile (recv) on the socket.
if chunked:
conn.request_chunked(method, url, **httplib_request_kw)
else:
conn.request(method, url, **httplib_request_kw)…
# Reset the timeout for the recv() on the socket
read_timeout = timeout_obj.read_timeout
# App Engine doesn't have a sock attr
if getattr(conn, 'sock', None):
Variable | Value |
---|---|
chunked | False |
conn | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
httplib_request_kw | {'body': None, 'headers': {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'}} |
method | 'GET' |
self | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
timeout | <urllib3.util.timeout.Timeout object at 0x7fb7cee81d30> |
timeout_obj | <urllib3.util.timeout.Timeout object at 0x7fb7cef40630> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
/usr/lib/python3.6/http/client.py
in request
else:
raise CannotSendHeader()
self._send_output(message_body, encode_chunked=encode_chunked)
def request(self, method, url, body=None, headers={}, *,
encode_chunked=False):
"""Send a complete request to the server."""
self._send_request(method, url, body, headers, encode_chunked)…
def _send_request(self, method, url, body, headers, encode_chunked):
# Honor explicitly requested Host: and Accept-Encoding: headers.
header_names = frozenset(k.lower() for k in headers)
skips = {}
if 'host' in header_names:
Variable | Value |
---|---|
body | None |
encode_chunked | False |
headers | {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} |
method | 'GET' |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
/usr/lib/python3.6/http/client.py
in _send_request
for hdr, value in headers.items():
self.putheader(hdr, value)
if isinstance(body, str):
# RFC 2616 Section 3.7.1 says that text default has a
# default charset of iso-8859-1.
body = _encode(body, 'body')
self.endheaders(body, encode_chunked=encode_chunked)…
def getresponse(self):
"""Get the response from the server.
If the HTTPConnection is in the correct state, returns an
instance of HTTPResponse or of whatever object is returned by
Variable | Value |
---|---|
body | None |
content_length | None |
encode_chunked | False |
hdr | 'Connection' |
header_names | frozenset({'accept-encoding', 'user-agent', 'connection', 'accept'}) |
headers | {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} |
method | 'GET' |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
skips | {'skip_accept_encoding': 1} |
url | '/api/get_conteudo_cartao_servico?slug=9' |
value | 'keep-alive' |
/usr/lib/python3.6/http/client.py
in endheaders
argument can be used to pass a message body associated with the
request.
"""
if self.__state == _CS_REQ_STARTED:
self.__state = _CS_REQ_SENT
else:
raise CannotSendHeader()
self._send_output(message_body, encode_chunked=encode_chunked)…
def request(self, method, url, body=None, headers={}, *,
encode_chunked=False):
"""Send a complete request to the server."""
self._send_request(method, url, body, headers, encode_chunked)
Variable | Value |
---|---|
encode_chunked | False |
message_body | None |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/usr/lib/python3.6/http/client.py
in _send_output
Appends an extra \\r\\n to the buffer.
A message_body may be specified, to be appended to the request.
"""
self._buffer.extend((b"", b""))
msg = b"\r\n".join(self._buffer)
del self._buffer[:]
self.send(msg)…
if message_body is not None:
# create a consistent interface to message_body
if hasattr(message_body, 'read'):
# Let file-like take precedence over byte-like. This
Variable | Value |
---|---|
encode_chunked | False |
message_body | None |
msg | (b'GET /api/get_conteudo_cartao_servico?slug=9 HTTP/1.1\r\nHost: credenciamen' b'to.fiepi.com.br\r\nUser-Agent: python-requests/2.22.0\r\nAccept-Encoding: gz' b'ip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n') |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/usr/lib/python3.6/http/client.py
in send
"""Send `data' to the server.
``data`` can be a string object, a bytes object, an array object, a
file-like object that supports a .read() method, or an iterable object.
"""
if self.sock is None:
if self.auto_open:
self.connect()…
else:
raise NotConnected()
if self.debuglevel > 0:
print("send:", repr(data))
blocksize = 8192
Variable | Value |
---|---|
data | (b'GET /api/get_conteudo_cartao_servico?slug=9 HTTP/1.1\r\nHost: credenciamen' b'to.fiepi.com.br\r\nUser-Agent: python-requests/2.22.0\r\nAccept-Encoding: gz' b'ip, deflate\r\nAccept: */*\r\nConnection: keep-alive\r\n\r\n') |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connection.py
in connect
if getattr(self, '_tunnel_host', None):
# TODO: Fix tunnel so it doesn't depend on self.sock state.
self._tunnel()
# Mark this connection as not reusable
self.auto_open = 0
def connect(self):
conn = self._new_conn()…
self._prepare_conn(conn)
def request_chunked(self, method, url, body=None, headers=None):
"""
Alternative to the common request method, which sends the
body with chunked encoding and not as one block
Variable | Value |
---|---|
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connection.py
in _new_conn
except SocketTimeout:
raise ConnectTimeoutError(
self, "Connection to %s timed out. (connect timeout=%s)" %
(self.host, self.timeout))
except SocketError as e:
raise NewConnectionError(
self, "Failed to establish a new connection: %s" % e)…
return conn
def _prepare_conn(self, conn):
self.sock = conn
# Google App Engine's httplib does not define _tunnel_host
Variable | Value |
---|---|
extra_kw | {'socket_options': [(6, 1, 1)]} |
self | <urllib3.connection.HTTPConnection object at 0x7fb7cef407b8> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/adapters.py
in send
body=request.body,
headers=request.headers,
redirect=False,
assert_same_host=False,
preload_content=False,
decode_content=False,
retries=self.max_retries,
timeout=timeout…
)
# Send the request.
else:
if hasattr(conn, 'proxy_pool'):
conn = conn.proxy_pool
Variable | Value |
---|---|
cert | None |
chunked | False |
conn | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
proxies | OrderedDict() |
request | <PreparedRequest [GET]> |
self | <requests.adapters.HTTPAdapter object at 0x7fb7cf01c198> |
stream | False |
timeout | <urllib3.util.timeout.Timeout object at 0x7fb7cefb4c88> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
verify | True |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/connectionpool.py
in urlopen
e = SSLError(e)
elif isinstance(e, (SocketError, NewConnectionError)) and self.proxy:
e = ProxyError('Cannot connect to proxy.', e)
elif isinstance(e, (SocketError, HTTPException)):
e = ProtocolError('Connection aborted.', e)
retries = retries.increment(method, url, error=e, _pool=self,
_stacktrace=sys.exc_info()[2])…
retries.sleep()
# Keep track of the error for the retry warning.
err = e
finally:
Variable | Value |
---|---|
assert_same_host | False |
body | None |
body_pos | None |
chunked | False |
clean_exit | False |
conn | None |
err | None |
headers | {'User-Agent': 'python-requests/2.22.0', 'Accept-Encoding': 'gzip, deflate', 'Accept': '*/*', 'Connection': 'keep-alive'} |
is_new_proxy_conn | False |
method | 'GET' |
pool_timeout | None |
redirect | False |
release_conn | False |
release_this_conn | True |
response_kw | {'decode_content': False, 'preload_content': False} |
retries | Retry(total=0, connect=None, read=False, redirect=None, status=None) |
self | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
timeout | <urllib3.util.timeout.Timeout object at 0x7fb7cefb4c88> |
timeout_obj | <urllib3.util.timeout.Timeout object at 0x7fb7cee81d30> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/urllib3/util/retry.py
in increment
new_retry = self.new(
total=total,
connect=connect, read=read, redirect=redirect, status=status_count,
history=history)
if new_retry.is_exhausted():
raise MaxRetryError(_pool, url, error or ResponseError(cause))…
log.debug("Incremented Retry for (url='%s'): %r", url, new_retry)
return new_retry
def __repr__(self):
Variable | Value |
---|---|
_pool | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
_stacktrace | <traceback object at 0x7fb7cefdd5c8> |
cause | 'unknown' |
connect | None |
error | NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7cef407b8>: Failed to establish a new connection: [Errno -2] Name or service not known',) |
history | (RequestHistory(method='GET', url='/api/get_conteudo_cartao_servico?slug=9', error=NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7cef407b8>: Failed to establish a new connection: [Errno -2] Name or service not known',), status=None, redirect_location=None),) |
method | 'GET' |
new_retry | Retry(total=-1, connect=None, read=False, redirect=None, status=None) |
read | False |
redirect | None |
redirect_location | None |
response | None |
self | Retry(total=0, connect=None, read=False, redirect=None, status=None) |
status | None |
status_count | None |
total | -1 |
url | '/api/get_conteudo_cartao_servico?slug=9' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/django/core/handlers/exception.py
in inner
This decorator is automatically applied to all middleware to ensure that
no middleware leaks an exception and that the next middleware in the stack
can rely on getting a response instead of an exception.
"""
@wraps(get_response)
def inner(request):
try:
response = get_response(request)…
except Exception as exc:
response = response_for_exception(request, exc)
return response
return inner
Variable | Value |
---|---|
exc | ConnectionError(MaxRetryError("HTTPConnectionPool(host='credenciamento.fiepi.com.br', port=80): Max retries exceeded with url: /api/get_conteudo_cartao_servico?slug=9 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7fb7cef407b8>: Failed to establish a new connection: [Errno -2] Name or service not known',))",),) |
get_response | <bound method BaseHandler._get_response of <django.core.handlers.wsgi.WSGIHandler object at 0x7fb7d58db6d8>> |
request | <WSGIRequest: GET '/sesi/noticias/9'> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)
except Exception as e:
response = self.process_exception_by_middleware(e, request)…
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
view_name = callback.__name__
else: # CBV
Variable | Value |
---|---|
callback | <function Casa.servico at 0x7fb7cf78b730> |
callback_args | () |
callback_kwargs | {'post': 'noticias', 'servico': '9', 'tiposervico': 'sesi'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fb7cfa4b6a0>> |
request | <WSGIRequest: GET '/sesi/noticias/9'> |
resolver | <URLResolver 'Portal.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.views.servico, args=(), kwargs={'tiposervico': 'sesi', 'post': 'noticias', 'servico': '9'}, url_name=Servico, app_names=[], namespaces=[], route=<slug:tiposervico>/<slug:post>/<slug:servico>) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fb7d58db6d8> |
wrapped_callback | <function Casa.servico at 0x7fb7cf78b730> |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/django/core/handlers/base.py
in _get_response
response = middleware_method(request, callback, callback_args, callback_kwargs)
if response:
break
if response is None:
wrapped_callback = self.make_view_atomic(callback)
try:
response = wrapped_callback(request, *callback_args, **callback_kwargs)…
except Exception as e:
response = self.process_exception_by_middleware(e, request)
# Complain if the view returned None (a common error).
if response is None:
if isinstance(callback, types.FunctionType): # FBV
Variable | Value |
---|---|
callback | <function Casa.servico at 0x7fb7cf78b730> |
callback_args | () |
callback_kwargs | {'post': 'noticias', 'servico': '9', 'tiposervico': 'sesi'} |
middleware_method | <bound method CsrfViewMiddleware.process_view of <django.middleware.csrf.CsrfViewMiddleware object at 0x7fb7cfa4b6a0>> |
request | <WSGIRequest: GET '/sesi/noticias/9'> |
resolver | <URLResolver 'Portal.urls' (None:None) '^/'> |
resolver_match | ResolverMatch(func=core.views.servico, args=(), kwargs={'tiposervico': 'sesi', 'post': 'noticias', 'servico': '9'}, url_name=Servico, app_names=[], namespaces=[], route=<slug:tiposervico>/<slug:post>/<slug:servico>) |
response | None |
self | <django.core.handlers.wsgi.WSGIHandler object at 0x7fb7d58db6d8> |
wrapped_callback | <function Casa.servico at 0x7fb7cf78b730> |
/home/pantanal2019/portal_env/PORTAL/core/views.py
in servico
if tiposervico == 'noticias':
return HttpResponseRedirect(reverse('noticia', args=(post, servico,)))
template_name = 'core/site/layouts/post/servico_api.html'
api = config('URL_CREDENCIAMENTO') + '/api/get_conteudo_cartao_servico?slug={}'
api = api.format(servico)
api = requests.get(api)…
context = {'rodape': get_rodape(),
'conteudo': api.json()['conteudo'],
'servico': servico}
return render(request=request, template_name=template_name, context=context)
Variable | Value |
---|---|
api | 'http://credenciamento.fiepi.com.br/api/get_conteudo_cartao_servico?slug=9' |
post | 'noticias' |
request | <WSGIRequest: GET '/sesi/noticias/9'> |
servico | '9' |
template_name | 'core/site/layouts/post/servico_api.html' |
tiposervico | 'sesi' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/api.py
in get
in the query string for the :class:`Request`.
:param \*\*kwargs: Optional arguments that ``request`` takes.
:return: :class:`Response <Response>` object
:rtype: requests.Response
"""
kwargs.setdefault('allow_redirects', True)
return request('get', url, params=params, **kwargs)…
def options(url, **kwargs):
r"""Sends an OPTIONS request.
:param url: URL for the new :class:`Request` object.
Variable | Value |
---|---|
kwargs | {'allow_redirects': True} |
params | None |
url | 'http://credenciamento.fiepi.com.br/api/get_conteudo_cartao_servico?slug=9' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/api.py
in request
<Response [200]>
"""
# By using the 'with' statement we are sure the session is closed, thus we
# avoid leaving sockets open which can trigger a ResourceWarning in some
# cases, and look like a memory leak in others.
with sessions.Session() as session:
return session.request(method=method, url=url, **kwargs)…
def get(url, params=None, **kwargs):
r"""Sends a GET request.
:param url: URL for the new :class:`Request` object.
Variable | Value |
---|---|
kwargs | {'allow_redirects': True, 'params': None} |
method | 'get' |
session | <requests.sessions.Session object at 0x7fb7cee0d1d0> |
url | 'http://credenciamento.fiepi.com.br/api/get_conteudo_cartao_servico?slug=9' |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/sessions.py
in request
# Send the request.
send_kwargs = {
'timeout': timeout,
'allow_redirects': allow_redirects,
}
send_kwargs.update(settings)
resp = self.send(prep, **send_kwargs)…
return resp
def get(self, url, **kwargs):
r"""Sends a GET request. Returns :class:`Response` object.
Variable | Value |
---|---|
allow_redirects | True |
auth | None |
cert | None |
cookies | None |
data | None |
files | None |
headers | None |
hooks | None |
json | None |
method | 'get' |
params | None |
prep | <PreparedRequest [GET]> |
proxies | {} |
req | <Request [GET]> |
self | <requests.sessions.Session object at 0x7fb7cee0d1d0> |
send_kwargs | {'allow_redirects': True, 'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': None, 'verify': True} |
settings | {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'verify': True} |
stream | None |
timeout | None |
url | 'http://credenciamento.fiepi.com.br/api/get_conteudo_cartao_servico?slug=9' |
verify | None |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/sessions.py
in send
# Get the appropriate adapter to use
adapter = self.get_adapter(url=request.url)
# Start time (approximately) of the request
start = preferred_clock()
# Send the request
r = adapter.send(request, **kwargs)…
# Total elapsed time of the request (approximately)
elapsed = preferred_clock() - start
r.elapsed = timedelta(seconds=elapsed)
# Response manipulation hooks
Variable | Value |
---|---|
adapter | <requests.adapters.HTTPAdapter object at 0x7fb7cf01c198> |
allow_redirects | True |
hooks | {'response': []} |
kwargs | {'cert': None, 'proxies': OrderedDict(), 'stream': False, 'timeout': None, 'verify': True} |
request | <PreparedRequest [GET]> |
self | <requests.sessions.Session object at 0x7fb7cee0d1d0> |
start | 1711711392.7183933 |
stream | False |
/home/pantanal2019/portal_env/lib/python3.6/site-packages/requests/adapters.py
in send
if isinstance(e.reason, _ProxyError):
raise ProxyError(e, request=request)
if isinstance(e.reason, _SSLError):
# This branch is for urllib3 v1.22 and later.
raise SSLError(e, request=request)
raise ConnectionError(e, request=request)…
except ClosedPoolError as e:
raise ConnectionError(e, request=request)
except _ProxyError as e:
raise ProxyError(e)
Variable | Value |
---|---|
cert | None |
chunked | False |
conn | <urllib3.connectionpool.HTTPConnectionPool object at 0x7fb7cefa4cf8> |
proxies | OrderedDict() |
request | <PreparedRequest [GET]> |
self | <requests.adapters.HTTPAdapter object at 0x7fb7cf01c198> |
stream | False |
timeout | <urllib3.util.timeout.Timeout object at 0x7fb7cefb4c88> |
url | '/api/get_conteudo_cartao_servico?slug=9' |
verify | True |
AnonymousUser
No GET data
No POST data
No FILES data
No cookie data
Variable | Value |
---|---|
HTTP_ACCEPT | '*/*' |
HTTP_CONNECTION | 'close' |
HTTP_HOST | 'fiepi.com.br' |
HTTP_REFERER | 'http://fiepi.com.br/sesi/noticias/9' |
HTTP_USER_AGENT | 'claudebot' |
HTTP_X_FORWARDED_FOR | '44.211.28.92' |
HTTP_X_FORWARDED_PROTO | 'https' |
HTTP_X_REAL_IP | '44.211.28.92' |
PATH_INFO | '/sesi/noticias/9' |
QUERY_STRING | '' |
RAW_URI | '/sesi/noticias/9' |
REMOTE_ADDR | '' |
REQUEST_METHOD | 'GET' |
SCRIPT_NAME | '' |
SERVER_NAME | 'fiepi.com.br' |
SERVER_PORT | '443' |
SERVER_PROTOCOL | 'HTTP/1.0' |
SERVER_SOFTWARE | 'gunicorn/19.9.0' |
gunicorn.socket | <socket.socket fd=9, family=AddressFamily.AF_UNIX, type=SocketKind.SOCK_STREAM, proto=0, laddr=/home/pantanal2019/portal_env/portal.sock> |
wsgi.errors | <gunicorn.http.wsgi.WSGIErrorsWrapper object at 0x7fb7cefbf978> |
wsgi.file_wrapper | '' |
wsgi.input | <gunicorn.http.body.Body object at 0x7fb7cefbd0f0> |
wsgi.multiprocess | True |
wsgi.multithread | False |
wsgi.run_once | False |
wsgi.url_scheme | 'https' |
wsgi.version | (1, 0) |
Portal.settings
Setting | Value |
---|---|
ABSOLUTE_URL_OVERRIDES | {} |
ADMINS | [] |
ALLOWED_HOSTS | ['*'] |
APPEND_SLASH | True |
AUTHENTICATION_BACKENDS | ['django.contrib.auth.backends.ModelBackend'] |
AUTH_PASSWORD_VALIDATORS | '********************' |
AUTH_USER_MODEL | 'auth.User' |
BASE_DIR | '/home/pantanal2019/portal_env/PORTAL' |
CACHES | {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache'}} |
CACHE_MIDDLEWARE_ALIAS | 'default' |
CACHE_MIDDLEWARE_KEY_PREFIX | '********************' |
CACHE_MIDDLEWARE_SECONDS | 600 |
CKEDITOR_CONFIGS | {'default': {'tabSpaces': 4, 'toolbar': 'YourCustomToolbarConfig', 'toolbar_Basic': [['Bold', 'Italic']], 'toolbar_YourCustomToolbarConfig': [{'items': ['Source', '-', 'Save', '-', 'Print', '-', 'Templates'], 'name': 'document'}, {'items': ['Replace', '-', 'SelectAll'], 'name': 'editing'}, '/', {'items': ['Bold', 'Italic', 'Underline', 'Strike', 'Subscript', 'Superscript', '-', 'RemoveFormat'], 'name': 'basicstyles'}, {'items': ['NumberedList', 'BulletedList', '-', 'Outdent', 'Indent', '-', 'Blockquote', '-', 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyBlock', '-', 'BidiLtr', 'BidiRtl'], 'name': 'paragraph'}, {'items': ['Link', 'Unlink'], 'name': 'links'}, {'items': ['Image', 'Table', 'HorizontalRule', 'PageBreak'], 'name': 'insert'}, '/', {'items': ['Styles', 'Format', 'Font', 'FontSize'], 'name': 'styles'}, {'items': ['TextColor', 'BGColor'], 'name': 'colors'}, {'items': ['ShowBlocks'], 'name': 'tools'}, {'items': ['Preview', 'Maximize'], 'name': 'yourcustomtools'}]}} |
CKEDITOR_IMAGE_BACKEND | 'pillow' |
CKEDITOR_JQUERY_URL | 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js' |
CKEDITOR_UPLOAD_PATH | 'uploads/' |
CSRF_COOKIE_AGE | 31449600 |
CSRF_COOKIE_DOMAIN | None |
CSRF_COOKIE_HTTPONLY | False |
CSRF_COOKIE_NAME | 'csrftoken' |
CSRF_COOKIE_PATH | '/' |
CSRF_COOKIE_SAMESITE | 'Lax' |
CSRF_COOKIE_SECURE | False |
CSRF_FAILURE_VIEW | 'django.views.csrf.csrf_failure' |
CSRF_HEADER_NAME | 'HTTP_X_CSRFTOKEN' |
CSRF_TRUSTED_ORIGINS | [] |
CSRF_USE_SESSIONS | False |
DATABASES | {'default': {'ATOMIC_REQUESTS': False, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.mysql', 'HOST': '', 'NAME': '', 'OPTIONS': {'read_default_file': '/etc/mysql/portal.cnf'}, 'PASSWORD': '********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} |
DATABASE_ROUTERS | [] |
DATA_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
DATA_UPLOAD_MAX_NUMBER_FIELDS | 1000 |
DATETIME_FORMAT | 'N j, Y, P' |
DATETIME_INPUT_FORMATS | ['%Y-%m-%d %H:%M:%S', '%Y-%m-%d %H:%M:%S.%f', '%Y-%m-%d %H:%M', '%Y-%m-%d', '%m/%d/%Y %H:%M:%S', '%m/%d/%Y %H:%M:%S.%f', '%m/%d/%Y %H:%M', '%m/%d/%Y', '%m/%d/%y %H:%M:%S', '%m/%d/%y %H:%M:%S.%f', '%m/%d/%y %H:%M', '%m/%d/%y'] |
DATE_FORMAT | 'N j, Y' |
DATE_INPUT_FORMATS | ['%Y-%m-%d', '%m/%d/%Y', '%m/%d/%y', '%b %d %Y', '%b %d, %Y', '%d %b %Y', '%d %b, %Y', '%B %d %Y', '%B %d, %Y', '%d %B %Y', '%d %B, %Y'] |
DEBUG | True |
DEBUG_PROPAGATE_EXCEPTIONS | False |
DECIMAL_SEPARATOR | '.' |
DEFAULT_CHARSET | 'utf-8' |
DEFAULT_CONTENT_TYPE | 'text/html' |
DEFAULT_EXCEPTION_REPORTER_FILTER | 'django.views.debug.SafeExceptionReporterFilter' |
DEFAULT_FILE_STORAGE | 'django.core.files.storage.FileSystemStorage' |
DEFAULT_FROM_EMAIL | 'webmaster@localhost' |
DEFAULT_INDEX_TABLESPACE | '' |
DEFAULT_TABLESPACE | '' |
DISALLOWED_USER_AGENTS | [] |
EMAIL_BACKEND | 'django.core.mail.backends.smtp.EmailBackend' |
EMAIL_HOST | 'localhost' |
EMAIL_HOST_PASSWORD | '********************' |
EMAIL_HOST_USER | '' |
EMAIL_PORT | 25 |
EMAIL_SSL_CERTFILE | None |
EMAIL_SSL_KEYFILE | '********************' |
EMAIL_SUBJECT_PREFIX | '[Django] ' |
EMAIL_TIMEOUT | None |
EMAIL_USE_LOCALTIME | False |
EMAIL_USE_SSL | False |
EMAIL_USE_TLS | False |
FILE_CHARSET | 'utf-8' |
FILE_UPLOAD_DIRECTORY_PERMISSIONS | None |
FILE_UPLOAD_HANDLERS | ['django.core.files.uploadhandler.MemoryFileUploadHandler', 'django.core.files.uploadhandler.TemporaryFileUploadHandler'] |
FILE_UPLOAD_MAX_MEMORY_SIZE | 2621440 |
FILE_UPLOAD_PERMISSIONS | None |
FILE_UPLOAD_TEMP_DIR | None |
FIRST_DAY_OF_WEEK | 0 |
FIXTURE_DIRS | [] |
FORCE_SCRIPT_NAME | None |
FORMAT_MODULE_PATH | None |
FORM_RENDERER | 'django.forms.renderers.DjangoTemplates' |
IGNORABLE_404_URLS | [] |
INSTALLED_APPS | ['suit', 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', 'ckeditor', 'ckeditor_uploader', 'core', 'servico', 'curso', 'noticia'] |
INTERNAL_IPS | [] |
LANGUAGES | [('af', 'Afrikaans'), ('ar', 'Arabic'), ('ast', 'Asturian'), ('az', 'Azerbaijani'), ('bg', 'Bulgarian'), ('be', 'Belarusian'), ('bn', 'Bengali'), ('br', 'Breton'), ('bs', 'Bosnian'), ('ca', 'Catalan'), ('cs', 'Czech'), ('cy', 'Welsh'), ('da', 'Danish'), ('de', 'German'), ('dsb', 'Lower Sorbian'), ('el', 'Greek'), ('en', 'English'), ('en-au', 'Australian English'), ('en-gb', 'British English'), ('eo', 'Esperanto'), ('es', 'Spanish'), ('es-ar', 'Argentinian Spanish'), ('es-co', 'Colombian Spanish'), ('es-mx', 'Mexican Spanish'), ('es-ni', 'Nicaraguan Spanish'), ('es-ve', 'Venezuelan Spanish'), ('et', 'Estonian'), ('eu', 'Basque'), ('fa', 'Persian'), ('fi', 'Finnish'), ('fr', 'French'), ('fy', 'Frisian'), ('ga', 'Irish'), ('gd', 'Scottish Gaelic'), ('gl', 'Galician'), ('he', 'Hebrew'), ('hi', 'Hindi'), ('hr', 'Croatian'), ('hsb', 'Upper Sorbian'), ('hu', 'Hungarian'), ('hy', 'Armenian'), ('ia', 'Interlingua'), ('id', 'Indonesian'), ('io', 'Ido'), ('is', 'Icelandic'), ('it', 'Italian'), ('ja', 'Japanese'), ('ka', 'Georgian'), ('kab', 'Kabyle'), ('kk', 'Kazakh'), ('km', 'Khmer'), ('kn', 'Kannada'), ('ko', 'Korean'), ('lb', 'Luxembourgish'), ('lt', 'Lithuanian'), ('lv', 'Latvian'), ('mk', 'Macedonian'), ('ml', 'Malayalam'), ('mn', 'Mongolian'), ('mr', 'Marathi'), ('my', 'Burmese'), ('nb', 'Norwegian Bokmål'), ('ne', 'Nepali'), ('nl', 'Dutch'), ('nn', 'Norwegian Nynorsk'), ('os', 'Ossetic'), ('pa', 'Punjabi'), ('pl', 'Polish'), ('pt', 'Portuguese'), ('pt-br', 'Brazilian Portuguese'), ('ro', 'Romanian'), ('ru', 'Russian'), ('sk', 'Slovak'), ('sl', 'Slovenian'), ('sq', 'Albanian'), ('sr', 'Serbian'), ('sr-latn', 'Serbian Latin'), ('sv', 'Swedish'), ('sw', 'Swahili'), ('ta', 'Tamil'), ('te', 'Telugu'), ('th', 'Thai'), ('tr', 'Turkish'), ('tt', 'Tatar'), ('udm', 'Udmurt'), ('uk', 'Ukrainian'), ('ur', 'Urdu'), ('vi', 'Vietnamese'), ('zh-hans', 'Simplified Chinese'), ('zh-hant', 'Traditional Chinese')] |
LANGUAGES_BIDI | ['he', 'ar', 'fa', 'ur'] |
LANGUAGE_CODE | 'pt-br' |
LANGUAGE_COOKIE_AGE | None |
LANGUAGE_COOKIE_DOMAIN | None |
LANGUAGE_COOKIE_NAME | 'django_language' |
LANGUAGE_COOKIE_PATH | '/' |
LOCALE_PATHS | [] |
LOGGING | {} |
LOGGING_CONFIG | 'logging.config.dictConfig' |
LOGIN_REDIRECT_URL | '/accounts/profile/' |
LOGIN_URL | '/accounts/login/' |
LOGOUT_REDIRECT_URL | None |
MANAGERS | [] |
MEDIA_ROOT | '/home/pantanal2019/portal_env/PORTAL/media' |
MEDIA_URL | '/media/' |
MESSAGE_STORAGE | 'django.contrib.messages.storage.fallback.FallbackStorage' |
MIDDLEWARE | ['django.middleware.security.SecurityMiddleware', 'django.contrib.sessions.middleware.SessionMiddleware', 'django.middleware.common.CommonMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware'] |
MIGRATION_MODULES | {} |
MONTH_DAY_FORMAT | 'F j' |
NUMBER_GROUPING | 0 |
PASSWORD_HASHERS | '********************' |
PASSWORD_RESET_TIMEOUT_DAYS | '********************' |
PREPEND_WWW | False |
ROOT_URLCONF | 'Portal.urls' |
SECRET_KEY | '********************' |
SECURE_BROWSER_XSS_FILTER | False |
SECURE_CONTENT_TYPE_NOSNIFF | False |
SECURE_HSTS_INCLUDE_SUBDOMAINS | False |
SECURE_HSTS_PRELOAD | False |
SECURE_HSTS_SECONDS | 0 |
SECURE_PROXY_SSL_HEADER | None |
SECURE_REDIRECT_EXEMPT | [] |
SECURE_SSL_HOST | None |
SECURE_SSL_REDIRECT | False |
SERVER_EMAIL | 'root@localhost' |
SESSION_CACHE_ALIAS | 'default' |
SESSION_COOKIE_AGE | 1209600 |
SESSION_COOKIE_DOMAIN | None |
SESSION_COOKIE_HTTPONLY | True |
SESSION_COOKIE_NAME | 'sessionid' |
SESSION_COOKIE_PATH | '/' |
SESSION_COOKIE_SAMESITE | 'Lax' |
SESSION_COOKIE_SECURE | False |
SESSION_ENGINE | 'django.contrib.sessions.backends.db' |
SESSION_EXPIRE_AT_BROWSER_CLOSE | False |
SESSION_FILE_PATH | None |
SESSION_SAVE_EVERY_REQUEST | False |
SESSION_SERIALIZER | 'django.contrib.sessions.serializers.JSONSerializer' |
SETTINGS_MODULE | 'Portal.settings' |
SHORT_DATETIME_FORMAT | 'm/d/Y P' |
SHORT_DATE_FORMAT | 'm/d/Y' |
SIGNING_BACKEND | 'django.core.signing.TimestampSigner' |
SILENCED_SYSTEM_CHECKS | [] |
STATICFILES_DIRS | [] |
STATICFILES_FINDERS | ['django.contrib.staticfiles.finders.FileSystemFinder', 'django.contrib.staticfiles.finders.AppDirectoriesFinder'] |
STATICFILES_STORAGE | 'django.contrib.staticfiles.storage.StaticFilesStorage' |
STATIC_ROOT | '/home/pantanal2019/portal_env/PORTAL/static' |
STATIC_URL | '/static/' |
STATIC_VERSION | '2.0' |
TEMPLATES | [{'APP_DIRS': True, 'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': [], 'OPTIONS': {'context_processors': ['django.template.context_processors.debug', 'django.template.context_processors.request', 'django.contrib.auth.context_processors.auth', 'django.contrib.messages.context_processors.messages']}}] |
TEST_NON_SERIALIZED_APPS | [] |
TEST_RUNNER | 'django.test.runner.DiscoverRunner' |
THOUSAND_SEPARATOR | ',' |
TIME_FORMAT | 'P' |
TIME_INPUT_FORMATS | ['%H:%M:%S', '%H:%M:%S.%f', '%H:%M'] |
TIME_ZONE | 'America/Fortaleza' |
USE_I18N | True |
USE_L10N | True |
USE_THOUSAND_SEPARATOR | False |
USE_TZ | False |
USE_X_FORWARDED_HOST | False |
USE_X_FORWARDED_PORT | False |
WSGI_APPLICATION | 'Portal.wsgi.application' |
X_FRAME_OPTIONS | 'SAMEORIGIN' |
YEAR_MONTH_FORMAT | 'F Y' |
You're seeing this error because you have DEBUG = True
in your
Django settings file. Change that to False
, and Django will
display a standard page generated by the handler for this status code.