apache / apache/dolphinscheduler-sdk-python

Http yaml error

Open
#168 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71
Forks
26
PR merge metrics
No merged PRs in 30d

Description

# yaml file demo for http
workflow:
name: "Http"

# Define the tasks within the workflow
tasks:
- name: task
task_type: Http
url: https://httpbin.org/get
http_method: GET
http_params:
- prop: a
httpParametersType: PARAMETER
value: "1"
- prop: b
httpParametersType: PARAMETER
value: "2"
- prop: Content-Type
httpParametersType: header
value: test
http_check_condition: STATUS_CODE_CUSTOM
condition: "404"
type: Http
task_params: {}

raise PyDSParamException(
"Parameter `params` must be a dict, but get %s", type(params)
)
pydolphinscheduler.exceptions.PyDSParamException: ('Parameter `params` must be a dict, but get %s', )

Contributor guide

Open the contributing guide

Research direction

Reproduce the failure using the YAML workflow shown in the issue and trace how its HTTP parameters are passed to the SDK. Confirm the expected parameter shape and identify what must change so this workflow no longer raises PyDSParamException.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.