eBay API GetCategories error encountered

if you try to download and execute to test the code that eBay have created, and then encountered this problem below,


SendRequest IO Error: java.io.IOException: Server returned HTTP response code: 400 for URL:https://api.sandbox.ebay.com/ws/api.dlljava.io.IOException: Server returned HTTP response code: 400 for URL:https://api.sandbox.ebay.com/ws/api.dllat sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)ERROR - GetOnlineVersionNumber: java.lang.NullPointerException
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(Unknown Source)
at com.trivand.apps.esapp.api.GetCategories.SendRequest(GetCategories.java:462)
at com.trivand.apps.esapp.api.GetCategories.getOnlineVersionNumber(GetCategories.java:349)
at com.trivand.apps.esapp.api.GetCategories.checkCategoryTreeVersion(GetCategories.java:300)
at com.trivand.apps.esapp.api.GetCategories.main(GetCategories.java:97)
java.lang.NullPointerException
at com.trivand.apps.esapp.api.GetCategories.getOnlineVersionNumber(GetCategories.java:352)
at com.trivand.apps.esapp.api.GetCategories.checkCategoryTreeVersion(GetCategories.java:300)
at com.trivand.apps.esapp.api.GetCategories.main(GetCategories.java:97)

In your config.properties, just add

 siteid = 0 version = 551

and it will work fine.



Comments

Popular posts from this blog

Converting sectors into MB - Useful in understanding the sectors in iostat in Linux

What is Disk Contention?

Installing MySQL from source: Could NOT find Curses (missing: CURSES_LIBRARY CURSES_INCLUDE_PATH)