Code 500 is a general internal error. I’m not familiar with Bluemix configuration here unfortunately. What Twitter API endpoint are you trying to call, and do you have your API keys set up correctly?
You may have more success asking for help in a Bluemix-specific forum as the IBM team may have more insight on this issue.