There must be an error in your chaincode due to which your chaincode is getting crashed. A similar case has happened to me. Usually, your transaction will timeout if your chaincode crashed.
To debug, list all docker containers by:
copy the id of your chaincode container and execute this command:
docker attach <container-id> -f
execute the invoke/query command again. If there is a crash, logs will be printed where you executed docker attach