Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [1495183365825] [INFO] 2017-05-19T08:42:45.825Z 201b8440-3c6f-11e7-a31e-791c4f9c21f3 83.4.62.127 - - [19/May/2017:08:42:45 +0000] "GET / HTTP/1.1" 200 13 "" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.96 Safari/537.36" 0/20.885
- [1495183365826] An error occurred during JSON serialization of response: b'Hello, world!' is not JSON serializable
- Traceback (most recent call last):
- File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
- **kw).encode(obj)
- File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
- chunks = self.iterencode(o, _one_shot=True)
- File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
- return _iterencode(o, 0)
- File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
- raise TypeError(repr(o) + " is not JSON serializable")
- TypeError: b'Hello, world!' is not JSON serializable
- [1495183365826] Traceback (most recent call last):
- [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 186, in try_or_raise
- [1495183365826] return function()
- [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 227, in <lambda>
- [1495183365826] result = try_or_raise(lambda: to_json(result), "An error occurred during JSON serialization of response")
- [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 215, in to_json
- [1495183365826] return json.dumps(obj, default=decimal_serializer)
- [1495183365826] File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
- [1495183365826] **kw).encode(obj)
- [1495183365826] File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
- [1495183365827] chunks = self.iterencode(o, _one_shot=True)
- [1495183365827] File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
- [1495183365827] return _iterencode(o, 0)
- [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
- [1495183365827] raise TypeError(repr(o) + " is not JSON serializable")
- [1495183365827] TypeError: b'Hello, world!' is not JSON serializable
- [1495183365827] During handling of the above exception, another exception occurred:
- [1495183365827] Traceback (most recent call last):
- [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 227, in handle_event_request
- [1495183365827] result = try_or_raise(lambda: to_json(result), "An error occurred during JSON serialization of response")
- [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 188, in try_or_raise
- [1495183365827] raise JsonError(sys.exc_info(), error_message)
- [1495183365827] __main__.JsonError: ((<class 'TypeError'>, TypeError("b'Hello, world!' is not JSON serializable",), <traceback object at 0x7fd075ef4a48>), 'An error occurred during JSON serialization of response')
- [1495183365827] During handling of the above exception, another exception occurred:
- [1495183365827] Traceback (most recent call last):
- [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 463, in <module>
- [1495183365827] main()
- [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 459, in main
- [1495183365828] handle_event_request(request_handler, invokeid, event_body, context_objs, invoked_function_arn)
- [1495183365828] File "/var/runtime/awslambda/bootstrap.py", line 236, in handle_event_request
- [1495183365828] result = to_json(result)
- [1495183365828] File "/var/runtime/awslambda/bootstrap.py", line 215, in to_json
- [1495183365828] return json.dumps(obj, default=decimal_serializer)
- [1495183365828] File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
- [1495183365828] **kw).encode(obj)
- [1495183365828] File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
- [1495183365828] chunks = self.iterencode(o, _one_shot=True)
- [1495183365828] File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
- [1495183365843] return _iterencode(o, 0)
- [1495183365843] File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
- [1495183365843] raise TypeError(repr(o) + " is not JSON serializable")
- [1495183365843] TypeError: <FrameSummary file /var/lang/lib/python3.6/json/__init__.py, line 238 in dumps> is not JSON serializable
- [1495183365976] An error occurred during JSON serialization of response
- b'Hello, world!' is not JSON serializable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement