open-ux-tools icon indicating copy to clipboard operation
open-ux-tools copied to clipboard

BUG - preview-middleware fails with 401 in BAS if the destination requires basic authentication

Open tobiasqueck opened this issue 1 month ago • 1 comments

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:

  1. Generate an adaptation project in BAS
  2. run npm i
  3. run npm start
  4. 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}

tobiasqueck avatar May 22 '24 15:05 tobiasqueck