-
Notifications
You must be signed in to change notification settings - Fork 193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Issue with HttpOperator Data Handling in DAGFactory #370
Comments
I used standard code for generate dag
|
Hi @a-chumagin, Thank you for reporting this issue—it definitely seems valid. While we work on prioritizing this issue, I wanted to check if you might be interested in contributing a fix. The fix would likely involve handling this specific case of serializing the data in a manner similar to this example. If you’re open to contributing, you can set up your local development environment by following the contributing guide. Please don’t hesitate to reach out if you need any additional support! |
Hi @pankajkoti
lemme look at links. |
HI @a-chumagin, as mentioned by @pankajkoti , we'd love your contribution to fixing this behaviour. It could undoubtedly help other users. Did the patch work? |
Hi @tatiana I'm going to start on this week. |
@pankajkoti hello! do you have a Slack for communication? I faced a several issues with setup env and test and implementation. Need to chat with you. if you have a time. |
hi @a-chumagin did you already try taking the steps mentioned in the contributing docs https://astronomer.github.io/dag-factory/latest/contributing/howto/#set-up-a-local-development-environment If you're still facing issues would be nice to know as we can then enhance the documentation. Are you already part of the "Apache Airflow Community" Slack? If not, could you sign up there https://apache-airflow-slack.herokuapp.com/ and then you can find me there on Slack "Pankaj Koti". Looking forward to hearing from you :) |
@pankajkoti @tatiana JFYI: I was able to fix it. Not tested fully but smoke test passed need more time to prepare PR |
DAG Factory version
0.22.0
airflow version
2.10.2
Python version
3.12
Deployment
Docker-Compose
Deployment details
No response
What happened?
I am experiencing an issue when using dag-factory to configure HttpOperator tasks. The request body is incorrectly serialized, and the content type is being treated as form data instead of JSON. This issue occurs only when the task is created via DAGFactory, but works fine when using raw HttpOperator code.
Relevant log output
How to reproduce
Expected Behavior:
The request body should be serialized as valid JSON and sent with the Content-Type: application/json header.
Actual Behavior:
The body is sent as form data (e.g., data_source=postgres), not as JSON. This causes the request to fail.
Example of YAML
The headers send correct . I use echo service for handle request
I tried different ways to present data
When I use raw HttpOperator without DagFactory the issues does not occur
Anything else :)?
No response
Are you willing to submit PR?
Contact Details
No response
The text was updated successfully, but these errors were encountered: