webservice requester error "Can't locate Kernel/GenericInterface/Transport/.pm"

Moderator: crythias

Post Reply
sfardiya
Znuny newbie
Posts: 1
Joined: 25 Apr 2025, 06:07
Znuny Version: 7.1.3
Real Name: sansan fardiyansyah
Company: ductus

webservice requester error "Can't locate Kernel/GenericInterface/Transport/.pm"

Post by sfardiya »

Hi, I'm new to using Znuny.
Currently, I'm running the LTS version 6.5.14.
I'm having an issue with HTTP::REST. It works fine when the web service is configured as a provider (I imported the GenericTicketConnectorREST as an example), but it doesn't work when the web service is set up as a requester.

I followed the guide from:
https://doc.znuny.org/znuny_lts/admin/w ... index.html

Here are the error logs:

Code: Select all

DebugLog error: Summary: TransportObject could not be initialized Data : $VAR1 = { 'ErrorMessage' => 'Backend Kernel::GenericInterface::Transport:: not found.', 'Success' => 0};.

Code: Select all

DebugLog error: Summary: Backend Kernel::GenericInterface::Transport:: not found. Data : No data provided.

Code: Select all

Can't locate Kernel/GenericInterface/Transport/.pm in @INC (you may need to install the Kernel::GenericInterface::Transport:: module) (@INC contains: /opt/otrs/Custom /opt/otrs/Kernel/cpan-lib /opt/otrs/ /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.34.0 /usr/local/share/perl/5.34.0 /usr/lib/x86_64-linux-gnu/perl5/5.34 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.34 /usr/share/perl/5.34 /usr/local/lib/site_perl /etc/apache2) at /opt/otrs/Kernel/System/Main.pm line 86.
The installation is still fresh. I also checked that all modules are installed correctly using the otrs/bin/otrs.CheckModules.pl --all command.
Here is the YML file:

Code: Select all

---
Debugger:
  DebugThreshold: debug
  TestMode: '0'
Description: ''
FrameworkVersion: 6.5.14
Provider:
  Transport:
    Type: ''
RemoteSystem: ''
Requester:
  Invoker:
    GetItems:
      Description: ''
      GetAllArticleAttachments: ~
      Type: Generic::Tunnel
  Transport:
    Config:
      AdditionalHeaders: ~
      ContentType: JSON
      DefaultCommand: GET
      Host: http://localhost:3000
      InvokerControllerMapping:
        GetItems:
          Command: GET
          Controller: /api/items
      SSLNoHostnameVerification: '0'
      Timeout: '120'
    Type: HTTP::REST
The attached image shows the external REST API that I want to use

Any help would be greatly appreciated

Thanks!

[EDIT]

It's not issue, back then I tried call the requester via postman, not via event
You do not have the required permissions to view the files attached to this post.
hkais
Znuny wizard
Posts: 357
Joined: 16 Apr 2016, 08:55
Znuny Version: see in post
Real Name: Hans
Contact:

Re: webservice requester error "Can't locate Kernel/GenericInterface/Transport/.pm"

Post by hkais »

If you use google "Znuny REST api", you will find a tutorial explaining how to setup the REST api properly.
If not feel free to ask, I will try to help you here.
Elected 2022-06 as an IT Governance Portal Expert. The portal for Znuny, OTRS and OTOBO power users and admins
Specialized for AI-based Solutions with Znuny

IT Governance Portal
Post Reply