freelance iş ilanları

Invalid request options. Hatası

2 Mesajlar 783 Okunma
lstbozum
smsonayhizmeti

onurbayicom onurbayicom Üyeliği Durdurulmuş Banlı Kullanıcı
  • Üyelik 23.10.2019
  • Yaş/Cinsiyet 53 / E
  • Meslek sosyal medya uzmanı
  • Konum Adana
  • Ad Soyad C** T**
  • Mesajlar 27
  • Beğeniler 1 / 3
  • Ticaret 1, (%100)
Merhaba arkadaşlar instagram apiden fotograf yüklerken bu hatayı alıyorum sorun nedir acaba
 

 

wmaraci
reklam

kzlsn kzlsn Üyeliği Durdurulmuş Banlı Kullanıcı
  • Üyelik 08.04.2018
  • Yaş/Cinsiyet 23 / E
  • Meslek serbest
  • Konum İstanbul Anadolu
  • Ad Soyad S** K**
  • Mesajlar 127
  • Beğeniler 24 / 31
  • Ticaret 1, (%100)
public function mapServerResponse(
Response $responseObject,
$rawResponse,
HttpResponseInterface $httpResponse)
{
// Attempt to decode the raw JSON to an array.
// Important: Special JSON decoder which handles 64-bit numbers!
$jsonArray = $this->api_body_decode($rawResponse, true);
// If the server response is not an array, it means that JSON decoding
// failed or some other bad thing happened. So analyze the HTTP status
// code (if available) to see what really happened.
if (!is_array($jsonArray)) {
$httpStatusCode = $httpResponse !== null ? $httpResponse->getStatusCode() : null;
switch ($httpStatusCode) {
case 400:
throw new \InstagramAPI\Exception\BadRequestException('Invalid request options.');
case 404:
throw new \InstagramAPI\Exception\NotFoundException('Requested resource does not exist.');
default:
throw new \InstagramAPI\Exception\EmptyResponseException('No response from server. Either a connection or configuration error.');
}
}


Muhtemelen buradan hata veriyor sayfa 400 hatası dönüyor, sebebine gelecek olursak apiye gönderdiğiniz çıktı array olmadığındandır.
 

 

wmaraci
Konuyu toplam 1 kişi okuyor. (0 kullanıcı ve 1 misafir)
Site Ayarları
  • Tema Seçeneği
  • Site Sesleri
  • Bildirimler
  • Özel Mesaj Al