X-Pack Graph plugin error

Hi,

I have installed X-pack plugin. The graph plugin status shows green but while performing any search I get the following error while I am using the graph plugin:
"Error 500 Internal Server Error: An internal server error occurred"

Please help!

Thanks

What version of Elasticsearch, Kibana?
Where do you run the search exactly? What do you see in the logs?

I am using Kibana and Elastic search version 5.1.1
I am running the search in the graph section, after adding the index and the fields.