MicrosoftDocs / azure-docs

Open source documentation of Microsoft Azure
https://docs.microsoft.com/azure
Creative Commons Attribution 4.0 International
10.1k stars 21.15k forks source link

ManagedOnlineEndpoint has no attributes "invoke" or "as_dict" #98968

Open jpgdn opened 1 year ago

jpgdn commented 1 year ago

The code

endpoint = ml_client.online_endpoints.get(name=endpoint_name, local=True) request_file_path = "../model-1/sample-request.json" endpoint.invoke(endpoint_name, request_file_path, local=True)

generates this error: AttributeError: 'ManagedOnlineEndpoint' object has no attribute 'invoke'

Similarly, the code

endpoint = ml_client.online_endpoints.get(endpoint_name, local=True) endpoint.as_dict()

generates this error: AttributeError: 'ManagedOnlineEndpoint' object has no attribute 'as_dict'


Document Details

Do not edit this section. It is required for learn.microsoft.com ➟ GitHub issue linking.

SaibabaBalapur-MSFT commented 1 year ago

@jpgdn Thanks for your feedback! We will investigate and update as appropriate.

Naveenommi-MSFT commented 1 year ago

@jpgdn

Thanks for your feedback! I've assigned this issue to the author who will investigate and update as appropriate.

@ssalgadodev Please review this issue.

ssalgadodev commented 1 year ago

@msakande

ssalgadodev commented 1 year ago

reassign:@msakande