Quantcast
Channel: ODK (OUYA Developer Kit) - OUYA Developer Forums
Viewing all articles
Browse latest Browse all 36

In-App-Payments error on retrieving products.

$
0
0
I have the product list: 
public static final List<Purchasable> PRODUCT_ID_LIST =
       Arrays.asList(new Purchasable("credit"),new Purchasable("SpikeJumperFull"),new Purchasable("SpikeJumperUnlock"),new Purchasable("SpikeJumperFullCredit"));

yet when I try to retrieve that with this code:

    Facade.setTestMode();
Facade.requestProductList(PRODUCT_ID_LIST, new OuyaResponseListener<ArrayList<Product>>() {
public void onSuccess(ArrayList<Product> products) {
for(Product p : products) {
                   Log.d("Product", p.getName() + " costs " + p.getPriceInCents());
               }
}
public void onFailure(int errorCode, String ErrorMessage, Bundle arg2) {
Log.e("Product","Error: "+Integer.toString(errorCode)+" : "+ErrorMessage);
}
public void onCancel() {
// TODO Auto-generated method stub
}
});

This results in the error:

03-12 23:08:55.801: D/IapGateway(23503): requesting product list
03-12 23:08:55.801: E/IAP Client Service(23503): java.net.URISyntaxException: Illegal character in query at index 98: https://devs.ouya.tv/api/v1/developers/a5b1d2a1-344b-4426-86bc-dd84fa74419c/products/?only=credit,,null,null
03-12 23:08:55.801: E/IAP Client Service(23503): at libcore.net.UriCodec.validate(UriCodec.java:63)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.net.URI.parseURI(URI.java:406)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.net.URI.<init>(URI.java:204)
03-12 23:08:55.801: E/IAP Client Service(23503): at tv.ouya.console.util.http.BaseApiRequest.getHttpGet(BaseApiRequest.java:73)
03-12 23:08:55.801: E/IAP Client Service(23503): at tv.ouya.console.util.http.ApiGetRequest.execute(ApiGetRequest.java:12)
03-12 23:08:55.801: E/IAP Client Service(23503): at tv.ouya.console.util.http.ApiGateway$RemoteCallTask.doInBackground(ApiGateway.java:55)
03-12 23:08:55.801: E/IAP Client Service(23503): at tv.ouya.console.util.http.ApiGateway$RemoteCallTask.doInBackground(ApiGateway.java:42)
03-12 23:08:55.801: E/IAP Client Service(23503): at android.os.AsyncTask$2.call(AsyncTask.java:287)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.util.concurrent.FutureTask.run(FutureTask.java:234)
03-12 23:08:55.801: E/IAP Client Service(23503): at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
03-12 23:08:55.801: E/IAP Client Service(23503): at java.lang.Thread.run(Thread.java:856)
03-12 23:08:55.801: D/IAP Client Service(23503): Response body was: Illegal character in query at index 98: https://devs.ouya.tv/api/v1/developers/a5b1d2a1-344b-4426-86bc-dd84fa74419c/products/?only=credit,,null,null
03-12 23:08:55.801: D/IAP Client Service(23503): Response body was: Illegal character in query at index 98: https://devs.ouya.tv/api/v1/developers/a5b1d2a1-344b-4426-86bc-dd84fa74419c/products/?only=credit,,null,null
03-12 23:08:55.801: E/IapGateway(23503): Got failure response with message: Illegal character in query at index 98: https://devs.ouya.tv/api/v1/developers/a5b1d2a1-344b-4426-86bc-dd84fa74419c/products/?only=credit,,null,null


Does anyone know anything about this?

Viewing all articles
Browse latest Browse all 36

Trending Articles