Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. Traceback (most recent call last):
  2. File "processor/worker.py", line 32, in process_request
  3. await nats.publish(request.reply, json.dumps(self._serialize(result)).encode())
  4. File "/Users/frederikfix/src/bugzoo/processor/processor/trio_nats/client.py", line 47, in publish
  5. await self.client_stream.send_all(pub_cmd)
  6. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_highlevel_socket.py", line 105, in send_all
  7. with self._send_conflict_detector:
  8. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_util.py", line 122, in __enter__
  9. raise trio.BusyResourceError(self._msg)
  10. trio.BusyResourceError: another task is currently sending data on this SocketStream
  11.  
  12. During handling of the above exception, another exception occurred:
  13.  
  14. Traceback (most recent call last):
  15. File "processor/worker.py", line 57, in <module>
  16. run(args)
  17. File "processor/worker.py", line 50, in run
  18. trio.run(worker.run)
  19. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_core/_run.py", line 1783, in run
  20. raise runner.main_task_outcome.error
  21. File "processor/worker.py", line 20, in run
  22. nursery.start_soon(self.listen_for_requests, service, nats, nursery, subscription)
  23. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_core/_run.py", line 725, in __aexit__
  24. raise combined_error_from_nursery
  25. File "processor/worker.py", line 34, in process_request
  26. await nats.publish(request.reply, json.dumps(["error", f"{type(e)}: {e}"]).encode())
  27. File "/Users/frederikfix/src/bugzoo/processor/processor/trio_nats/client.py", line 47, in publish
  28. await self.client_stream.send_all(pub_cmd)
  29. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_highlevel_socket.py", line 105, in send_all
  30. with self._send_conflict_detector:
  31. File "/Users/frederikfix/.local/share/virtualenvs/processor-8DvzDI5i/lib/python3.7/site-packages/trio/_util.py", line 122, in __enter__
  32. raise trio.BusyResourceError(self._msg)
  33. trio.BusyResourceError: another task is currently sending data on this SocketStream
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement