Skip to content
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

fix: disable request error modal - [INS-4559] #8068

Merged
merged 4 commits into from
Oct 12, 2024

Conversation

CurryYangxx
Copy link
Member

@CurryYangxx CurryYangxx commented Oct 11, 2024

close INS-4559

Changes:

  • disable request error alert modal (keep modal for collection runner), always show error in response preview panel
  • write script execution error into db and show error in response preview panel
  • fix smoke test

@CurryYangxx CurryYangxx marked this pull request as draft October 11, 2024 09:08
err.response.error = e;
err.response.statusMessage = 'Error';
err.response.statusCode = 0;
}
// this part is for persisting useful info (e.g. timeline) for debugging, even there is an error
const existingResponse = await models.response.getById(err.response._id);
const response = existingResponse || await models.response.create(err.response, err.maxHistoryResponses);
Copy link
Member Author

@CurryYangxx CurryYangxx Oct 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we store error responses in this catch callback

@CurryYangxx CurryYangxx marked this pull request as ready for review October 12, 2024 05:13
@CurryYangxx CurryYangxx merged commit b7b4547 into develop Oct 12, 2024
8 checks passed
@CurryYangxx CurryYangxx deleted the fix/request-error-modal branch October 12, 2024 07:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants