Skip to content

UnicodeEncodeError #19

@abd-bourai

Description

@abd-bourai

Hi,

i'm seeing:

Traceback (most recent call last):
  File "/usr/lib/python3.6/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.6/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/av.runfiles/__main__/awslambdaric/__main__.py", line 21, in <module>
    main(sys.argv)
  File "/av.runfiles/__main__/awslambdaric/__main__.py", line 17, in main
    bootstrap.run(app_root, handler, lambda_runtime_api_addr)
  File "/av.runfiles/__main__/awslambdaric/bootstrap.py", line 432, in run
    log_sink,
  File "/av.runfiles/__main__/awslambdaric/bootstrap.py", line 188, in handle_event_request
    log_error(error_result, log_sink)
  File "/av.runfiles/__main__/awslambdaric/bootstrap.py", line 139, in log_error
    log_sink.log_error(error_message_lines)
  File "/av.runfiles/__main__/awslambdaric/bootstrap.py", line 323, in log_error
    sys.stdout.write(error_message)
  File "/av.runfiles/__main__/awslambdaric/bootstrap.py", line 300, in write
    self.stream.write(msg)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 547-548: ordinal not in range(128)

when running test requests to my lambda. my python version in the docker image is 3.6.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions