Page MenuHomeFeedback Tracker

RestApi::GetContext() returning invalid pointer
Closed, ResolvedPublic


On the release version of Arma Reforger the built-in RestApi seems to be generally available, however, any context created out of it results in an invalid pointer.

PrintFormat("g_Game = %1", g_Game); //Game instance, works
PrintFormat("rest = %1", g_Game.GetRestApi()); //RestApi instance, works
PrintFormat("context = %1", g_Game.GetRestApi().GetContext("domain.tld")); //Prints INVALID

I tried domains for the GetContext call with and without http(s)://. In DayZ this used to work just fine.
Is there something we need to do to get this working? Is it only available in a certain lifecycle phase of the game? Or is it just a bug?


Operating System
Windows 10 x64

Event Timeline

Arkensor created this task.May 18 2022, 2:58 AM
Geez changed the task status from New to Assigned.May 18 2022, 1:17 PM
Vladdy added a subscriber: Vladdy.May 19 2022, 6:07 PM
Zolii added a subscriber: Zolii.May 20 2022, 9:25 AM

I have exactly the same problem

Kabun added a subscriber: Kabun.May 21 2022, 10:32 PM
Kiwi added a subscriber: Kiwi.May 22 2022, 4:06 PM
Tunui added a subscriber: Tunui.May 22 2022, 9:33 PM
Tunui added a comment.May 22 2022, 9:38 PM

We need this API ! It's very important for us to dev. A link with a data base !

Azeh added a subscriber: Azeh.May 30 2022, 8:07 AM
tonic85 added a subscriber: tonic85.Jun 7 2022, 9:24 PM
Arkensor added a subscriber: Geez.Jul 29 2022, 10:14 AM

The invalid pointer problem was solved, the get_now variants are still not exactly working as intended (s. but I think since that has its separate ticket this here can be considered resolved @Geez

Geez closed this task as Resolved.Aug 3 2022, 10:44 AM
Geez claimed this task.