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

Unable to Run Crank in my local (Mac) #766

Open
vishwakamala opened this issue Oct 9, 2024 · 0 comments
Open

Unable to Run Crank in my local (Mac) #766

vishwakamala opened this issue Oct 9, 2024 · 0 comments

Comments

@vishwakamala
Copy link

Hi @sebastienros

thanks for this benchmarking tool that you built. I am trying to bench mark a .Net core Webapi Project based on the documentation i have tried to set benchmarking.yml I was stuck with this issue.

The specified endpoint url 'http://localhost:5010' for 'application' is invalid or not responsive: "An error occurred while sending the request."

If i try to solve this issue by making a default route for GET this is passing but it gets failed in next step. It is trying to get the JobStatus and it gets 404.

[01:23:59.080] Running session 'f6e9283f7aca4ef6827d3d79e53a1e59' with description '' Unhandled exception. System.Net.Http.HttpRequestException: Response status code does not indicate success: 404 (Not Found). at System.Net.Http.HttpResponseMessage.EnsureSuccessStatusCode() at Microsoft.Crank.Controller.JobConnection.GetQueueAsync() in /_/src/Microsoft.Crank.Controller/JobConnection.cs:line 1323 at Microsoft.Crank.Controller.Program.<>c__DisplayClass61_1.<<Run>b__6>d.MoveNext() in /_/src/Microsoft.Crank.Controller/Program.cs:line 849 --- End of stack trace from previous location --- at Microsoft.Crank.Controller.Program.Run(Configuration configuration, String[] dependencies, String session, Int32 iterations, ExcludeOptions exclude, IEnumerable1 scripts) in //src/Microsoft.Crank.Controller/Program.cs:line 845
at Microsoft.Crank.Controller.Program.<>c__DisplayClass60_0.<

b__1>d.MoveNext() in //src/Microsoft.Crank.Controller/Program.cs:line 705
--- End of stack trace from previous location ---
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
at McMaster.Extensions.CommandLineUtils.CommandLineApplication.Execute(String[] args)
at Microsoft.Crank.Controller.Program.Main(String[] args)`

BenchMark.yml
`imports:

jobs:
server:
sources:
entity:
localFolder: ./RulesPOC/RulesPOC
project: RulesPOC.csproj
readyStateText: Application started.
bombardier:
source:
repository: https://github.com/dotnet/crank.git
branchOrCommit: main
project: src/Microsoft.Crank.Jobs.Bombardier/Microsoft.Crank.Jobs.Bombardier.csproj
sourceKey: bombardier
noBuild: true
readyStateText: Bombardier Client
waitForExit: true
variables:
verb: POST
path: "https://localhost:5010/BatchPoc"
scenarios:
hello:
application:
job: server
load:
job: bombardier

profiles:
local:
variables:
serverAddress: localhost
jobs:
application:
endpoints:
- https://localhost:5010/
load:
endpoints:
- https://localhost:5010/`

I tried your example of the hello sample still the same.

Crank command i used - crank --config benchmark.yml --scenario hello --profile local

Please let me know what i am doing wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant