RocketChat / RocketChat/Rocket.Chat

Imports page has Application Error after Download Pending Avatars

Open Beginner friendly
#29,509 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
46.1k
Forks
13.9k
Avg merge
3d 3h
Merged PRs (30d)
130

Description

Description:

After attempting an slack import then clicking the "Download Pending Avatars", the imports page breaks with an "Application Error The application GUI just crashed." In the browser console It shows a Minified React error #31 with a link to reactjs docs that says the error is: "Objects are not valid as a React child (found: object with keys {}). If you meant to render a collection of children, use an array instead."

In the browser console's network tab the request for "api/v1/getLatestImportOperations" returns the following data below. The one that looks suspicious to me (based off the generic react message) is the second one down about Pending Avatars where the total says "0[object Promise]". I don't really have much front end development experience but I'm wondering if this is related in some way to https://github.com/RocketChat/Rocket.Chat/pull/29323

Also, the gui doesn't break until the viewport is "not small" defined by the 768px width here: https://github.com/RocketChat/Rocket.Chat/blob/b9795304af333a6f3b87126504fa700392c50fe0/apps/meteor/client/views/admin/import/ImportHistoryPage.tsx#L95 which I feel like supports the hunch about the 'total' not being formatted correctly, since 'total' doesn't get displayed until after 768px.

    {
        "_id": "6483479416d7955d0f4acc90",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1686325140086,
        "status": "importer_done",
        "valid": true,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-06-09T15:39:00.099Z"
    },
    {
        "_id": "647f7ab57de039a1002dd560",
        "type": "Pending Avatars",
        "importerKey": "pending-avatars",
        "ts": 1686076085911,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-06-06T18:36:08.842Z",
        "count": {
            "messages": {},
            "total": "0[object Promise]"
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": {}
        }
    },
    {
        "_id": "647f7aaf7de039a1002dd55f",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1686076079505,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-06-06T18:36:08.842Z"
    },
    {
        "_id": "647f7aa57de039a1002dd4b5",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1686076069307,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-06-06T18:36:08.842Z",
        "contentType": "application/x-zip-compressed",
        "file": "202356182749_FscXaS8z2vmc6w3y4_Smarts Slack export May 15 2023 - Jun 6 2023.zip",
        "count": {
            "total": 107,
            "channels": 2,
            "users": 20,
            "messages": 85
        },
        "messagesstatus": null
    },
    {
        "_id": "owYFHSzZQFGcn4FHM",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1684250021750,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-05-17T17:17:03.560Z",
        "count": {
            "messages": 108,
            "total": 108,
            "completed": 108
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 108
        }
    },
    {
        "_id": "LimveoefJCWTGSMGu",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1684250000949,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-05-17T17:17:03.560Z",
        "contentType": "application/x-zip-compressed",
        "file": "2023416151320_FscXaS8z2vmc6w3y4_Smarts Slack export Apr 2 2023 - May 16 2023.zip",
        "count": {
            "total": 203,
            "channels": 6,
            "users": 20,
            "messages": 177,
            "completed": 291
        },
        "messagesstatus": null
    },
    {
        "_id": "kSRmwjbvTay8wbtLL",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1680546041031,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-05-01T10:40:43.663Z",
        "count": {
            "messages": 88,
            "total": 88,
            "completed": 88
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 88
        }
    },
    {
        "_id": "Pz3chNzAMHF2pv2rD",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1680546021384,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-05-01T10:40:43.663Z",
        "contentType": "application/x-zip-compressed",
        "file": "202333182021_FscXaS8z2vmc6w3y4_Smarts Slack export Mar 2 2023 - Apr 3 2023.zip",
        "count": {
            "total": 237,
            "channels": 5,
            "users": 20,
            "messages": 212,
            "completed": 305
        },
        "messagesstatus": null
    },
    {
        "_id": "pzbfBkPkjEwopXb9J",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1677888214438,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-03-27T17:12:45.761Z",
        "count": {
            "messages": 64,
            "total": 64,
            "completed": 64
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 64
        }
    },
    {
        "_id": "9bxw4B2w6BmiLimCN",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1677888194652,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-03-27T17:12:45.761Z",
        "contentType": "application/x-zip-compressed",
        "file": "2023240314_FscXaS8z2vmc6w3y4_Smarts Slack export Jan 23 2023 - Mar 3 2023.zip",
        "count": {
            "total": 135,
            "channels": 3,
            "users": 20,
            "messages": 112,
            "completed": 179
        },
        "messagesstatus": null
    },
    {
        "_id": "HELchNg5g9teQRvcG",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1674582282812,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-02-01T11:26:43.136Z",
        "count": {
            "messages": 82,
            "total": 82,
            "completed": 82
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 82
        }
    },
    {
        "_id": "soe4HF3BAYqQQ4oSK",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1674582261837,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2023-02-01T11:26:43.136Z",
        "contentType": "application/x-zip-compressed",
        "file": "2023024174421_FscXaS8z2vmc6w3y4_Smarts Slack export Dec 14 2022 - Jan 24 2023.zip",
        "count": {
            "total": 253,
            "channels": 5,
            "users": 20,
            "messages": 228,
            "completed": 316
        },
        "messagesstatus": null
    },
    {
        "_id": "2aJxZpCXy5M5xyMXs",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1671152259007,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-12-20T14:07:33.114Z"
    },
    {
        "_id": "oxLCPa5Db69AqBTri",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1671152192669,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-12-20T14:07:33.114Z",
        "count": {
            "messages": 47,
            "total": 47,
            "completed": 47
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 47
        }
    },
    {
        "_id": "EwwyWc9uzb3wMiSh5",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1671152172364,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-12-20T14:07:33.114Z",
        "contentType": "application/x-zip-compressed",
        "file": "2022111605612_FscXaS8z2vmc6w3y4_Smarts Slack export Nov 14 2022 - Dec 15 2022.zip",
        "count": {
            "total": 221,
            "channels": 4,
            "users": 20,
            "messages": 197,
            "completed": 248
        },
        "messagesstatus": null
    },
    {
        "_id": "Wt9hXuyCMJfExQMQp",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1668448691941,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-12-01T11:08:53.797Z",
        "count": {
            "messages": 43,
            "total": 43,
            "completed": 43
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 43
        }
    },
    {
        "_id": "Bzdkuwr7ubq38awbu",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1668448599766,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-12-01T11:08:53.797Z",
        "contentType": "application/x-zip-compressed",
        "file": "20221014175639_FscXaS8z2vmc6w3y4_Smarts Slack export Oct 6 2022 - Nov 14 2022.zip",
        "count": {
            "users": 20,
            "total": 221,
            "channels": 6,
            "messages": 195,
            "completed": 263
        },
        "messagesstatus": null
    },
    {
        "_id": "rDP9JyERALttYev8F",
        "type": "Pending Files",
        "importerKey": "pending-files",
        "ts": 1665154885697,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-10-17T17:26:36.648Z",
        "count": {
            "messages": 52,
            "total": 52,
            "completed": 52
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 52
        }
    },
    {
        "_id": "4maqo9F3dRPvqqkr9",
        "type": "Slack",
        "importerKey": "slack",
        "ts": 1665154850155,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-10-17T17:26:36.648Z",
        "contentType": "application/x-zip-compressed",
        "file": "20229715050_FscXaS8z2vmc6w3y4_Smarts Slack export Aug 30 2022 - Oct 7 2022.zip",
        "count": {
            "users": 20,
            "total": 220,
            "channels": 6,
            "messages": 194,
            "completed": 272
        },
        "messagesstatus": null
    },
    {
        "_id": "BGaByY6yYqZdEuz98",
        "type": "Pending Avatars",
        "importerKey": "pending-avatars",
        "ts": 1664077471582,
        "status": "importer_done",
        "valid": false,
        "user": "FscXaS8z2vmc6w3y4",
        "_updatedAt": "2022-10-01T10:14:56.924Z",
        "count": {
            "messages": 20,
            "total": 20,
            "completed": 20
        },
        "messagesstatus": null,
        "fileData": {
            "users": [],
            "channels": [],
            "message_count": 20
        }
    }
]
Steps to reproduce:
  1. Go to Administration > Import
  2. Click on "Download Pending Avatars"
