SAP Knowledge Base Article - Preview

3193237 - Trailing slash in the Base Path parameter of OpenAPI Client operator is ignored - SAP Data Intelligence

Symptom

  • OpenAPI Client operator is used in a graph

  • Its Base Path configuration parameter is set with a trailing slash



  • Running the graph to make a POST request of the OpenAPI throws an HTTP 405 error which can be seen in the diagnostic information (vflow pod log):


    DEBUG|{ID: , Method: POST, Path: , Produces: [application/json], Consumes: [] {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="openapiclient1"}|vflow-graph-runtime|com.sap.openapi.client|93|1|client.go(246)
    DEBUG|No authentication configured {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="openapiclient1"}|vflow-graph-runtime|com.sap.openapi.client|93|1|client.go(371)
    DEBUG|write request ... {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="openapiclient1"}|vflow-graph-runtime|com.sap.openapi.client|93|WriteToRequest|client.go(980)
    DEBUG|write request with body {MY_BODY} ... {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="openapiclient1"}|vflow-graph-runtime|com.sap.openapi.client|93|WriteToRequest|client.go(1095)
    POST /jwt-token HTTP/1.1
    Host: MY_HOST
    User-Agent: Go-http-client/1.1
    Content-Length: 35
    Accept: application/json
    Content-Type: application/json
    Accept-Encoding: gzip

    {MY_BODY}
    DEBUG|Event received: topic=92b51b5a4be04806b39aa1a09ad9b2d0 event={action: process/running, message: Process is running, uuid: 3f53528d9c3646c7911a8b411eb2db0f, id: [92b51b5a4be04806b39aa1a09ad9b2d0 default wiretap1], type: process, source: process, timestamp: 2022-04-13 12:28:11.63713654 +0000 UTC, details: } {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default"}|vflow-graph-runtime|dist|67|func1|listener.go(47)
    DEBUG|Startup finished {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default"}|vflow-graph-runtime|flow|88|layeredStart|graph_machine.go(98)
    DEBUG|state transition startLevel: 3 stopLevel 0 {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default"}|vflow-graph-runtime|flow|88|executeMachine|graph_machine.go(49)
    DEBUG|Entering Loop {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="wiretap1"}|vflow-graph-runtime|com.sap.system.wiretap|101|Loop|simple.go(796)
    DEBUG|starting action in for ports [in] ... {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="wiretap1"}|vflow-graph-runtime|com.sap.system.wiretap|101|runActions|simple.go(851)
    DEBUG|wiring port in with action in ... {graph_id="92b51b5a4be04806b39aa1a09ad9b2d0",group="default",operator_id="wiretap1"}|vflow-graph-runtime|com.sap.system.wiretap|102|runPortAction|simple.go(962)
    HTTP/1.1 405 Method Not Allowed
    Content-Length: 40
    Allow: POST, OPTIONS
    Connection: keep-alive
    Content-Type: application/json
    Date: Wed, 13 Apr 2022 12:28:12 GMT
    Server: nginx/1.21.6
    Vary: Accept, Origin, Cookie
    X-Frame-Options: SAMEORIGIN

    {"detail":"Method \"GET\" not allowed."}


Read more...

Environment

  • SAP Data Intelligence 3.x - On Premise Edition
  • SAP Data Intelligence - Cloud Edition

Product

SAP Data Intelligence 3.0 ; SAP Data Intelligence, cloud edition 1.0

Keywords

KBA , CA-DI , Data Intelligence , Problem

About this page

This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).

Search for additional results

Visit SAP Support Portal's SAP Notes and KBA Search.