Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught exception 'HTTP request returned code 400' in MarketSession.php #24

Closed
GoogleCodeExporter opened this issue Jan 9, 2016 · 8 comments

Comments

@GoogleCodeExporter
Copy link

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

Original issue reported on code.google.com by vasiljko...@gmail.com on 20 Feb 2011 at 3:12

@GoogleCodeExporter
Copy link
Author

I'm receiving this too :(

Original comment by vekexa...@gmail.com on 8 Mar 2011 at 9:16

@GoogleCodeExporter
Copy link
Author

I am also having this problem, did either of you guys figure out a resolution 
for this error?

Original comment by jimr.c...@gmail.com on 15 Mar 2011 at 1:37

@GoogleCodeExporter
Copy link
Author

Are all of you using IDs fetched using the market_checkin method?

Original comment by splitfeed on 17 May 2011 at 1:43

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

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

Original comment by guptnee...@gmail.com on 30 May 2011 at 1:32

@GoogleCodeExporter
Copy link
Author

Call to undefined function curl_init() means that you need to activate the cURL 
extension for PHP, that's a requirement for the API

Original comment by splitfeed on 30 May 2011 at 6:51

@GoogleCodeExporter
Copy link
Author

You have not entered a correct Android Device ID in the local.example.php file

Original comment by kp.k...@gmail.com on 14 Jun 2011 at 11:36

@GoogleCodeExporter
Copy link
Author

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.

Original comment by aaforti...@gmail.com on 21 Jun 2011 at 1:07

@GoogleCodeExporter
Copy link
Author

Original comment by splitfeed on 22 Sep 2011 at 11:03

  • Changed state: Invalid

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant