404 for GET /forest/TableName

Feature(s) impacted

Reading data from collections

Observed behavior

The one collection that’s been setup “either failed or returned invalid data”

Expected behavior

CRUD on the setup collection

Failure Logs

Here are the logs from the agent perspective:

[forest-admin] [2024-03-10 11:10:48] 
[forest-admin] [2024-03-10 11:10:48] > ww-admin-2@0.0.1 start
[forest-admin] [2024-03-10 11:10:48] > node ./index.js
[forest-admin] [2024-03-10 11:10:48] 
[forest-admin] [2024-03-10 11:10:52] info: Schema was not updated since last run (hash: 0c714ab2024a3858aacf632572fc8c83f652a1fc)
[forest-admin] [2024-03-10 11:10:52] info: Successfully mounted on Standalone server (http://0.0.0.0:3310)
[forest-admin] [2024-03-10 11:11:12] info: [200] POST /forest/authentication - 4ms
[forest-admin] [2024-03-10 11:11:12] info: [200] POST /forest/authentication - 2ms
[forest-admin] [2024-03-10 11:11:15] info: [200] GET /forest/authentication/callback - 1005ms
[forest-admin] [2024-03-10 11:11:15] info: [200] GET /forest/authentication/callback - 669ms
[forest-admin] [2024-03-10 11:11:16] warning: [404] GET /forest/User - 746ms
[forest-admin] [2024-03-10 11:11:16] warning: [404] GET /forest/User/count - 738ms
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16] ===== An exception was raised =====
[forest-admin] [2024-03-10 11:11:16] GET /forest/User?{
[forest-admin] [2024-03-10 11:11:16]  timezone: Asia/Bangkok,
[forest-admin] [2024-03-10 11:11:16]  fields[User]: username,email,updatePassword,deletedAt,id,
[forest-admin] [2024-03-10 11:11:16]  page[number]: 1,
[forest-admin] [2024-03-10 11:11:16]  page[size]: 15,
[forest-admin] [2024-03-10 11:11:16]  sort: -id
[forest-admin] [2024-03-10 11:11:16] }
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16]  Forbidden 
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16] ForbiddenError: Forbidden
[forest-admin] [2024-03-10 11:11:16]     at Object.throw (/usr/src/app/node_modules/koa/lib/context.js:97:11)
[forest-admin] [2024-03-10 11:11:16]     at AuthorizationService.assertCanOnCollection (/usr/src/app/node_modules/@forestadmin/agent/dist/services/authorization/authorization.js:40:26)
[forest-admin] [2024-03-10 11:11:16]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[forest-admin] [2024-03-10 11:11:16]     at async AuthorizationService.assertCanBrowse (/usr/src/app/node_modules/@forestadmin/agent/dist/services/authorization/authorization.js:15:9)
[forest-admin] [2024-03-10 11:11:16]     at async ListRoute.handleList (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/access/list.js:14:9)
[forest-admin] [2024-03-10 11:11:16]     at async Logger.logger (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/system/logger.js:20:13)
[forest-admin] [2024-03-10 11:11:16]     at async ErrorHandling.errorHandler (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/system/error-handling.js:20:13)
[forest-admin] [2024-03-10 11:11:16]     at async bodyParser (/usr/src/app/node_modules/koa-bodyparser/index.js:78:5)
[forest-admin] [2024-03-10 11:11:16]     at async cors (/usr/src/app/node_modules/@koa/cors/index.js:109:16)
[forest-admin] [2024-03-10 11:11:16] ===================================
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16] ===== An exception was raised =====
[forest-admin] [2024-03-10 11:11:16] GET /forest/User/count?{
[forest-admin] [2024-03-10 11:11:16]  fields[User]: username,email,updatePassword,deletedAt,id,
[forest-admin] [2024-03-10 11:11:16]  timezone: Asia/Bangkok
[forest-admin] [2024-03-10 11:11:16] }
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16]  Forbidden 
[forest-admin] [2024-03-10 11:11:16] 
[forest-admin] [2024-03-10 11:11:16] ForbiddenError: Forbidden
[forest-admin] [2024-03-10 11:11:16]     at Object.throw (/usr/src/app/node_modules/koa/lib/context.js:97:11)
[forest-admin] [2024-03-10 11:11:16]     at AuthorizationService.assertCanOnCollection (/usr/src/app/node_modules/@forestadmin/agent/dist/services/authorization/authorization.js:40:26)
[forest-admin] [2024-03-10 11:11:16]     at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
[forest-admin] [2024-03-10 11:11:16]     at async AuthorizationService.assertCanBrowse (/usr/src/app/node_modules/@forestadmin/agent/dist/services/authorization/authorization.js:15:9)
[forest-admin] [2024-03-10 11:11:16]     at async CountRoute.handleCount (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/access/count.js:15:9)
[forest-admin] [2024-03-10 11:11:16]     at async Logger.logger (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/system/logger.js:20:13)
[forest-admin] [2024-03-10 11:11:16]     at async ErrorHandling.errorHandler (/usr/src/app/node_modules/@forestadmin/agent/dist/routes/system/error-handling.js:20:13)
[forest-admin] [2024-03-10 11:11:16]     at async bodyParser (/usr/src/app/node_modules/koa-bodyparser/index.js:78:5)
[forest-admin] [2024-03-10 11:11:16]     at async cors (/usr/src/app/node_modules/@koa/cors/index.js:109:16)
[forest-admin] [2024-03-10 11:11:16] ===================================
[forest-admin] [2024-03-10 11:11:16]

Context

  • Project name: WW Admin 2
  • “Personal Space” for pete@opensource.careers
  • Environment name: Production
  • Agent: “@forestadmin/agent”: “^1.0.0”,
  • Database type: pg
  • Recent changes made on your end if any: Tried changing the NODE_ENV to development, tried using the URL assigned to the agent App by DO instead of the cname

This all worked fine for the development version!

Hello @conch-hothouse-axiol,

You might have ran into a permissions cache issue that is being fixed at the moment.

In the meantime I have cleared the permissions cache of your project to fix your issue.
Could you please refresh your browser window and try again ?

Thanks :pray:

1 Like

Yes, that’s solved it with no other changes on my end, thank you

1 Like