Describe what you were trying to get done.
Tell us what happened, what went wrong, and what you expected to happen.
I am trying to run pythx with trial user. Got schema validation error, because API response has new key in status response:
{"apiVersion":"v1.4.31.1","clientToolName":"Edelweiss","harveyVersion":"0.0.32","maruVersion":"0.5.2","mythrilVersion":"0.21.14","queueTime":10,"runTime":-10,"status":"Finished","submittedAt":"2019-08-30T10:39:16.554Z","submittedBy":"123456789012345678901234","uuid":"c25877fc-742f-4c37-a272-822f029c9a79","info":"We are processing as fast as we can but paying customers may be ahead of you"}
This key breaks json validation
"info":"We are processing as fast as we can but paying customers may be ahead of you"
What I Did
Traceback
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/pythx/api/client.py", line 235, in analyze
return self._assemble_send_parse(req, respmodels.AnalysisSubmissionResponse)
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/pythx/api/client.py", line 89, in _assemble_send_parse
return self.handler.parse_response(resp, resp_model)
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/pythx/api/handler.py", line 164, in parse_response
m = model.from_json(resp)
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/mythx_models/base.py", line 29, in from_json
return cls.from_dict(parsed)
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/mythx_models/response/analysis_submission.py", line 28, in from_dict
return cls(analysis=Analysis.from_dict(d))
File "/home/s0b0lev/.pyenv/versions/project/lib/python3.7/site-packages/mythx_models/response/analysis.py", line 64, in from_dict
return cls(**d)
TypeError: __init__() got an unexpected keyword argument 'info'
Description
Describe what you were trying to get done. Tell us what happened, what went wrong, and what you expected to happen.
I am trying to run pythx with trial user. Got schema validation error, because API response has new key in status response:
This key breaks json validation
What I Did
Traceback