NewConnectionError from bokeh app while connecting to API

I get below error at bokeh server logs while connecting. Bokeh app is deployed in docker container using kubernetees and the API which it tries to call is deployed in one of the servers internally.

2018-09-16 23:46:26,370 200 GET /rtd (17.99.232.36) 197.34ms

2018-09-16 23:46:26,371 Error thrown from periodic callback:

2018-09-16 23:46:26,371 Exception in callback functools.partial(<function wrap..null_wrapper at 0x7f57b7cfb2f0>, <Future finished exception=ConnectionError(MaxRetryError(“HTTPConnectionPool(host=‘apidomain.com’, port=3443): Max retries exceeded with url: /api/v1/ (Caused by NewConnectionError(’<urllib3.connection.HTTPConnection object at 0x7f57b7d5f668>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))”))>)

Traceback (most recent call last):

File “/usr/local/lib/python3.7/site-packages/tornado/ioloop.py”, line 758, in _run_callback

ret = callback()

File “/usr/local/lib/python3.7/site-packages/tornado/stack_context.py”, line 300, in null_wrapper

return fn(*args, **kwargs)

File “/usr/local/lib/python3.7/site-packages/bokeh/util/tornado.py”, line 96, in on_done

log.error("".join(format_exception(*future.exc_info())))

AttributeError: ‘_asyncio.Future’ object has no attribute ‘exc_info’

2018-09-16 23:46:26,371 Error thrown from periodic callback:

Could any help me find what’s wrong here?

Answered in other thread (please do not post duplicate questions, it makes the list hard to manage). The error is a DNS problem "Temporary failure in name resolution" not a Bokeh problem.

The "exc_info" info message is a red herring, while it actually was a bug in Bokeh's error logging code, but it only showed up in case there was some original error (i.e. your DNS problem) and has also recently been fixed.

Thanks,

Bryan

···

On Sep 16, 2018, at 17:01, Venugopal Madathil <[email protected]> wrote:

I get below error at bokeh server logs while connecting. Bokeh app is deployed in docker container using kubernetees and the API which it tries to call is deployed in one of the servers internally.

2018-09-16 23:46:26,370 200 GET /rtd (17.99.232.36) 197.34ms
2018-09-16 23:46:26,371 Error thrown from periodic callback:
2018-09-16 23:46:26,371 Exception in callback functools.partial(<function wrap.<locals>.null_wrapper at 0x7f57b7cfb2f0>, <Future finished exception=ConnectionError(MaxRetryError("HTTPConnectionPool(host='apidomain.com', port=3443): Max retries exceeded with url: /api/v1/ (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f57b7d5f668>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution'))"))>)
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/site-packages/tornado/ioloop.py", line 758, in _run_callback
    ret = callback()
  File "/usr/local/lib/python3.7/site-packages/tornado/stack_context.py", line 300, in null_wrapper
    return fn(*args, **kwargs)
  File "/usr/local/lib/python3.7/site-packages/bokeh/util/tornado.py", line 96, in on_done
    log.error("".join(format_exception(*future.exc_info())))
AttributeError: '_asyncio.Future' object has no attribute 'exc_info'
2018-09-16 23:46:26,371 Error thrown from periodic callback:

Could any help me find what's wrong here?

--
You received this message because you are subscribed to the Google Groups "Bokeh Discussion - Public" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/1115966b-e22d-42e4-98ee-e9a46753b2dc%40continuum.io\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.