Integrating kaltura into canvas getting Ajax error 500

Configured Kaltura and can upload and play videos, but when i integrate in Canvas from Plugins using the UI Conf ID etc. i got the icon in Rich content and HTML editor, but when i click on the icon it is saying Loading and getting error " The last request didnt work out" and when i click on the details it says “AJax Error 500”, not connecting to Kaltura and cant find the solution.
Any help on this please?