3.0.0 Bug Report Thread
-
@inspiring This is fixed in https://github.com/NodeBB/NodeBB/issues/11541, thanks for reporting.
-
-
Forbidden error
It gives this error and I have to clear the cache and log out to allow login
This problem does not exist when you have just logged into the forum and want to enter the management panel, but when after a few minutes (I think you are 15 minutes) I want to enter the management page from the menu, this problem occurs.
-
On the reset password page...
-
-
When trying to visit the "API Access" menu, I get the following error:
This is a bit of a disaster as now, none of our membership automations etc will work because I can't configure the API settings!
Full error from console is:
2023-05-12T06:37:30.401Z [4567/91921] - error: GET /api/admin/settings/api?_=1683873301366 TypeError: Cannot read properties of undefined (reading 'map') at settingsController.api (/usr/bin/nodebb/src/controllers/admin/settings.js:115:52) at async /usr/bin/nodebb/src/routes/helpers.js:74:5
It's saying "tokens" is undefined within the following function:
settingsController.api = async (req, res) => { const { tokens } = await meta.settings.get('core.api'); const scores = await api.utils.getLastSeen(tokens.map(t => t.token)); const [lastSeen, lastSeenISO] = tokens.reduce((memo, cur, idx) => { memo[0][cur.token] = scores[idx]; memo[1][cur.token] = new Date(scores[idx]).toISOString(); return memo; }, [{}, {}]); res.render('admin/settings/api', { lastSeen, lastSeenISO }); };
I have worked around it by changing the line to:
const { tokens = [] } = await meta.settings.get('core.api');
I don't know yet whether there will be any knock-on effects!