Skip to content

Commit c4d7f6e

Browse files
feat(datakit): Call node support for running after proxying (#4100)
* support for using call nodes after proxying * adjust faq after testing * Apply suggestions from code review Co-authored-by: Diana <[email protected]> --------- Co-authored-by: Diana <[email protected]>
1 parent cabf872 commit c4d7f6e

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

app/_kong_plugins/datakit/index.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,10 @@ For a complete example, see:
633633

634634
### Call node
635635

636-
Send an HTTP request and retrieve the response.
636+
Send an HTTP request and retrieve the response.
637+
638+
{% new_in 3.13 %} The `call` node can be executed before or after proxying a request.
639+
For versions of {{site.base_gateway}} 3.12 or earlier, call nodes could only be executed before proxying; see [limitations](#limitations) for details.
637640

638641
See the [configuration reference](/plugins/datakit/reference/#schema--config-nodes) and select `call` from the node object dropdown to see all node attributes.
639642

@@ -757,9 +760,9 @@ See [Third-party auth](/plugins/datakit/examples/authenticate-third-party/) for
757760

758761
#### Limitations
759762

760-
Due to platform limitations, the `call` node can't be executed after proxying a
763+
In {{site.base_gateway}} 3.12 and earlier, the `call` node couldn't be executed after proxying a
761764
request, so attempting to configure the node using outputs from the upstream service
762-
response will yield an error:
765+
response would yield an error:
763766

764767
```yaml
765768
- name: CALL

app/gateway/datakit-flow-editor.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,18 @@ related_resources:
2323
url: /gateway/datakit/
2424
- text: Datakit plugin reference
2525
url: /plugins/datakit/
26+
27+
faqs:
28+
- q: I've configured a call node in the response section, why is it throwing an error?
29+
a: |
30+
In {{site.base_gateway}} 3.12 and earlier, the `call` node couldn't be executed after proxying a request, and you would see the following error:
31+
32+
```
33+
invalid dependency (node #1 (CALL) -> node service_response): circular dependency
34+
```
35+
36+
This means that your data planes are running {{site.base_gateway}} 3.12 or earlier.
37+
Upgrade your data planes to 3.13 to use this functionality.
2638
---
2739

2840
In addition to the standard [{{site.base_gateway}} configuration tools](/tools/),

0 commit comments

Comments
 (0)