New issue 24 by vasiljko...@gmail.com: Uncaught exception 'HTTP request
returned code 400' in MarketSession.php
http://code.google.com/p/android-market-api-php/issues/detail?id=24
What steps will reproduce the problem?
1. Checkout code from trunk
2. Update local.php with correct device id and credentials
3. Try to run examples/test_search.php
What is the expected output? What do you see instead?
Search should return some data, instead there is exception mentioned in the
summary.
Complete Stack Trace follows:
Fatal error: Uncaught exception 'Exception' with message 'HTTP request
returned code 400' in D:\xampp\htdocs\market2\Market\MarketSession.php:212
Stack trace: #0 D:\xampp\htdocs\market2\Market\MarketSession.php(160):
MarketSession->executeRawHttpQuery('??????DQAAAJwAA...') #1
D:\xampp\htdocs\market2\Market\MarketSession.php(147):
MarketSession->executeProtobuf(Object(Request)) #2
D:\xampp\htdocs\market2\examples\test_search.php(23):
MarketSession->execute(Object(Request_RequestGroup)) #3 {main} thrown in
D:\xampp\htdocs\market2\Market\MarketSession.php on line 212
I'm receiving this too :(
I am also having this problem, did either of you guys figure out a
resolution for this error?
Comment #3 on issue 24 by splitfeed: Uncaught exception 'HTTP request
returned code 400' in MarketSession.php
http://code.google.com/p/android-market-api-php/issues/detail?id=24
Are all of you using IDs fetched using the market_checkin method?
When i try to run example test_search.php it show following error:-
Fatal error: Call to undefined function curl_init() in
C:\wamp\www\android\Market\MarketSession.php on line 81
Call to undefined function curl_init() means that you need to activate the
cURL extension for PHP, that's a requirement for the API
You have not entered a correct Android Device ID in the local.example.php
file
It is worth noting that the device ID in local.php is the phone's IMEI.
Not the "deviceId" argument sent in the HTTP GET to the market URL...
With a correct device Id, this fixes the pb.
Fatal error: Uncaught exception 'Exception' with message 'Required fields are missing' in //proto/market.proto.php:2680 Stack trace: #0 //proto/market.proto.php(3419): RequestContext->write(Resource id #7) #1 //Market/MarketSession.php(178): Request->write(Resource id #7) #2 /google/Market/MarketSession.php(165): MarketSession->protobufToStr(Object(Request)) #3 /Market/MarketSession.php(152): MarketSession->executeProtobuf(Object(Request)) #4 /examples/test_top.php(21): MarketSession->execute(Object(Request_RequestGroup)) #5 {main} thrown in /proto/market.proto.php on line 2680