krakend / krakend-ce

KrakenD Community Edition: High-performance, stateless, declarative, API Gateway written in Go.
https://www.krakend.io
Apache License 2.0
1.98k stars 452 forks source link

"Too many output params!" in sequential setting with GET request. #121

Closed umutcakil closed 4 years ago

umutcakil commented 5 years ago

Hİ,

I can't running the example on the Krakend site, what's wrong about it? Could you please help me? This is my config.

      "extra_config": {
        "github.com/devopsfaith/krakend/proxy": {
          "sequential": true
        }
      },
      "endpoint": "/hotels",
      "method":"GET",
      "backend": [
        {
          "host": [
            "http://host:8080"
          ],
          "url_pattern": "/hotels/25",
           "whitelist": [ "destinationId" ]
        },
        {
          "host": [
            "http://host:8080"
          ],
          "url_pattern": "/destinations/{resp0_destinationId}"
        }
      ]
    }

Output :

ERROR parsing the configuration file: Too many output params! input: map[resp0_destinationId:<nil>], output: [resp0_destinationId]
alombarte commented 5 years ago

Hi @umutcakil

I have uploaded a working example in the KrakenD Playground. Please see it working live: https://github.com/devopsfaith/krakend-playground/blob/master/krakend/krakend.json#L67-L83

github-actions[bot] commented 2 years ago

This issue was marked as resolved a long time ago and now has been automatically locked as there has not been any recent activity after it. You can still open a new issue and reference this link.