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: Allowed 404 to fall through axios during import flow #4770

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

tonyanziano
Copy link
Contributor

Description

Previously, the import flow was using the standard browser fetch API, and then switched to axios which actually throws on all non-200 HTTP responses.

There was code that was expecting a 404 from the getAlias API to fall through and not throw, so I've bypassed 404 in axios' built-in status number validation.

Task Item

#minor

@cwhitten cwhitten changed the title Allowed 404 to fall through axios during import flow fix: Allowed 404 to fall through axios during import flow Nov 11, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.002%) to 55.028% when pulling 94612d6 on toanzian/alias-fix into bf00e32 on main.

@a-b-r-o-w-n a-b-r-o-w-n merged commit 9206939 into main Nov 11, 2020
@a-b-r-o-w-n a-b-r-o-w-n deleted the toanzian/alias-fix branch November 11, 2020 21:22
@cwhitten cwhitten mentioned this pull request Nov 13, 2020
alanlong9278 added a commit to alanlong9278/BotFramework-Composer that referenced this pull request Nov 16, 2020
* settingsPage: (22 commits)
  Refactoring function calls
  fix: remove special case for single-bot view in tree (microsoft#4803)
  fix bug
  fix UT
  code refine
  Removed other languages for now. (microsoft#4789)
  Made the default width for the property editor wider (microsoft#4788)
  pass csrf token to plugin hosts (microsoft#4787)
  Updated disability styles
  chore: rebase main onto bot-projects feature branch (microsoft#4780)
  fix: zip file can not be deleted (microsoft#4760)
  Remove enforce auto end dialog for skill bots (microsoft#4440)
  Several PVA integration improvements / bug fixes (microsoft#4776)
  Updated strings from building (microsoft#4762)
  feat: Implement pull from publish target (microsoft#4768)
  fix: Allowed 404 to fall through axios during import flow (microsoft#4770)
  increase unit tests timeout to 30 min (microsoft#4764)
  feat: Allow importing bot content from an external source (microsoft#4751)
  Localized resource files from OneLocBuild (microsoft#4730)
  force node extensions to only require commonjs (microsoft#4755)
  ...
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
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.

3 participants