Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RuntimeException Could not load file url of the website but works on localserver #70

Open
RohitM-IN opened this issue May 24, 2021 · 4 comments

Comments

@RohitM-IN
Copy link

RohitM-IN commented May 24, 2021

https://flareapp.io/share/87nB6OD7

i am including the stacktrace because i dont understand why its not working in online server but its working in local host

php version (server): 8.0.3
php info link : https://www.crada.ga/test

laravel version : Laravel Framework 8.40.0

is there any extensions that are off or disabled that are required by the app ?

what i tested :

$url = "https://www.worldometers.info/coronavirus/";

$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);

//for debug only!
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);

$resp = curl_exec($curl);
curl_close($curl);
dd($resp);  // shows the website :) 
so no curl issue !
@voku
Copy link
Owner

voku commented Jan 27, 2022

Sorry for not getting back to you sooner.

Is this issue related to this library? Or is this network, curl, ... problem?

@parastooam
Copy link

Same Problem

@namsir
Copy link

namsir commented Apr 22, 2022

same thing here too...works on local but not on production.

@voku
Copy link
Owner

voku commented Apr 22, 2022

same thing here too...works on local but not on production.

Some code example would be helpful.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants