Back

How to get Organization, Project, and the Platform that a User is logged into?

  • 0
  • Self Hosted
  • Auth
  • Web
TMT
23 Feb, 2025, 12:29

Using node-sdk-console, when I try to call the oragnization.get or projects.get I am receiving following error:

TypeScript
AppwriteException: The requested route was not found. Please refer to the API docs and try again.
      at Generator.next (<anonymous>) {
    code: 404,
    type: 'general_route_not_found',
    response: {
      message: 'The requested route was not found. Please refer to the API docs and try again.',
      code: 404,
      type: 'general_route_not_found',
      version: '1.6.1',
      file: '/usr/src/code/app/controllers/general.php',
      line: 1134,
      trace: [Array]
    }
TL;DR
Developers are trying to retrieve information about the Organization, Project, and Platform a user is logged into using the Appwrite `node-sdk-console`. However, they are encountering a 404 error when calling the `organization.get` or `projects.get` functions. This functionality might only be available in the Console SDKs.
ideclon
23 Feb, 2025, 12:34

[…] have been moved […] Pretty sure they’ve always only been available in the Console SDKs?

TMT
23 Feb, 2025, 12:38

Any idea, how do I get the info? I am new to appwrite, so not sure about history of SDKs.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more