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.

Server side no matches error message

See original GitHub issue

Can I define a custom key to show server side error messages on table instead the static “no matching records found”.

Example error response 1

{
 "status_code" : 408,
 "error_message" : "Request time out"
}

Example error response 2

{
 "status_code" : 404,
 "error_message" : "No data found."
 "help_link" : "Learn more about this error - https://domain.com/api/docs?search=404"
}

Example error response 3

{
 "status_code" : 500,
 "error_message" : "The API is temporary down, try refresh in few minutes"
}

If not already? Can I request a feature to add data-error-key similar to data-data-field which can be used to display the error automatically and fallback to no matching records if no key defined or empty response.

<table id="table" class="table-borderless" 
 data-url="https://domain.com/v1/api"
 data-toggle="table"
 data-method="get"
 data-side-pagination="server"
 data-data-field="result"
 data-error-key="error_message"></table>

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
UtechtDustincommented, Feb 1, 2020
0reactions
wenzhixincommented, Feb 2, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: Text content does not match server-rendered HTML
These error messages all essentially say the same thing: The HTML from the server does not match what is rendered by your app....
Read more >
Server-side "No matching records found" — DataTables forums
I'm stuck on how to get the data to display in dataTables. From everything I can see I am getting a good response...
Read more >
Display Server Side Validation Errors with Angular - | juri.dev
There might be situations where you cannot find any matching form field, simply because the property is not shown, the field might be...
Read more >
no matching mac found Error while doing the SSH
It is telling you ssh can't agree a MAC (message authentication code) with the server you are connecting to. if you add -vvv...
Read more >
Unable to start Apache on a Plesk server: No matches for the ...
Note: The name of the ModSecurity rule-set in the error message may vary. on CentOS/RHEL-based distributions. # httpd -t httpd: Syntax error on...
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