- Newest
- Most votes
- Most comments
Hey Scienziatogm, this doesn't solve your problem, but it might help your debugging since the logs aren't helpful at the moment. I've looked at the source code for the 5.1 C++ Server SDK and it looks like the exception message is hard-coded to bad request at the path: gamelift-server-sdk/source/aws/gamelift/internal/GameLiftServerState.cpp > Internal::GameLiftServerState::StartMatchBackfill
:
StartMatchBackfillOutcome
Internal::GameLiftServerState::StartMatchBackfill(const Aws::GameLift::Server::Model::StartMatchBackfillRequest &startMatchBackfillRequest) {
if (AssertNetworkInitialized()) {
return StartMatchBackfillOutcome(GameLiftError(GAMELIFT_ERROR_TYPE::GAMELIFT_SERVER_NOT_INITIALIZED));
}
WebSocketStartMatchBackfillRequest request = Internal::StartMatchBackfillAdapter::convert(startMatchBackfillRequest);
GenericOutcome rawResponse = m_webSocketClientManager->SendSocketMessage(request);
if (rawResponse.IsSuccess()) {
WebSocketStartMatchBackfillResponse *webSocketResponse = static_cast<WebSocketStartMatchBackfillResponse *>(rawResponse.GetResult());
StartMatchBackfillResult result = Internal::StartMatchBackfillAdapter::convert(webSocketResponse);
delete webSocketResponse;
return StartMatchBackfillOutcome(result);
} else {
--> return StartMatchBackfillOutcome(GameLiftError(GAMELIFT_ERROR_TYPE::BAD_REQUEST_EXCEPTION));
}
}
rawResponse
is a GenericOutcome which might have a GameLiftError of it's own. You could try updating that line to something like the following and see if you get a more useful error back:
} else {
return StartMatchBackfillOutcome(rawResponse.GetError());
}
Hey Jackson, I've fixed the issue thanks to your help. I've totally forgot that the source code of the SDK was provided and I could modify that, rebuilding the libraries using CMake. The issue was that I had inverted the GameSessionArn with MatchmakingConfigArn, so it was my mistake, sorry about that. Anyway this answer could be very helpful if someone doesn't get the detailed error result and has a similar issue that's hard to find even when debugging. Thank you again for the help!
That's great to hear! I'm glad I could help
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
Hey Scienziatogm, is there an error message that goes along with your BAD_REQUEST_EXCEPTION that you could provide here?
Hey Jackson, the error message in the outcome of StartMatchBackfill ( auto outcome = Aws::GameLift::Server::StartMatchBackfill(sdkRequest); ) is "Bad request exception" and nothing else. The error message doesn't have details at all and that's why I don't know what's wrong with the request. I'm using the VS debugger and reading the values in the variable outcome directly. m_errorType is BAD_REQUEST_EXCEPTION(21), m_errorName is "Bad request exception" and m_errorMessage is "Bad request exception".
Well that doesn't seem helpful! I've cut an item to our engineers to improve the logging there.