ValidationException: The provided key element does not match the schema

I created a table 'user_info' in dynamoDB with one primary hash key 'user_id'(String), no range key. Then I created 2 aws lambda function to insert and query the items. I can insert items into the ...