VitalPBX App QRcode 'User Not Found'

Using the VitalPBX App which has been working with many clients just perfectly for a long time, suddenly today had an issue that when a client scanned the QRCODE it would just pop up with an error box saying ‘Note’ ‘User Not Found’

So tried with another user, same issue, tried another tenant, same issue.
Checked the ‘Connect’ plug in was there and showing all devices and settings just fine.
Then rebooted and still same issue.
Checked firewalls, domain names etc.. still not working.

Eventually in PBX>VitalPBX Connect>Settings - There is a BLUE BUTTON - “Sync Devices”.

I hit that and then the user could connect the app via qrcode BUT there was this error on the page which I am wondering if its a problem or not? ::

Exception: [422-post] /users: {“message”:“The username has already been taken.”,“errors”:{“username”:[“The username has already been taken.”]}} at file /usr/share/vitalpbx/www/includes/components/VPBXConnect/RestClient.php on line 0

Error Trace

File Function

1 /usr/share/vitalpbx/www/index.php:0 app\Core->run(…args);
2 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core->_loadModule(…args);
3 /usr/share/vitalpbx/www/includes/app/Core.php:0 app\Core->loadModuleAction(…args);
4 /usr/share/vitalpbx/www/includes/app/Core.php:0 modules\mobile_settings\mobile_settings->syncDevices(…args);
5 /usr/share/vitalpbx/www/modules/mobile_settings/mobile_settings.php:0 modules\mobile_settings\mobile_settings->_syncDevices(…args);
6 /usr/share/vitalpbx/www/modules/mobile_settings/mobile_settings.php:0 array_map(…args);
7 — modules\mobile_settings\mobile_settings->modules\mobile_settings{closure}(…args);
8 /usr/share/vitalpbx/www/modules/mobile_settings/mobile_settings.php:0 modules\mobile_devices\MobileDevice->save(…args);
9 /usr/share/vitalpbx/www/modules/mobile_devices/MobileDevice.php:0 modules\mobile_devices\MobileDevice->_saveOnCloud(…args);
10 /usr/share/vitalpbx/www/modules/mobile_devices/MobileDevice.php:0 components\VPBXConnect\Models\User->save(…args);
11 /usr/share/vitalpbx/www/includes/components/VPBXConnect/Models/User.php:0 components\VPBXConnect\RestClient->Create(…args);
12 /usr/share/vitalpbx/www/includes/components/VPBXConnect/RestClient.php:0 components\VPBXConnect\RestClient->_sendRequest(…args);

1 Like

Hello,

Could you please try removing the Connect user and recreating it from scratch?

Best regards,

it doesn’t seem to make any difference if its a new/old/replaced/updated user or even a different tenant. However despite the error after the clicking sync it does seem to still work. So I will leave it as is unless something doesn’t work further. Was just unsure if this is a known issue or rare.. so guess its rare.

I recently had the same issue. However for extensions I recently created, their QR codes still worked. But seemed like qr codes of more than a year let’s say had the same error you mentioned.

I told the tenant the QR codes expire after a while to prevent unauthorized access lol. That sounded like a great reason to me…

To resolve it, on the extension settings I then toggled off “mobile client” saved it, applied the changes. Confirmed in vpbx connect > device that the mobile client was deleted from the list and then went back to the extension and reenabeld “mobile client”. I then re sent the welcome email from vpbx connect > devices and the QR code worked fine.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.