Hi, Glenn! I mean passing a long string variable as URL argument. Firefox doesn't give me any error (just doesn't do anything!), but today I tested this in Chrome and I got 414 (Request-URI Too Large)
error. Also, I added this functions to my index.html
so you can easily see what's going on when you load the page and reproduce the error:
function test_short() {
$.getJSON($SCRIPT_ROOT + '/_test', {
a: short
}, function(data) {
var msg = data.result;
console.log('test_short');
});
return false;
}
function test_long() {
$.getJSON($SCRIPT_ROOT + '/_test', {
a: long
}, function(data) {
var msg = data.result;
console.log('test_long');
});
return false;
}
test_short();
test_long();
short
and long
variables are defined above in my code (they are a little long, so I doesn't posted them here). In addition, in my Python code you can see this:
@app.route('/_test')
def test():
return jsonify(result='/_test')
At my Web console, only the test_short
message is printed out.