pierrejeambrun commented on issue #38: URL: https://github.com/apache/airflow-client-go/issues/38#issuecomment-1426759463
Hello @zbysir, Thank you for reporting this, indeed it looks like the `problem+json` content type is not handled by generated clients. We could also add a post generation step to update the accepted content type for the client. I just opened a [PR](https://github.com/apache/airflow/pull/29476) for that. In the mean time, the `nethttp.Response` returned object will have everything you need from that failed call, maybe this is the reason this issue wasn't addressed yet. ``` run, response, error := cli.DAGRunApi.GetDagRun(ctx, "fake", "fake_run").Execute() ``` > Indeed, in case of an error you need to use 'response' and disregard 'error' which will no be relevant (undefined response type). -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
