#Taking too long to response json
32 messages · Page 1 of 1 (latest)
would you mind to share the relevant code?
installing laravel/telescope might helps in debugging as well.
This is the function
can't see anything wrong here.
are you calling the both requests after $data is cached?
yes
I see on the telescope all the methods send after the first request is OPTIONS, the first one is GET
so this is a web(web.php) route?
I already configured cors, but sometimes it doesnt work
the time taken for both are the same?
the first GET request taking only a few ms but the rest are taking at least 1 min
wdym by first GET request?
my app sending 3 GET requests on the homepage, and only got 1 response in ms/s and the rest are taking minutes also the request method is OPTIONS not GET
if you check the network tab, the OPTIONS requests were succeeded or failed?
they run successfully, but took a long time
and here are one of the response, the request is red because i return bad request status code. but the response is weird
its seems like the codes took more than 60 seconds(maximum php execution time) to process
Probably just check the request details in telescope
There are no problems on telescope, it returns 204 for the OPTIONS. and 200 on the GET request, also the queries on the GET requests runs under 3 ms
Thanks for your reply tho, appreciate it