{'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}
HI,

so just a couple of days ago, at least May 2026, a couple of endpoints on the API are no longer working. I am not using the HA integration directly because I need direct control of the battery min soc. This was working for almost a year with no problems and I do have an installer (agent) account. But recently the following endpoints all respond withe the same error. Not sure foxess made some random change

"/op/v0/device/setting/get" with "key": "gridState"
"/op/v0/device/battery/soc/get"
"/op/v0/device/battery/soc/set"

All return with {'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}

Anyone seen this?

thanks

Simon
Re: {'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}
I don't use the set, but do use the 'get' and it is working fine for me.

As it is complaining about user permissions, it might be worth trying an api key for user access as well as your installer to see if that is the problem.
Re: {'errno': 41811, 'msg': 'User permission cannot perform this operation', 'result': None}
sadly none of that worked. I created various user types, admin, installer and end-user. All have the same problem. Also the agent is the most powerful user it should be able to do it. I will email support

One thing to note is that I am in Canada, and I can only log in to portal.foxesscloud.us, not www.foxesscloud.com. I have no idea why the north american setup is so different but...

thanks for the response! When I get this resolved, I'll follow up for prosperity

Simon
Post Reply