Support Topics Documentation Slack YouTube Blog

PHP REST ERROR " code->[2002] version is disabled...."


(Vivek Iyer) #1

my code is


<?php




 $url = 'http://api.backendless.com/v1/data/Users?props=ownerId';


 $headers = array(
 'Content-Type : application/json',
 'application-id : BA93FD40-F603-26A3-FFEF-946A06DCD600',
 'secret-key : 1BB80B41-E60E-B999-FF6E-D2023400CD00'
 );


 // Open connection
 $ch = curl_init();


 curl_setopt($ch, CURLOPT_URL, $url);
 curl_setopt($ch, CURLOPT_HTTPHEADER, $headers);
 curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
 curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);


 // Execute request
 $result = curl_exec($ch);






 // Close connection
 curl_close($ch);


 print_r(json_decode($result,true));






?>

This code is as it exported from REST console

My output is [See attachment]


(Vivek Iyer) #2

Hey Vitaly,i wasn’t able to see your comment on this page but i got to see it on my email;i dont know why.Please look into that.
Coming to our topic my secret-key is valid please see my Rest console [See attatchment]


(Vitaly Vengrov) #3

I have reproduced the issue and have created an internal ticket (BKNDLSS-13753)
Will let you know when the fix will be available


(Vivek Iyer) #4

What does that mean ?

So will my code work now ?


(Vivek Iyer) #5

Okay got it.Hoping to get that thing fixed soon.
Thank you !