You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
By modifying the core.http action metadata YAML file and adding type: string to the method parameter, the CLI works as expected in v2.4.
---
description: Action that performs an http request.
enabled: true
entry_point: ''
name: http
parameters:
auth:
description: Auth string to be used. This can be like 'x-auth-token=XYZ'.
type: string
body:
description: Body to send with the request
type: string
file_content:
description: Magic attribute which is automatically populated when file_path is
specified
type: string
file_content_type:
description: Optional content type for the uploaded file
type: string
file_name:
description: Magic attribute which is automatically populated when file_path is
specified
type: string
file_path:
description: Path to the file to upload
type: string
headers:
description: 'HTTP headers to use with the request.'
type: object
method:
description: HTTP method to use.
type: string # Add this line to get core.http working with a method='xxx' on the CLI
enum:
- HEAD
- GET
- POST
- PUT
- DELETE
params:
description: Query params to be used with the HTTP request.
type: object
timeout:
default: 60
description: Timeout for the HTTP request.
type: number
runner_type: "http-request"
The text was updated successfully, but these errors were encountered:
Problem
This problem only exists on v2.4
Workaround
By modifying the
core.http
action metadata YAML file and addingtype: string
to themethod
parameter, the CLI works as expected in v2.4.The text was updated successfully, but these errors were encountered: