You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "pierrejeambrun (via GitHub)" <gi...@apache.org> on 2023/02/11 12:50:24 UTC

[GitHub] [airflow-client-go] pierrejeambrun commented on issue #38: Request.Execute() return `undefined response type` error

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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org