controller for REST web service not active or present

English! place to talk about development, programming and coding
Post Reply
ATD39401
Znuny newbie
Posts: 21
Joined: 28 Jun 2024, 14:38
Znuny Version: 6.0.44
Real Name: Amber Denton
Company: UTK College of Veterinary Medicine

controller for REST web service not active or present

Post by ATD39401 »

I'm getting the following message when I set up a configuration for a couple custom routes I need for some ticket automation.

At least one operation has a controller that is either not active or not present, please check the controller registration or delete the operation

Would I be missing something? I edited the config file myself after generating it when I created the web service from the Admin panel of OTRS. I have included the contents of my config file for the service below. The two routes are called "PrinterTicketSearch" and "ConvCopierTicketSearch" respectively.

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: search for monthly printer reports for Convenience Copier
FrameworkVersion: 6.0.44
Provider:
  Operation:
    SessionCreate:
      Description: Create a Session
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionCreate
    SessionGet:
      Description: Retreive Session data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Session::SessionGet
    TicketCreate:
      Description: Create a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketCreate
    TicketGet:
      Description: Retrieve Ticket data
      IncludeTicketData: '0'
      MappingInbound:
        Type: Simple
      MappingOutbound:
        Type: Simple
      Type: Ticket::TicketGet
    TicketGetList:
      Description: Retrieve Ticket data for a List of Ticket IDs
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketGet
    TicketHistoryGet:
      Description: Retrieve Ticket history data
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketHistoryGet
    TicketSearch:
      Description: Search for Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketSearch
    PrinterTicketSearch:
      Description: Search for Printer Report Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::PrinterTicketSearch
    ConvCopierTicketSearch:
      Description: Search for Convenience Copier Tickets
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::ConvCopierTicketSearch
    TicketUpdate:
      Description: Update a Ticket
      MappingInbound: {}
      MappingOutbound: {}
      Type: Ticket::TicketUpdate
  Transport:
    Config:
      AdditionalHeaders: ~
      KeepAlive: ''
      MaxLength: '100000000'
      RouteOperationMapping:
        SessionCreate:
          RequestMethod:
          - POST
          Route: /Session
        SessionGet:
          RequestMethod:
          - GET
          Route: /Session/:SessionID
        TicketCreate:
          RequestMethod:
          - POST
          Route: /Ticket
        TicketGet:
          RequestMethod:
          - GET
          Route: /Ticket/:TicketID
        TicketGetList:
          RequestMethod:
          - GET
          Route: /TicketList
        TicketHistoryGet:
          RequestMethod:
          - GET
          Route: /TicketHistory/:TicketID
        TicketSearch:
          RequestMethod:
          - GET
          Route: /Ticket
        PrinterTicketSearch:
          RequestMethod:
          - GET
          Route: /Ticket/:TicketID?QueueID=25&TicketCreateTimeNewerMinutes=43200&Title='E-mail Report'
        ConvCopierTicketSearch:
          RequestMethod:
          - GET
          Route: /Ticket/:TicketID?QueueID=27&TicketCreateTimeNewerMinutes=43200&Title='June Meter Readings Due'
        TicketUpdate:
          RequestMethod:
          - PATCH
          Route: /Ticket/:TicketID
    Type: HTTP::REST
RemoteSystem: ''
Requester:
  Transport:
    Config:
      DefaultCommand: GET
      Host: CONVCOPIER
      Timeout: '120'
    Type: HTTP::REST
root
Administrator
Posts: 4232
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: controller for REST web service not active or present

Post by root »

Hi,

You probably have mentioned to non-existing operations:
- Ticket::ConvCopierTicketSearch
- Ticket::PrinterTicketSearch

Have you added really invoker (in Perl) code with the names?

If not, I think you should start in the Help section with a description what you want to achieve.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
Post Reply