open-ux-tools
open-ux-tools copied to clipboard
BUG - preview-middleware fails with 401 in BAS if the destination requires basic authentication
Related Feature
Feature request: issue number
Description
The preview middleware is using the system-access
module to connect to the backend. It works without flaw in VSCode but has an issue in BAS if the destination requires basic authentication. The error is detect (401) but instead of prompting the user like in VSCode it is not handled.
Steps to Reproduce
Steps to reproduce the behavior:
- Generate an adaptation project in BAS
- run
npm i
- run
npm start
- See error
Expected results
The preview opens in a new tab.
Actual results
Error Message:
Request failed with status code 401
Screenshots
If applicable, add screenshots to help explain the problem.
Version/Components/Environment
Add any other context about the problem here OS:
- [ ] Mac OS
- [ ] Windows
- [ ] Other
Root Cause Analysis
Problem
{describe the problem}
Fix
{describe the fix}
Why was it missed
{Some explanation why this issue might have been missed during normal development/testing cycle}
How can we avoid this
{if we don’t want to see this type of issues anymore what we should do to prevent}