SSLError: SSL validation failed for https:/s3/endpoints/invocations EOF occurred in violation of protocol (_ssl.c:2396) in sagemaker

0

I trained a deep neural network using sagemaker and deployed the endpoint successfully. But, when trying to get the predictions on test data, i am getting "SSLError: SSL validation failed for https://runtime.s3.amazonaws.com/endpoints/[endpointName]/invocations EOF occurred in violation of protocol (_ssl.c:2396)"

i am able to get predictions up to 10 records, afterwards i am getting this error.please help me.

from sagemaker.tensorflow import TensorFlowPredictor
predictor = TensorFlowPredictor(endpoint_name)

# invoke model endpoint to make inference
pred = predictor.predict(input_vals)
    
# store predictions
y_pred.extend([i[0] for i in pred['predictions']])
1 Risposta
0

Do you have an S3 interface endpoint in your VPC? Traffic to "s3.amazonaws.com" will be requested through the endpoint, but it will reply with the region-specific URL e.g: https://my-bucket.s3.us-west-2.amazonaws.com

The certificate of the server(S3) will be issued to X.s3.amazonaws.com, but the URL is different, since it has the region name included.

This will cause the client to not trust on the site, throwing that error. You can either: try to ignore the SSL check on your system modify the URL with the region-specific one replace the S3 interface endpoint by S3 Gateway endpoint

con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande