Custom Module: "Route doesn't have specified controller" error in EspoCRM 9.x

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shalmaxb
    Senior Member
    • Mar 2015
    • 1828

    #1

    Custom Module: "Route doesn't have specified controller" error in EspoCRM 9.x

    Hello,

    I'm developing a custom module for EspoCRM 9.x (PHP 8.4) and I'm facing a persistent issue with a custom API route.

    The Problem: When calling my custom endpoint via POST, I get a 500 Internal Server Error. The Espo log shows: DEBUG: API (0) Route doesn't have specified controller.; POST /myModule

    A custom debug script using \Espo\Core\Application can successfully find the route in the metadata and confirm the scope is registered.

    Thanks in advance for help.
  • yuri
    EspoCRM product developer
    • Mar 2014
    • 9616

    #2
    Hi,

    Might be you didn't specify neither actionClassName nor controller in your route. https://docs.espocrm.com/development...ction/#example

    Comment

    Working...