Server side no matches error message
See original GitHub issueCan 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:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@vickyrathee Yes its possible using the updateFormatText method. Example: https://live.bootstrap-table.com/code/UtechtDustin/1631
You can use the
jqXHR
parameter. https://live.bootstrap-table.com/code/wenzhixin/1640