Anyway, this message should probably be optional or configurable -- maybe submit a github issue requesting that.
<script>
$(function() {
$(document).off('ajaxError');
});
</script>
<script>
ajax_error_500 = undefined;
</script>
When I go to http://127.0.0.1:8000/admin/default/errors/app there's an error log related to the message. When I resolve
the error the message no longer appears.
Does this imply that web2py constantly scans my application for errors, and detects them before I run any code.
db.define_table("mytable", Field("message"))
"An error occured, please reload the page"
Ticket ID
127.0.0.1.2016-08-22.19-27-17.e41bd317-6e9a-4bb8-a12f-3f46b46ed767
<type 'exceptions.SyntaxError'> invalid table/column name "message" is a "ALL" reserved SQL/NOSQL keyword
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the Google Groups "web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to web2py+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi Anthony!No, the error is within the app.Please try it:(1) Create a new app(2) Add this line to db.py:db.define_table("mytable", Field("message"))(3) Wait some seconds. The message"An error occured, please reload the page"appears.(4) The error message in the error file is:Ticket ID
127.0.0.1.2016-08-22.19-27-17.e41bd317-6e9a-4bb8-a12f-3f46b46ed767
<type 'exceptions.SyntaxError'> invalid table/column name "message" is a "ALL" reserved SQL/NOSQL keyword
(5) And now I try to correct the error:I reload the page. But I cannot edit the page because the message "An error occured, please reload the page" appears again. And I reload the page.... and so on.An additional notice:
- I have tried it on the local machine. It seems, that the error message appears late - therefore it was possible to correct the file db.py.
- On a remote machine the error message appears very rapid (within 1 second or so) and I could not correct the file db.py.
Regards. Martin
Anthony,maybe I did not find the right words to describe the situation:.
- While the error message is visible, I can edit the page.
- The "save"-button is not disabled, but it does nothing. No changes are stored.
- It is clear, that I have to dismiss the message.
- Again like 1 and 2: I can edit the page, but I cannot store it.
- Therefore I have to reload the page - without a reload it is not possible to save the page again,
- And now the error message returns so fast, that it is not possible to edit and store the corrected page. We start again with step 1.