Code Space sample application windows not working

Higdon, Sam 0 Reputation points
2025-01-06T19:04:13.11+00:00

running
dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web

tries to open two windows

This page isn’t working

friendly-cod-wrv579q6466ph6rr-5001.app.github.dev is currently unable to handle this request.

HTTP ERROR 502

This site can’t be reached

friendly-cod-wrv579q6466ph6rr.app.github.dev took too long to respond.

Try:

ERR_CONNECTION_TIMED_OUT

looking to learn how to debug the issue.

This question is related to the following Learning Module

Azure Azure Training
{count} votes

2 answers

Sort by: Most helpful
  1. Pradeep M 9,765 Reputation points Microsoft External Staff Volunteer Moderator
    2025-01-07T06:25:30.9533333+00:00

    Hi Higdon, Sam,

    To resolve the issue with the Codespaces sample application, please follow these steps: 

    1.Check Ports: Open the Ports tab in Codespaces and ensure that port 5000 (or 5001 for HTTPS) is listed. Set it to "Public" or "Open in Browser" to make it accessible externally. 

    2.Run the Application: Start the application using the command dotnet run --configuration Release --no-build --project Tailspin.SpaceGame.Web and carefully review the terminal output for any errors. 

    3.Verify Application Accessibility: Test if the application is running by accessing [http://localhost:5000] using a tool like url or by opening it in a browser to confirm the port is responding. 

    4.Rebuild the Application: If the issue persists, rebuild the application using the command dotnet build --configuration Release and then rerun it with the previous command. 

    5.Restart the Codespace: Restart the Codespace by stopping and reopening it. This action resets the environment and may resolve container-related issues. 

    6.Check Network and Security Settings: Ensure that your browser, proxy, or firewall settings are not blocking the application’s connection. 

    Please feel free to contact us if you have any additional questions.     

    If you have found the answer provided to be helpful, please click on the "Accept answer/Upvote" button so that it is useful for other members in the Microsoft Q&A community.

    1 person found this answer helpful.

  2. Adamczewski, Kamil 0 Reputation points
    2025-01-11T11:24:07.11+00:00

    Define the path to the newly uploaded .Build.cs file

    build_cs_file_path = "/mnt/data/OpenAIAPI.Build.cs"

    Read the contents of the .Build.cs file

    with open(build_cs_file_path, 'r') as build_cs_file:

    build_cs_contents = build_cs_file.read() 
    

    build_cs_contents

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.