Skip to content

レスポンスのフィールドを空にしたときにgo クライアントコードがエラーになる #383

@r-sakamoto-tg

Description

@r-sakamoto-tg

レスポンスのフィールドを空にしたとき、
自動生成されるgo のクライアントコードで、
空のレスポンスボディをデコードしてEOFエラーが出ているようです。

if err := json.NewDecoder(resp.Body).Decode(respPayload); err != nil {
	return nil, err
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions