question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uncaught TypeError: Cannot read property 'status' of undefined

See original GitHub issue

when using bootstrap-table 4 I get the above error message but not with version 3. Function: function get(params) { var obj = { action: 'get', offset: params.data.offset, limit: params.data.limit }; callService($.param(obj), function(rs) { params.success({rows:rs.data, total:rs.total}); $table.bootstrapTable('hideColumn', 'jobId'); }); } the callService is an Ajax request. function callService(data, cb) { var ajaxCall = $.ajax({ cache: false, type: 'POST', data: data, dataType: 'json', }); ajaxCall.done(function(data) { cb(data); }); ajaxCall.fail(function(jqXHR, textStatus, errorThrown) { console.log(textStatus + ': ' + errorThrown); }); } data returned: Screen Shot 2019-11-22 at 9 52 28 PM

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
wenzhixincommented, Nov 26, 2019

It’s no need to update the source, a workaround: https://live.bootstrap-table.com/code/wenzhixin/1246

params.success(res, null, {})
0reactions
RBabbcommented, Nov 25, 2019

Just an update, develop doesn’t work either. Data never shows. The issue is textStatus and jqXHR are always undefined. Comment it out and it works as expected. _this10.trigger(‘load-success’, res);//, jqXHR.status, jqXHR

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: Cannot read property 'status' of undefined in reactjs
The reason why you cant read data.status is that data is undefined. To get the data and the status, you need to return...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >
TypeError: Cannot read property 'status' of undefined
I have performed the following steps within my Google Cloud Shell: npm i @codahq/packs-sdk -g; coda init; Copied the pack.ts content from ...
Read more >
TypeError: Cannot read property 'status' of undefined on Get
I'm getting the weird error and I don't know why. I'm just doing a get request, I'm doing another one in the same...
Read more >
Cannot read property 'status' of undefined · Issue #352 - GitHub
When sending test request with expected status code and getting response with invalid content type (eg. header says application/json, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found