aletrn commited on
Commit
ddb71db
·
1 Parent(s): ee50e01

[debug] first test on lambda for tms2geotiff functions (fix response body)

Browse files
Files changed (1) hide show
  1. src/app.py +1 -1
src/app.py CHANGED
@@ -32,7 +32,7 @@ def get_response(status: int, start_time: float, request_id: str, response_body
32
  response = {
33
  "statusCode": status,
34
  "header": {"Content-Type": content_types.APPLICATION_JSON},
35
- "body": response_body.model_dump_json(),
36
  "isBase64Encoded": False
37
  }
38
  app_logger.info(f"response type:{type(response)} => {response}.")
 
32
  response = {
33
  "statusCode": status,
34
  "header": {"Content-Type": content_types.APPLICATION_JSON},
35
+ "body": json.dumps(response_body),
36
  "isBase64Encoded": False
37
  }
38
  app_logger.info(f"response type:{type(response)} => {response}.")