Closed abides closed 3 years ago
What is the version of restler you are using? We tried with Restler 5, it works fine
"restler/framework": "5.0.8"
Have php 7.4.18 also have fatal error handler and error_reporting(E_ALL); on development mode to see all kind of problematic stuff. Probably this trigger notice or something?
Edit: yes undefined index is php notice. Should i disable notices or this should be fixed?
Can you try changing Line 357 of Defaults.php to the following
if (isset(Defaults::$validation[$name]) && is_array(Defaults::$validation[$name])) {
And then see if the error disappears
I could not reproduce the error so, need to fix it on yours. I tried with the following code throttle.zip
Error (notice) dissapear with that. I'm against to make changes on the vendor code to fix something since its come back with first update. Can you change the master too if this change does not affect anything else?
Thank you, best regards.
Done!
Hello,
Its actually working and delay request for 200ms but gives an error;
{"error":{"code":500,"errno":8,"message":"Undefined index: throttle","file":"\/var\/www\/tarama\/vendor\/restler\/framework\/Defaults.php","line":357}}
Does it require something else?