536b656c6c79
536b656c6c79
Explore posts from servers
CC#
Created by 536b656c6c79 on 12/11/2024 in #help
App returning "Bad Request" before Controller method is called or ServiceFilter is triggered.
So I just disabled it for now
6 replies
CC#
Created by 536b656c6c79 on 12/11/2024 in #help
App returning "Bad Request" before Controller method is called or ServiceFilter is triggered.
It was not
6 replies
CC#
Created by 536b656c6c79 on 12/11/2024 in #help
App returning "Bad Request" before Controller method is called or ServiceFilter is triggered.
I was testing out if that could have been the issue
6 replies
CC#
Created by 536b656c6c79 on 12/11/2024 in #help
App returning "Bad Request" before Controller method is called or ServiceFilter is triggered.
Pogram.cs
internal class Program {
private static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.RegisterApplication();
builder.Services.RegisterInfrastructure();
builder.Services.AddControllers();
builder.Services.RegisterEncryption();
builder.Services.RegisterJWTAuthentication(builder);
builder.Services.RegisterPolicies();
//builder.Services.AddScoped<AuthenticatedFrontendFilter>();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

using (AsyncServiceScope scope = app.Services.CreateAsyncScope())
{
ApplicationDbContext dbContext = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
dbContext.Database.EnsureCreated();
}
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedFor
});
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseErrorHandlingMiddleware();
app.UseMiddleware<RequestLoggingMiddleware>();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});

app.Run();
}
}
internal class Program {
private static void Main(string[] args)
{
var builder = WebApplication.CreateBuilder(args);

// Add services to the container.
builder.Services.RegisterApplication();
builder.Services.RegisterInfrastructure();
builder.Services.AddControllers();
builder.Services.RegisterEncryption();
builder.Services.RegisterJWTAuthentication(builder);
builder.Services.RegisterPolicies();
//builder.Services.AddScoped<AuthenticatedFrontendFilter>();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();

var app = builder.Build();

using (AsyncServiceScope scope = app.Services.CreateAsyncScope())
{
ApplicationDbContext dbContext = scope.ServiceProvider.GetRequiredService<ApplicationDbContext>();
dbContext.Database.EnsureCreated();
}
// Configure the HTTP request pipeline.
if (app.Environment.IsDevelopment())
{
app.UseSwagger();
app.UseSwaggerUI();
}
app.UseForwardedHeaders(new ForwardedHeadersOptions
{
ForwardedHeaders = ForwardedHeaders.XForwardedProto | ForwardedHeaders.XForwardedFor
});
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthentication();
app.UseAuthorization();
app.UseErrorHandlingMiddleware();
app.UseMiddleware<RequestLoggingMiddleware>();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});

app.Run();
}
}
6 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
but still
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
true
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
fix announcement?
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
pm2 🤮
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
give me a second
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
I write a hotfix
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
great work 🤝
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
now we can expand
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
its good
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
noo noo
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
it was probably
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
well
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
idk but I think we instantiate the handlers before logging in
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
No description
88 replies
DIdiscord.js - Imagine ❄
Created by 536b656c6c79 on 1/23/2024 in #djs-questions
Recieved 1 instruction to send a webhook but it send twice with different contents.
its just a webhookg post request
88 replies