When an exception is thrown in the related ApexController of the Lightning component, we always get "Internal Server Error" error message. So I can suggest surrounding your logic in Apex controller with try {} catch() and verify there are no errors in the server-side logic.
Also, refer below link which explains in detail about this error.
When an exception is thrown in the related ApexController of the Lightning component, we always get "Internal Server Error" error message. So I can suggest surrounding your logic in Apex controller with try {} catch() and verify there are no errors in the server-side logic.
Also, refer below link which explains in detail about this error.
http://blog.terrasky.com/blog/how-to-handle-apex-errors-for-lightning-component-implementations
Hope this helps you!
If this helps you, please mark it as solved.
Thanks and Regards
Sandhya