Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possible bug: HIC-TRE egress app aws_xray_sdk reports OSError: [Errno 90] Message too long #9

Open
manics opened this issue Aug 29, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@manics
Copy link
Member

manics commented Aug 29, 2023

What is the problem?

This is in the CloudWatch logs /aws/lambda/egress_api_handler from the old private HIC-TRE fork of the egress backend:

[ERROR]	2023-08-29T13:46:01.140Z	45c5644b-26d9-4d92-ada9-9f4d5a337d15	Failed to send entity to Daemon.
Traceback (most recent call last):
  File "/opt/python/aws_xray_sdk/core/emitters/udp_emitter.py", line 41, in send_entity
    self._send_data(message)
  File "/opt/python/aws_xray_sdk/core/emitters/udp_emitter.py", line 63, in _send_data
    self._socket.sendto(data.encode('utf-8'), (self._ip, self._port))
OSError: [Errno 90] Message too long

It might be already fixed in this public repo, we should check when this is deployed.

If it's still a problem aws/aws-xray-sdk-python#21 contains a possible fix

Reproduction Steps

See HIC-TRE Egress CloudWatch logs /aws/lambda/egress_api_handler

What did you expect to happen?

Error logs should not appear

What actually happened?

Error logs appeared

TREEHOOSE version

N/A

Other information

No response

@manics manics added the bug Something isn't working label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant