The Movie Database Support Forum

hi . I want to develop my app on localhost using php language and I using guzzle package . problem is when i send my request

$client = new Client();
$client->request('GET', $moviesListUrl);

There is no problem with the url, and if I open it directly in the browser, everything is fine. But if I run the code, it will show up

Fatal error: Uncaught GuzzleHttp\Exception\ConnectException: cURL error 7: Failed to connect to api.themoviedb.org port 443: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html) in E:\Local\Wamp\Projects\MobMovie\MobMovie\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php:185 Stack trace: #0 E:\Local\Wamp\Projects\MobMovie\MobMovie\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(149): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array) #1 E:\Local\Wamp\Projects\MobMovie\MobMovie\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php(102): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) #2 E:\Local\Wamp\Projects\MobMovie\MobMovie\vendor\guzzlehttp\guzzle\src\Handler\CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory)) in E:\Local\Wamp\Projects\MobMovie\MobMovie\vendor\guzzlehttp\guzzle\src\Handler\CurlFactory.php on line 185

it is possible to get results from localhost ? can you help me ?

3 Antworten (Seite 1 von 1)

Jump to last post

Hi @zoban,

Yes, it is possible to dev from localhost. With regards to the cURL error, are you able to enable some type of more verbose logging? Something that can show you what cURL is having an issue with more specifically? A connection refused error is telling me cURL can't connect to port 443 so another though could be that cURL isn't setup to connect on that port.

Have you tried not using https and seeing if connecting to port 80 is ok?

I am also getting this error in laravel. I am a developer this error occur 7 time out of 10 request. sometime working some not!

@onlinewatchit said:

I am also getting this error in laravel. I am a developer this error occur 7 time out of 10 request. sometime working some not!

Please post the information requested by administrator Travis Bell here.
They are in the comment before yours.

Es fehlt ein Film oder eine Serie? Logge dich ein zum Ergänzen.

Allgemein

s Fokus auf Suchfeld
p Profil öffnen
esc Fenster schließen
? Tastenkürzel anzeigen

Videos

b Zurück
e Bearbeiten

Staffeln

Nächste Staffel
Vorherige Staffel

Episoden

Nächste Episode
Vorherige Episode

Bilder

a Poster oder Hintergrundbild hinzufügen

Editieren

t Sprachauswahl öffnen
ctrl+ s Speichern

Diskussionen

n Neue Diskussion erstellen
w Beobachten an / aus
p Diskussion öffentlich / privat
c Diskussion öffnen / schließen
a Diskussionsverlauf anzeigen
r Auf Diskussion antworten
l Letzte Antwort anzeigen
ctrl+ enter Senden
Nächste Seite
Vorherige Seite

Einstellungen

Diesen Eintrag bewerten oder zu einer Liste hinzufügen?

Anmelden