drogonframework / drogonframework/drogon

Failed to start the Debug

Open
#2,267 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
14.3k
Forks
1.4k
Avg merge
1d 13h
Merged PRs (30d)
14

Description

I'm newbie, when i start the application it got error. This is my main.cc

`#include

int main() {
drogon::app().setLogLevel(trantor::Logger::kTrace);

try {
drogon::app().addListener("127.0.0.1", 2201);
drogon::app().run();
}
catch (const std::exception& e) {
std::cerr << "Error: " << e.what() << std::endl;
}

return 0;
}
`

The code failed on line drogon::app().addListener("127.0.0.1", 2201);
the exception throwed is 'Error: vector too long'

I'm using Visual Studio Community 2022, this is output when build the project with VsCode:

`[main] Building folder: d:/Code/WebC++/DrogonWin/build
[build] Starting build
[proc] Executing command: "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.EXE" --build d:/Code/WebC++/DrogonWin/build --config Debug --target ALL_BUILD -j 22 --
[build] MSBuild version 17.13.9+e0f243f1e for .NET Framework
[build]
[build] main.cc
[build] DrogonWin_test.vcxproj -> D:\Code\WebC++\DrogonWin\build\test\Debug\DrogonWin_test.exe
[build] DrogonWin.vcxproj -> D:\Code\WebC++\DrogonWin\build\Debug\DrogonWin.exe
[driver] Build completed: 00:00:02.796
[build] Build finished with exit code 0
`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.