Getting AUTHRET_OVERTIME when calling SDKAuth

Description
Evertime I call SDKAuth(authContext) the onAuthenticationReturn callback result is always AUTHRET_OVERTIME

Which Desktop Client SDK version?
v5.4.54802.0124

Screenshots
If applicable, add screenshots to help explain your problem.

Device (please complete the following information):
Windoes 10 (os build 19041.867)

Additional context
I am able to get the demo project to authenticate with the same jwt / secret- app key token.
I tried to run it while the firewall was off to make sure it was not getting blocked.

Here is the code I am using to call the SKDAuth

void AuthSDK()
{
ZOOM_SDK_NAMESPACE::AuthParam authParam;
authParam.appKey = L" app key here";
authParam.appSecret = L" app secret here";

 _auth_service->SDKAuth(authParam);

}

Hey @Pier,

Thanks for using the dev forum!

Usually this error only happens when there is network connection issues. Where in your application are you calling this?

Thanks!
Michael

I am calling it from the message loop provided by a new visual studio c++ desktop application

LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam){
    switch (message){
       case WM_CREATE :{        
           HWND hButton2 = CreateWindow(TEXT("BUTTON"), TEXT("auth"), WS_VISIBLE | WS_CHILD, 350, 100, 200, 50, hWnd, (HMENU)2, NULL, NULL);
       }
       break;    
    case WM_COMMAND:{   
        int wmId = LOWORD(wParam);
        // Parse the menu selections:
        switch (wmId){
            case 2:
                AuthSDK();
                break;
            default:
                return DefWindowProc(hWnd, message, wParam, lParam);
       }
    }
    break;
default:
    return DefWindowProc(hWnd, message, wParam, lParam);
}
return 0;

}

Hey @Pier,

Have you initialized the SDK before AuthSDK is called?

Thanks!
Michael

@Michael_Condon I initialize the SKD the same I call the AUTH code with a UI button, I removed it from the snippet above to make it easier to read, but this is how I initialize the SDK

ZOOM_SDK_NAMESPACE::InitParam initParam;
initParam.strWebDomain = L"";
initParam.strSupportUrl = L"https://zoom.us";
initParam.emLanguageID = ZOOM_SDK_NAMESPACE::LANGUAGE_English;
initParam.hResInstance = GetModuleHandle(NULL);
initParam.enableLogByDefault = true;
initParam.enableGenerateDump = true;
bool customiezed_ui_mode = false;  

ZOOM_SDK_NAMESPACE::InitSDK(initParam);

ZOOM_SDK_NAMESPACE::SDKError test = ZOOM_SDK_NAMESPACE::CreateAuthService(&_auth_service);
    
if (_auth_service != NULL)
{
    _auth_service->SetEvent(&EventHandler);
    MessageBox(NULL, L"auth service created", L"awesome", MB_OK);
}
else 
{
    wchar_t istr[32];
    _itow_s(test, istr, 10);
    MessageBox(NULL, istr, L"awesome", MB_OK);
}

Hey @Pier,

Hmm that is strange, can you email your SDK logs to DeveloperSupport@zoom.us and mention my name so that we can take a look?

Thanks!
Michael

@Michael_Condon did you receive any updates about the log files?

Hey @Pier,

Yes, thank you for your patience on this one. I should’ve caught this earlier. Your web domain is blank. It should be:
initParam.strWebDomain = L"https://zoom.us";

Can you try that and let me know what happens?

Thanks!
Michael

This worked thank you

1 Like

Hey @Pier,

Awesome! Happy to hear :slight_smile:

Please let us know if you run into anything else.

Thanks!
Michael