CreateBackfillTicketAsync returns InternalServerError

Hi folks.

I’m trying to create Backfill ticket but I get InternalServerError.

Here is part of server error log:


MatchmakerManager-CreateBackfillTicket-ex:Unity.Services.Matchmaker.MatchmakerServiceException: (500) HTTP/1.1 500 Internal Server Error ---> Unity.Services.Matchmaker.Http.HttpException: (500) HTTP/1.1 500 Internal Server Error```

There is my script:

```csharp
private async void CreateBackfillTicket()
    {
        // Set options for matchmaking
        CreateBackfillTicketOptions options = new (_queueFirst, MultiplayManager.ExternalConnectionString);
       //ExternalConnectionString = $"{MultiplayService.Instance.ServerConfig.IpAddress}:{MultiplayService.Instance.ServerConfig.Port}";

        try
        {
            // Create backfill ticket
            string ticketId = await MatchmakerService.Instance.CreateBackfillTicketAsync(options);
            Debug.Log($"MatchmakerManager-CreateBackfillTicket-ticketId:{ticketId}");
            ApproveBackfillTicket(ticketId);
        }
        catch (Exception ex)
        {
            Debug.Log($"MatchmakerManager-CreateBackfillTicket-ex:{ex}");
        }
    }

I also tried to this line but I got same error!

CreateBackfillTicketOptions options = new (_queueFirst, "127.0.0.1:8080");

I used to the documentation code from this page

Thanks.

Internal errors may be temporary. Be sure to try again after some time and check the services status page.

Hi @CodeSmile , thanks for your reply.

I call the method after Multiplay Allocate callback.

m_MultiplayEventCallbacks = new MultiplayEventCallbacks();
m_MultiplayEventCallbacks.Allocate += OnAllocate;

I am getting this error when I start “Test allocations” on dashboard.

Hi there, thank you for your feedback. 500 are not expected at this point. Are you still facing the same issue ?
We will take a look on our side to figure out what is happening.
If you are creating a backfill ticket from an allocation that was not requested by the matchmaker, while this is possible, you might be missing important information that are required to create that backfill ticke (like either the queue name, the attributes etc.)

Hi @guillaumedUnity ,
Actually, I solved the problem and if I correct remember, the reason for the problem was that the Team and/or Player list was empty.