The exception is due to the server hanging up on you. I don't see any
detailed logging here; you LOG_STDOUT is a boolean, so you should be
setting it to LOG_STDOUT=1. It would also be good to see your code.
You are using the bodyDg to upload the file, right?
Cody