I implemented machine learning algorithms through sagemaker.
I installed the SDK for .net and tried to execute the code below.
Uri sagemakerEndPointURI = new Uri("https://runtime.sagemaker.us-east-2.amazonaws.com/endpoints/MyEndpointName/invocations"); Amazon.SageMakerRuntime.Model.InvokeEndpointRequest request = new Amazon.SageMakerRuntime.Model.InvokeEndpointRequest(); request.EndpointName = "MyEndpointName"; AmazonSageMakerRuntimeClient aawsClient = new AmazonSageMakerRuntimeClient(myAwsAccessKey,myAwsSecreteKey); Amazon.SageMakerRuntime.Model.InvokeEndpointResponse resposnse= aawsClient.InvokeEndpoint(request);
By doing this, I get a 1 validation error detected: Value at 'body' failed to satisfy constraint: Member must not be null as " 1 validation error detected: Value at 'body' failed to satisfy constraint: Member must not be null "
Can someone explain to me how and what additional input I need to pass to call this API?
EDIT
Then I tried, specifying the body parameter, which contains the MemoryStream written by the file ".gz" or ".pkl", and it gives me the error: "Error canceling the cancellation of the response from AWS, the length of the HTTP content exceeded 5246976 bytes."
EDIT 1/23/2018
Next I came up with the error message as
ERROR - model server - the TypeError object does not have the 'message' attribute
thanks
source share