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

[BUG] When I use Azure Cloud shell web preview I receive Cannot GET /proxy/3000/ error. #368

Open
sid24desai opened this issue Dec 8, 2023 · 4 comments
Assignees
Labels
bug Something isn't working Priority 2

Comments

@sid24desai
Copy link

To Reproduce

First scenario:-

I ran one express app locally and then ran
curl http://localhost:3000 The express page html code is showing in the Azure Cloud shell terminal like below:-

enter image description here

But When I did Port forwarding and tried to load the app via Cloud shell Web Preview section, I received the error below:-

enter image description here

Cannot GET /proxy/3000/

Second scenraio:-

Now, I referred this Blog and added my entire Express app inside clouddrive directory of the Azure cloud shell storage account and ran npm run inside the cloud shell, Tried Port forwarding to load the app in the browser but it still failed with the same error, Refer below:-

Still received the same error:-

As the blog author is using dotnet app, I also created one dotnet 7 app and uploaded it in clouddrive director, And ran dotnet run. Even when the App ran successfully, It failed to load it when I did port forwarding with Cloud Shell Web Preview feature.

Expected behavior

After I configure the Port in Web Preview section of Cloud shell > It should ideally load my web app front page.

Is this specific to Cloud Shell?

Yes, This is specific to Azure cloud shell Terminal available on Azure Portal.

Interface information

How are you accessing Cloud Shell - https://shell.azure.com, https://portal.azure.com,
If a browser, which Operating System and browser are you using? (ex. Edge on Windows 11)

Additional context

Referenced from this SO thread- https://stackoverflow.com/questions/77605976/azure-cloud-shell

@sid24desai sid24desai added bug Something isn't working Triage-needed Triage needed by Cloud Shell team labels Dec 8, 2023
@sinopsysHK
Copy link

@dekkermg
Copy link

dekkermg commented Mar 18, 2024

Hi,

same issue in sandbox while running Azure training: https://learn.microsoft.com/en-us/training/modules/control-access-to-azure-storage-with-sas/4-exercise-use-shared-access-signatures

Same here, running in circles when I open a new browser and login to the Azure Portal, start a cloudshell bash, click on Web Preview and choose Preview Port 8000. A new window opens with the message: Unauthorized. Sign-in to authenticate and refresh this page. Signing in opens a new Azure Portal window with a cloudshell session.... Refreshing the previous page doesn't change the page. Using Edge browser.

@Philip-Wong
Copy link

@mbifeld mbifeld added Priority 2 and removed Triage-needed Triage needed by Cloud Shell team labels Apr 9, 2024
@iamichi
Copy link

iamichi commented Jul 31, 2024

Same bug in this Azure training module: Exercise - Use shared access signatures to delegate access to Azure Storage

Screenshot 2024-07-31 at 09 04 25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority 2
Projects
None yet
Development

No branches or pull requests

7 participants