Commit baa10d65 authored by Matthias's avatar Matthias
Browse files

use different method to read request body

parent fbce0080
Pipeline #24676 passed with stages
in 2 minutes and 21 seconds
......@@ -83,13 +83,13 @@ class WriteJobResultToDrupal(Resource):
description: There was a problem
"""
try:
body = request.get_json(force=True)
current_app.logger.debug("report data: " + json.dumps(body, indent=2))
body = request.json
report = json.dumps(body, indent=2)
current_app.logger.debug("report data: " + report)
fatal = body['fatal']
status = 'FAILED'
if fatal == 0:
status = 'SUCCESS'
report = json.dumps(body, indent=2)
return write_results(job_drupal_uuid, job_log_drupal_uuid, status, report)
except ImportApiError as e:
return {'error': e.message}, 500
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment