Cloud Function Http method to trigger a Composer DAG

I was able to trigger a composer DAG using the cloud storage trigger method using the code given in this https://cloud.google.com/composer/docs/composer-2/triggering-with-gcf. When I tried to use the same code to trigger composer dag using http method i'm getting error saying json serialization error. I tried all the ways possible and i;m unable to do. I'm unable to find a document which uses http method cloud function to trigger composer dag. Is it possible and if so can you provide some source or documentation which will be helpful ( For Composer 2 environment ). I was able to do it for composer 1

1 REPLY 1

Did you manage to solve this issue?