I am unable to connect to the EC2 instance for 4.2.2. The error I’m getting is
Error: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response'))
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
Cell In[36], line 6
4 # Performing API call and getting the result
5 embedding_response = get_text_embeddings(endpoint_url=ENDPOINT_URL, text=text)
----> 6 embeddings = embedding_response['body']
8 print(f"Text sent to the API: {text}")
9 print(f"Length of the embedding from the response: {len(embeddings)}")
TypeError: 'NoneType' object is not subscriptable
I’ve tried rebooting the instance multiple times, as suggested in the notebook, but I’m still getting this error.
I also tried stopping and then restarting the instance. Same problem.
UPDATE: I was able to figure this out. The notebook loaded with some fields already filled out. At the beginning of the lab, there were some instructions to replace placeholder values with the RDS and EC2 endpoints. However, they were already filled out so I skipped that step. Can someone please look into why the notebook loaded with those values already filled out incorrectly?