-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supplement bug information #62
Supplement bug information #62
Conversation
…quest in the description, and place request and response data in the attachment
let url = eventObj.flow.request.url | ||
let method = eventObj.flow.request.method | ||
let requestData = JSON.stringify(eventObj.flow.request.data) | ||
if (requestData === undefined) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
如果eventObj.flow.request.data本身为undefined,JSON.stringify之后还会===undefined吗
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,仍然会===undefined,也就是在为get请求时会成立
try: | ||
with open(str(ATTACHMENT_ROOT / full_name), 'w') as f: | ||
json.dump(attachment_obj['eventObj'], f, indent=4) | ||
except Exception: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这里是request和response放在一个附件里的意思吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
是的,前端处理后传递过来的attachment_obj['eventObj']中仅有request和response信息
Add data and response data to the post request in the description, and place request and response data in the attachment