How to populate a Table Widget in Bonita 7.4.2 from a REST API Call?

I am a newbie at using Bonita for the automation of a customer onboarding process and wish to display the customers from REST API call which is powered by MySQL Server.

Currently, my approach is to bind the content of the table to a variable that contains JavaScript code to make the REST API call and return the response.

When I try to execute the form with this approach, it gives me the following error:
Uncaught DOMException: Failed to construct 'WebSocket': The URL 'wsockets/254/4v399h8_/websocket' is invalid.