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

IOError: [Errno 32] Broken pipe #139

Closed
jghaines opened this issue Jun 22, 2017 · 1 comment · May be fixed by #308
Closed

IOError: [Errno 32] Broken pipe #139

jghaines opened this issue Jun 22, 2017 · 1 comment · May be fixed by #308

Comments

@jghaines
Copy link

awslogs asked me to raise this, but I don't think it is a serious issue. Most likely I hit Ctrl-C. Maybe an exception need to be caught and handled more gracefully.

awslogs get --start "30m ago" /aws/lambda/<function-name> | grep <event id> |less

================================================================================
You've found a bug! Please, raise an issue attaching the following traceback
https://github.com/jorgebastida/awslogs/issues/new
--------------------------------------------------------------------------------
Version: 0.8.0
Python: 2.7.13 (default, Apr 12 2017, 12:00:44) 
[GCC 4.2.1 Compatible Apple LLVM 8.1.0 (clang-802.0.41)]
boto3 version: 1.4.4
Platform: Darwin-16.6.0-x86_64-i386-64bit
Config: {'output_timestamp_enabled': False, 'output_group_enabled': True, 'end': None, 'log_group_name': '/aws/lambda/ccoe-aws-account-utils-AutoTagFunction-9MU80HVL0PW2', 'log_stream_name': 'ALL', 'aws_region': None, 'watch': False, 'aws_access_key_id': 'SENSITIVE', 'start': '30m ago', 'aws_profile': 'SENSITIVE', 'filter_pattern': None, 'aws_secret_access_key': 'SENSITIVE', 'output_ingestion_time_enabled': False, 'query': None, 'func': 'list_logs', 'aws_session_token': 'SENSITIVE', 'color_enabled': True, 'output_stream_enabled': True}
Args: ['/usr/local/bin/awslogs', 'get', '--start', '30m ago', '/aws/lambda/ccoe-aws-account-utils-AutoTagFunction-9MU80HVL0PW2']

Traceback (most recent call last):
  File "/usr/local/lib/python2.7/site-packages/awslogs/bin.py", line 172, in main
    getattr(logs, options.func)()
  File "/usr/local/lib/python2.7/site-packages/awslogs/core.py", line 187, in list_logs
    consumer()
  File "/usr/local/lib/python2.7/site-packages/awslogs/core.py", line 185, in consumer
    sys.stdout.flush()
IOError: [Errno 32] Broken pipe
================================================================================

@jorgebastida
Copy link
Owner

Yep, next version should ignore this. Thanks

n2N8Z added a commit to n2N8Z/awslogs that referenced this issue Jul 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants