Assistance Required for "CannotGetPortalError" in Senaite API

Dear Senaite Community,

I hope this message finds you well.

I am currently encountering an issue with the Senaite JSON API where I am unable to retrieve the portal object. Specifically, when I attempt to interact with the API, I receive the following error message:

json

{
  "_runtime": 0.000879043069458007,
  "message": "Unable to get the portal object. More info on http://docs.plone.org/develop/plone.api/docs/api/exceptions.html#plone.api.exc.CannotGetPortalError",
  "success": false
}

I have followed the documentation and attempted to debug the instance using ./bin/instance -O Plone debug, but I have been unable to resolve the issue. Here are a few more details about my environment:

  • Senaite Version: 2.6.0 (running in Docker)
  • Plone: Installed within the Senaite instance
  • Accessing API URL: http://------/@@API/senaite/v1/client

I have confirmed that the API is active, and other basic routes like the version check are working correctly. However, whenever I try to access specific portal data like /client or /analysisrequest, I encounter this “CannotGetPortalError.”

I’ve made sure to check for user permissions, and I also tried using the debug shell in Zope but was unable to get the correct portal object using the methods I found online.

Could someone kindly guide me on what steps I should take to resolve this issue? Any assistance or advice would be greatly appreciated.

Thank you in advance for your time and help.

Hello,

I know it’s belated response, but have you resolved this issue if yes can you share with us and if not we can work together to see what we can do.

Regards,