Closed MJedr closed 8 months ago
Here if the attached file we get an error cause response looks like
{u'status': None, u'message': u'File size 153604243 is larger than the limit 104857600.'}
File "/code/inspirehep/modules/workflows/tasks/upload.py", line 139, in send_record_to_hep obj.data["control_number"] = response["metadata"]["control_number"] KeyError: 'metadata'
https://github.com/inspirehep/inspire-next/blob/fc6287f551d1cd770207549cb126ab8c1dce0170/inspirehep/modules/workflows/tasks/upload.py#L139 We need to improve it
Here if the attached file we get an error cause response looks like
https://github.com/inspirehep/inspire-next/blob/fc6287f551d1cd770207549cb126ab8c1dce0170/inspirehep/modules/workflows/tasks/upload.py#L139 We need to improve it