Iām trying to get the API to work, but it simply doesnāt. Iām trying to use a module developed for OwnCloud by HostBill. Their developer reported back that it is a bug in NextCloud. Iā have tested myself, trying to do basic API-calls (without any modules, just straigth API-calls like demonstrated in the manual), but they are all denied from the API - I have even tried new users. Can it be that there are just something I do wrong? That I have to enable something more than in OwnCloud?
I have raised an issue here, but I donāt know how many days, month, years it will takeā¦
I tried to get the user data and it works for me on NC 12 (ādefaultā setup on debian + apache+mod_php). If you use second factor authentication, donāt forget to set an app password for shell access.
The secred might be found in the fact not to send username and uncrypted passwords (or AppIDs) within an URL as they could be read and stored by everyone in logs, routers, proxies.
I have tried it with CURL yes. Same result. I also changed from php-fcgi to php-module, with little changes.
Maybe I can hope it is only a bug in the one cPanel/Softalcious provides (or some kind of security-blocks). Will test on another server, hopefully, it works.
<?xml version="1.0"?>
<ocs>
<meta>
<status>failure</status>
<statuscode>997</statuscode>
<message>Current user is not logged in</message>
<totalitems></totalitems>
<itemsperpage></itemsperpage>
</meta>
<data/>
This has shown to be a bit tricky in the past (check other topics) because we are here no experts of these panel software which alters the default settings
I noticed some weird behaviour too with Hostbill and NextCloud.
It can connect successfully to my NextCloud server, but as soon as I try to create an account with Hostbill it canāt connect anymore.(Error: Unauthorised)
I get the following in the NextCloud logs:
Error: Call to undefined method [obfuscated class]::createuser() at /var/www/nextcloud/apps/api_hostbill/lib/helper.php#32
Error: Class āOC_Groupā not found at /var/www/nextcloud/apps/api_hostbill/lib/helper.php#163
As I donāt own the OpenSource code for the Hostbill module I canāt change/see anything in there.
ā
Both servers have the latest version.
Hostbill and NextCloud runs each on an own KVM. No cPanel or anything else.
@JasonBayton Iām in favor to close this issue. Itās clearly a problem of the hosterās closed-source app, so we canāt really do anything more.
If their developers find something broken in the api, they should better report directly to github, itās hard to guess what is messed up and itās clearly their support who should solve this.
Yup seconded. Folks youāve done some great troubleshooting but as itās an issue with their app youāre better off raising the issue with them directly. By all means update the GitHub ticket with what youāve tested here though I imagine itāll be closed off once the Devs validate it working.
If thereās a valid reason to reopen this please PM myself or @tflidd