Advertisement
Guest User

bindapidebug

a guest
Apr 22nd, 2024
8
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.52 KB | None | 0 0
  1. INFO: 10.126.8.4:13697 - "GET /dns/zone/gs-labs.tv HTTP/1.1" 500 Internal Server Error
  2. ERROR: Exception in ASGI application
  3. Traceback (most recent call last):
  4. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 404, in run_asgi
  5. result = await app( # type: ignore[func-returns-value]
  6. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  7. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 84, in __call__
  8. return await self.app(scope, receive, send)
  9. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  10. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
  11. await super().__call__(scope, receive, send)
  12. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
  13. await self.middleware_stack(scope, receive, send)
  14. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
  15. raise exc
  16. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
  17. await self.app(scope, receive, _send)
  18. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 62, in __call__
  19. await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
  20. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
  21. raise exc
  22. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  23. await app(scope, receive, sender)
  24. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 758, in __call__
  25. await self.middleware_stack(scope, receive, send)
  26. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 778, in app
  27. await route.handle(scope, receive, send)
  28. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 299, in handle
  29. await self.app(scope, receive, send)
  30. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 79, in app
  31. await wrap_app_handling_exceptions(app, request)(scope, receive, send)
  32. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
  33. raise exc
  34. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
  35. await app(scope, receive, sender)
  36. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/routing.py", line 74, in app
  37. response = await func(request)
  38. ^^^^^^^^^^^^^^^^^^^
  39. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/fastapi/routing.py", line 299, in app
  40. raise e
  41. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/fastapi/routing.py", line 294, in app
  42. raw_response = await run_endpoint_function(
  43. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  44. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/fastapi/routing.py", line 193, in run_endpoint_function
  45. return await run_in_threadpool(dependant.call, **values)
  46. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  47. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/starlette/concurrency.py", line 42, in run_in_threadpool
  48. return await anyio.to_thread.run_sync(func, *args)
  49. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  50. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/anyio/to_thread.py", line 56, in run_sync
  51. return await get_async_backend().run_sync_in_worker_thread(
  52. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  53. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 2144, in run_sync_in_worker_thread
  54. return await future
  55. ^^^^^^^^^^^^
  56. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 851, in run
  57. result = context.run(func, *args)
  58. ^^^^^^^^^^^^^^^^^^^^^^^^
  59. File "/home/admins/bind-rest-api/bindapi/__init__.py", line 139, in get_zone
  60. zone = dns.zone.from_xfr(dns.query.xfr(DNS_SERVER, zone_name, keyring=TSIG, keyalgorithm=TSIG_ALGO))
  61. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  62. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/zone.py", line 1413, in from_xfr
  63. for r in xfr:
  64. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/query.py", line 1385, in xfr
  65. r = dns.message.from_wire(
  66. ^^^^^^^^^^^^^^^^^^^^^^
  67. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/message.py", line 1367, in from_wire
  68. m = reader.read()
  69. ^^^^^^^^^^^^^
  70. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/message.py", line 1264, in read
  71. self._get_section(MessageSection.ADDITIONAL, adcount)
  72. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/message.py", line 1208, in _get_section
  73. self.message.tsig_ctx = dns.tsig.validate(
  74. ^^^^^^^^^^^^^^^^^^
  75. File "/home/admins/.cache/pypoetry/virtualenvs/bindapi-Ip0tFxZ7-py3.11/lib/python3.11/site-packages/dns/tsig.py", line 296, in validate
  76. raise PeerBadKey
  77. dns.tsig.PeerBadKey: The peer didn't know the key we used
  78.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement