Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. EspoCRM
  3. Espo CRM PUT Method not allowed

Espo CRM PUT Method not allowed

Scheduled Pinned Locked Moved Solved EspoCRM
6 Posts 3 Posters 800 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • krymovK Offline
    krymovK Offline
    krymov
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    1
    • nebulonN Offline
      nebulonN Offline
      nebulon
      Staff
      wrote on last edited by
      #2

      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.

      1 Reply Last reply
      1
      • nebulonN nebulon marked this topic as a question on
      • krymovK Offline
        krymovK Offline
        krymov
        wrote on last edited by krymov
        #3

        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.

        J 1 Reply Last reply
        0
        • nebulonN Offline
          nebulonN Offline
          nebulon
          Staff
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0
          • krymovK krymov

            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.

            J Offline
            J Offline
            joseph
            Staff
            wrote on last edited by
            #5

            @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

            1 Reply Last reply
            1
            • krymovK Offline
              krymovK Offline
              krymov
              wrote on last edited by
              #6

              @joseph thank you. my bad, didn't think about this simple test. The question is irrelevant now.

              1 Reply Last reply
              1
              • J joseph has marked this topic as solved on
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search