server icon indicating copy to clipboard operation
server copied to clipboard

[Bug]: Failed sending heartbeat, got: undefined

Open ChristophWurst opened this issue 2 years ago • 7 comments

⚠️ This issue respects the following points: ⚠️

Bug description

I saw this in my browser console. I don't know if/how it's a bug but it smells like one.

PUT https://localhost/ocs/v2.php/apps/user_status/api/v1/heartbeat?format=json returns 204.

Steps to reproduce

  1. Open a Nextcloud page
  2. Wait and watch the browser console

Expected behavior

No status heartbeat failure

Installation method

None

Nextcloud Server version

master

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • [ ] Default user-backend (database)
  • [ ] LDAP/ Active Directory
  • [ ] SSO - SAML
  • [ ] Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

Failed sending heartbeat, got: undefined UserStatus.vue:210
Failed sending heartbeat, got: undefined UserStatus.vue:210
Failed sending heartbeat, got: undefined UserStatus.vue:210

Additional info

No response

ChristophWurst avatar Jun 14 '23 12:06 ChristophWurst

cc @Antreesy @nickvergessen

szaimen avatar Jun 14 '23 13:06 szaimen

Can't reproduce it ATM. Have you set some statuses in advance? Point to the code: https://github.com/nextcloud/server/blob/b8c3f6bd2d91a1056931a5098d024dd2772d70e2/apps/user_status/src/UserStatus.vue#L201-L212

Documentation is empty about it, but maybe I'm looking in wrong place: https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-status-api.html?highlight=user_status

Antreesy avatar Jun 14 '23 14:06 Antreesy

I don't use statuses on my dev env.

ChristophWurst avatar Jun 14 '23 14:06 ChristophWurst

I noticed that there is a GET https://localhost/ocs/v2.php/apps/user_status/api/v1/statuses/_admin with a response status 500 when I open the status modal. My user's UID is admin, not _admin. This might be related.

ChristophWurst avatar Jun 14 '23 15:06 ChristophWurst

I noticed that there is a GET https://localhost/ocs/v2.php/apps/user_status/api/v1/statuses/_admin with a response status 500 when I open the status modal.

Underscore is added to fetch the backup status: https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-status-api.html?highlight=user_status#fetch-a-user-s-backup-status . On my local, it's 404:

 "ocs": {  "meta": {
            "status": "failure",
            "statuscode": 404,
            "message": "No status for the requested userId"
        },  "data": [],
}

Antreesy avatar Jun 15 '23 06:06 Antreesy

This still happens for, now on production.

ChristophWurst avatar Nov 27 '23 13:11 ChristophWurst

Same here, but line 161. NC 28.0.2

wargreen avatar Feb 15 '24 19:02 wargreen