Advertisement
Guest User

Untitled

a guest
May 19th, 2017
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.24 KB | None | 0 0
  1. [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
  2. [1495183365826] An error occurred during JSON serialization of response: b'Hello, world!' is not JSON serializable
  3. Traceback (most recent call last):
  4. File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
  5. **kw).encode(obj)
  6. File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
  7. chunks = self.iterencode(o, _one_shot=True)
  8. File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
  9. return _iterencode(o, 0)
  10. File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
  11. raise TypeError(repr(o) + " is not JSON serializable")
  12. TypeError: b'Hello, world!' is not JSON serializable
  13. [1495183365826] Traceback (most recent call last):
  14. [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 186, in try_or_raise
  15. [1495183365826] return function()
  16. [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 227, in <lambda>
  17. [1495183365826] result = try_or_raise(lambda: to_json(result), "An error occurred during JSON serialization of response")
  18. [1495183365826] File "/var/runtime/awslambda/bootstrap.py", line 215, in to_json
  19. [1495183365826] return json.dumps(obj, default=decimal_serializer)
  20. [1495183365826] File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
  21. [1495183365826] **kw).encode(obj)
  22. [1495183365826] File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
  23. [1495183365827] chunks = self.iterencode(o, _one_shot=True)
  24. [1495183365827] File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
  25. [1495183365827] return _iterencode(o, 0)
  26. [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
  27. [1495183365827] raise TypeError(repr(o) + " is not JSON serializable")
  28. [1495183365827] TypeError: b'Hello, world!' is not JSON serializable
  29. [1495183365827] During handling of the above exception, another exception occurred:
  30. [1495183365827] Traceback (most recent call last):
  31. [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 227, in handle_event_request
  32. [1495183365827] result = try_or_raise(lambda: to_json(result), "An error occurred during JSON serialization of response")
  33. [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 188, in try_or_raise
  34. [1495183365827] raise JsonError(sys.exc_info(), error_message)
  35. [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')
  36. [1495183365827] During handling of the above exception, another exception occurred:
  37. [1495183365827] Traceback (most recent call last):
  38. [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 463, in <module>
  39. [1495183365827] main()
  40. [1495183365827] File "/var/runtime/awslambda/bootstrap.py", line 459, in main
  41. [1495183365828] handle_event_request(request_handler, invokeid, event_body, context_objs, invoked_function_arn)
  42. [1495183365828] File "/var/runtime/awslambda/bootstrap.py", line 236, in handle_event_request
  43. [1495183365828] result = to_json(result)
  44. [1495183365828] File "/var/runtime/awslambda/bootstrap.py", line 215, in to_json
  45. [1495183365828] return json.dumps(obj, default=decimal_serializer)
  46. [1495183365828] File "/var/lang/lib/python3.6/json/__init__.py", line 238, in dumps
  47. [1495183365828] **kw).encode(obj)
  48. [1495183365828] File "/var/lang/lib/python3.6/json/encoder.py", line 199, in encode
  49. [1495183365828] chunks = self.iterencode(o, _one_shot=True)
  50. [1495183365828] File "/var/lang/lib/python3.6/json/encoder.py", line 257, in iterencode
  51. [1495183365843] return _iterencode(o, 0)
  52. [1495183365843] File "/var/runtime/awslambda/bootstrap.py", line 104, in decimal_serializer
  53. [1495183365843] raise TypeError(repr(o) + " is not JSON serializable")
  54. [1495183365843] TypeError: <FrameSummary file /var/lang/lib/python3.6/json/__init__.py, line 238 in dumps> is not JSON serializable
  55. [1495183365976] An error occurred during JSON serialization of response
  56. b'Hello, world!' is not JSON serializable
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement