Giter Site home page Giter Site logo

Comments (10)

4wakened5leeper avatar 4wakened5leeper commented on September 27, 2024 1

I tried again with a new asp dotnet core project, I added BeatPulse.SqlServer and BeatPulse.UI, setup with the example config from the project readme, and same issue again.
The xhr request that beatpulse UI is performing against the beatpulse-api is the one I posted in my first post, and is working properly...
I tried on Firefox, Vivaldi, even on Edge... no success

from beatpulse.

unaizorrilla avatar unaizorrilla commented on September 27, 2024

Hi @Necriis

@CarlosLanderas could you follow this issue?

from beatpulse.

CarlosLanderas avatar CarlosLanderas commented on September 27, 2024

Hello @Necriis , I have been configuring a project and I am unable to reproduce this bug.

Although the call to the /hc segment is working, can you check if the xhr request that beatpulse UI is performing against the beatpulse-api endpoint is working correctly? Check it with F12 chrome tools and come back to me please.

Thank you

from beatpulse.

CarlosLanderas avatar CarlosLanderas commented on September 27, 2024

Thanks @Necriis, Let me test it further and I come back to you. The samples are working but maybe I missed something. Are the samples working for you?

from beatpulse.

4wakened5leeper avatar 4wakened5leeper commented on September 27, 2024

The sample works fine, but I forgot to specify a point... my app is deployed in a linux docker container. It seems to be the only difference.

from beatpulse.

unaizorrilla avatar unaizorrilla commented on September 27, 2024

Hi @Necriis

Can you check https://github.com/Xabaril/BeatPulse/blob/master/doc/ui-docker.md yo see how configure UI on Docker ?

from beatpulse.

4wakened5leeper avatar 4wakened5leeper commented on September 27, 2024

Ok, starting from the sample (BeatPulseIntegratedUI not in docker, in IIS Express):
I add the BeatPulse Nuget

<ItemGroup>
  <PackageReference Include="BeatPulse" Version="3.0.0" />
  <PackageReference Include="Microsoft.AspNetCore.App" />
</ItemGroup>

I add detailedOutput

WebHost.CreateDefaultBuilder(args)
    .UseBeatPulse(options =>
    {
        options.ConfigureDetailedOutput(detailedOutput: true, includeExceptionMessages: false);
    })
    .UseStartup<Startup>();

I configure the API path in Startup class

public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
    app.UseBeatPulseUI(apiOptions =>
    {
        apiOptions.BeatPulseApiPath = "/hc";
    });
}

And add BeatPulse service

public void ConfigureServices(IServiceCollection services)
{
    services.AddBeatPulseUI();
    services.AddBeatPulse();
}

I run the app and the error is here.
Maybe it's not designed to use both BeatPulse and UI on the same app ?

from beatpulse.

4wakened5leeper avatar 4wakened5leeper commented on September 27, 2024

@unaizorrilla I configured my project with the UI docker image and it works great. However, in this context, I have to configure manually each liveness.
With the NuGet version, I only configure the main BeatPulseApiPath in the UseBeatPulseUI extension method and let him discover the livenesses... unless I'm wrong ...

from beatpulse.

CarlosLanderas avatar CarlosLanderas commented on September 27, 2024

@Necriis, other user suffered the same problem here:

Xabaril/AspNetCore.Diagnostics.HealthChecks#18

Make sure you are pointing to the health-ui endpoint

from beatpulse.

dungtm007 avatar dungtm007 commented on September 27, 2024

Hi @CarlosLanderas,
What do you mean by pointing to the health-ui endpoint?

Default BeatPulse endpoint is "/hc"

Is this the thing I should do to config BeatPulseUI API Path?
app.UseBeatPulseUI(apiOptions => { apiOptions.BeatPulseApiPath = "/hc"; });

from beatpulse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.