Expected behavior:

Import should finish and import history page should display successfully

Actual behavior:

Application Error
image

Server Setup Information:
  • Version of Rocket.Chat Server: 6.2.5
  • Operating System: linux
  • Deployment Method: docker
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: v14.21.3
  • MongoDB Version: 6.0.5 /wiredTiger (oplog Enabled)
Client Setup Information
  • Desktop App or Browser Version: 114.0.1823.37 (Official build) (64-bit)
  • Operating System: Windows
Additional context
Relevant logs:

server log:

{"level":35,"time":"2023-06-09T16:44:07.667Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getLatestImportOperations","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":4}
{"level":35,"time":"2023-06-09T16:44:07.672Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getCurrentImportOperation","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":11}
{"level":35,"time":"2023-06-09T16:44:07.767Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"POST","url":"/api/v1/downloadPendingAvatars","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","length":"0","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":18}
{"level":35,"time":"2023-06-09T16:44:07.835Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getCurrentImportOperation","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":2}
{"level":35,"time":"2023-06-09T16:44:07.843Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getLatestImportOperations","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":3}
{"level":35,"time":"2023-06-09T16:44:50.338Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getCurrentImportOperation","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":5}
{"level":35,"time":"2023-06-09T16:44:50.344Z","pid":1,"hostname":"67b632c5e45f","name":"API","method":"GET","url":"/api/v1/getLatestImportOperations","userId":"FscXaS8z2vmc6w3y4","userAgent":"Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Mobile Safari/537.36 Edg/114.0.1823.37","host":"","referer":"https:///admin/import","remoteIP":"192.168.1.1","status":200,"responseTime":7}

browser log:

842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ja (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:51938)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:56759
at ls (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:67718)
at Rc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:113421)
at nl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98852)
at tl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98780)
at el (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98643)
at Vc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:95497)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:45616
at r.unstable_runWithPriority (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226:3778)
Fs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Ns.r.payload @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Na @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
hs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Rc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
nl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
tl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
el @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Vc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
r.unstable_runWithPriority @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226
xa @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
va @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
ya @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
zc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
rs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5
t @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5
842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ja (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:51938)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:56759
at ls (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:67718)
at Rc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:113421)
at nl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98852)
at tl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98780)
at el (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98643)
at Vc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:95497)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:45616
at r.unstable_runWithPriority (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226:3778)
Fs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Ns.r.payload @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Na @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
hs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Rc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
nl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
tl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
el @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Vc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
r.unstable_runWithPriority @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226
xa @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
va @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
ya @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
zc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
rs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5
t @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5
842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190 Error: Minified React error #31; visit https://reactjs.org/docs/error-decoder.html?invariant=31&args[]=object%20with%20keys%20%7B%7D for the full message or use the non-minified dev environment for full errors and additional helpful warnings.
at Ja (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:51938)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:56759
at ls (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:67718)
at Rc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:113421)
at nl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98852)
at tl (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98780)
at el (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:98643)
at Vc (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:95497)
at 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190:45616
at r.unstable_runWithPriority (842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226:3778)
Fs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Ns.r.payload @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Na @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
hs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Rc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
nl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
tl @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
el @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
Vc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
r.unstable_runWithPriority @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1226
xa @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
va @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
ya @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
zc @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
rs @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:1190
(anonymous) @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5
t @ 842cc7915a98accdc52c63bc3e03ec11c8774779.js?meteor_js_resource=true:5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at apps/meteor/client/views/admin/import/ImportHistoryPage.tsx, especially the viewport-dependent rendering around line 95, and reproduce a Slack import followed by Download Pending Avatars at a viewport of at least 768px. Inspect the getLatestImportOperations response and the Pending Avatars count. Done means the Imports page remains usable and displays the total without a React error.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.