API: Retrieving records from table

This seems pretty simple. I'm just trying to retrieve records from a table view after clicking the submit button in a pop up modal form. When the code runs it doesn't return any results when I know that there are records in the table view. It just returns the standard object response with not records. Here is my code and nothing seems out of place to me. Any help would be appreciated.

/* Get all records from the task table */
$(document).on('knack-view-render.view_256', function(event, view) {
$("#view_256 .kn-button").on("click", function() {
url: 'https://api.knack.com/v1/pages/scene_22/views/view_125/records',
type: 'GET',
headers: {
success: function(data) {
error: function (error) {
console.log('Error ${error}');

Should there be a space after that first view_256?