boolxy / trendyol

Trendyol API Client Library for PHP
MIT License
35 stars 12 forks source link

Type: GuzzleHttp\Exception\ConnectException #7

Closed copernix closed 3 years ago

copernix commented 3 years ago

PHP Version 7.4.11

An uncaught Exception was encountered Type: GuzzleHttp\Exception\ConnectException

Message: cURL error 6: Could not resolve host: product-categories (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) Filename: /home/testhost/app1/application/trendyol/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php Line Number: 200

Hem local denemelerimde hemde sunucu üzerinden denemelerimde böyle bir hata alıyorum. Teşekkürler...

sezaiozarslan commented 3 years ago

Sorun tespiti yapabilmek adına Trendyol'dan test kullanıcısı talebinde bulundum. Gelişmelere göre tekrar dönüş yapacağım. Geri bildiriminiz için teşekkürler.

copernix commented 3 years ago

hocam sorun yok hata bende... Kod içerisindede endpoint'i set eden bir fonksiyon görmediğim için trendyolun endpoint'i default olarak tanımlı olduğunu düşünmüştüm. ancak endpointi getenv ile çağırdığını geçte olsa farkettim. environment file henüz oluşturmadığım için putenv ile set edince tabi sorun kalmadı.

putenv("TRENDYOL_BASE_URI=https://api.trendyol.com/sapigw/");