Espo CRM PUT Method not allowed
-
Hello,
Accessing via API works for me for GET method, but PUT is not working. I've seen in the github issues that it has to do with apache setup (https://forum.espocrm.com/forum/general/2359-error-405)
There's nothing if the cloudron app docs for this info. Could you please advise where I can setup this?
-
This probably has nothing to do with the issue from that link from 2014. We use a pretty standard apache config which should have all verbs enabled https://git.cloudron.io/cloudron/espocrm-app/-/blob/master/apache/espocrm.conf?ref_type=heads
What is the error you are getting? Maybe also paste the curl commandline to reproduce this.
-
-
The error says:
Method Not Allowed The requested method PUT is not allowed for this URL.
cURL:
curl --request PUT \ --url REDACTED.TLD/Account/5564764442a6d024c \ --header 'Content-Type: application/json' \ --data '{ "cLinkedInCompanyPageURL": "https://www.linkedin.com" }'
My main question is how to override allowed methods in Apache. In
/app/data/apache
I see portals.conf and mpm_prefork.conf, that's it. Maybe you could point me into the right place in docs to read about the way apache overrides work in cloudron packaged apps. -
As far as I understand apache does not limit verbs by default and the module https://httpd.apache.org/docs/2.4/mod/mod_allowmethods.html is not used for espo. I wonder if this comes from apache or maybe the app itself needs changes.
-
@krymov If you open EspoCRM in the browser, go to Accounts view and Edit some Account and save. Does it work? You will see PUT requests in the browser's network view.
Also, the URL is
https://REDACTED.TLD/api/v1/Account/5564764442a6d024c
-
6/6