Skip to content

MachineLearningService Workspaces_CreateOrUpdate returns 202 but the responses field only defines status code 200 and 201 as succeed #8029

Open
@ArcturusZhang

Description

@ArcturusZhang

The responds now reads:

        "responses": {
          "200": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/Workspace"
            }
          },
          "201": {
            "description": "The request was successful; the request was well-formed and received properly.",
            "schema": {
              "$ref": "#/definitions/Workspace"
            }
          },
          "default": {
            "description": "Error response describing why the operation failed",
            "schema": {
              "$ref": "#/definitions/MachineLearningServiceError"
            }
          }
        }
      },

But the call of rest api returns status code 202 as following:
Screen shot of the rest api response
This will be handled as failure in generated SDK since this status code is not among the expected ones. For instance, in go SDK:

machinelearningservices.WorkspacesClient#CreateOrUpdate: Failure responding to request: StatusCode=202 -- Original Error: autorest/azure: error response cannot be parsed: "" error: EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    ADOIssue is documented on MSFT ADO for internal trackingML-Workspace ManagementAreaPathMachine LearningMgmtThis issue is related to a management-plane library.Service AttentionWorkflow: This issue is responsible by Azure service team.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions