Closed amitmarxx closed 6 years ago
When im using the atari example it works fine, but when i try using the Zelda example it gives me a Server Volley Error:
03-27 05:54:40.584 10411-10447/com.marx.amit.myapplication E/Volley: [392] BasicNetwork.performRequest: Unexpected response code 400 for https://api-2445582011268.apicast.io/platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0
seems like it doesn't adding my api key to result URL?
full logcat:
03-27 06:12:04.189 11146-11146/? I/zygote: Not late-enabling -Xcheck:jni (already on) 03-27 06:12:04.216 11146-11146/? W/zygote: Unexpected CPU variant for X86 using defaults: x86 03-27 06:12:04.381 11146-11146/com.marx.amit.myapplication I/InstantRun: starting instant run server: is main process 03-27 06:12:04.595 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: HWUI GL Pipeline 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication I/OpenGLRenderer: Initialized EGL, version 1.4 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: Swap behavior 1 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: Swap behavior 0 03-27 06:12:04.672 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglCreateContext: 0x9c505120: maj 2 min 0 rcv 2 03-27 06:12:04.712 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglMakeCurrent: 0x9c505120: ver 2 0 (tinfo 0x9c503280) 03-27 06:12:04.790 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglMakeCurrent: 0x9c505120: ver 2 0 (tinfo 0x9c503280) 03-27 06:12:04.896 11146-11146/com.marx.amit.myapplication V/View: dispatchProvideAutofillStructure(): not laid out, ignoring 0 children of 1073741831 03-27 06:12:04.899 11146-11146/com.marx.amit.myapplication I/AssistStructure: Flattened final assist data: 2400 bytes, containing 1 windows, 9 views 03-27 06:12:09.852 11146-11146/com.marx.amit.myapplication D/Query: platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0 03-27 06:12:09.877 11146-11182/com.marx.amit.myapplication D/NetworkSecurityConfig: No Network Security Config specified, using platform default
03-27 06:12:10.937 11146-11182/com.marx.amit.myapplication E/Volley: [400] BasicNetwork.performRequest: Unexpected response code 400 for https://api-2445582011268.apicast.io/platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0
03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: Do partial code cache collection, code=29KB, data=30KB 03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: After code cache collection, code=29KB, data=30KB 03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: Increasing code cache capacity to 128KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: Do partial code cache collection, code=56KB, data=56KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: After code cache collection, code=56KB, data=56KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: Increasing code cache capacity to 256KB
ok so the problem was that i didnt set the Endpoint to GAME instead of PLATFORM.
When im using the atari example it works fine, but when i try using the Zelda example it gives me a Server Volley Error:
03-27 05:54:40.584 10411-10447/com.marx.amit.myapplication E/Volley: [392] BasicNetwork.performRequest: Unexpected response code 400 for https://api-2445582011268.apicast.io/platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0
seems like it doesn't adding my api key to result URL?
full logcat:
03-27 06:12:04.189 11146-11146/? I/zygote: Not late-enabling -Xcheck:jni (already on) 03-27 06:12:04.216 11146-11146/? W/zygote: Unexpected CPU variant for X86 using defaults: x86 03-27 06:12:04.381 11146-11146/com.marx.amit.myapplication I/InstantRun: starting instant run server: is main process 03-27 06:12:04.595 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: HWUI GL Pipeline 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication I/zygote: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasWideColorDisplay retrieved: 0 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication I/OpenGLRenderer: Initialized EGL, version 1.4 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: Swap behavior 1 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without... 03-27 06:12:04.655 11146-11169/com.marx.amit.myapplication D/OpenGLRenderer: Swap behavior 0 03-27 06:12:04.672 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglCreateContext: 0x9c505120: maj 2 min 0 rcv 2 03-27 06:12:04.712 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglMakeCurrent: 0x9c505120: ver 2 0 (tinfo 0x9c503280) 03-27 06:12:04.790 11146-11169/com.marx.amit.myapplication D/EGL_emulation: eglMakeCurrent: 0x9c505120: ver 2 0 (tinfo 0x9c503280) 03-27 06:12:04.896 11146-11146/com.marx.amit.myapplication V/View: dispatchProvideAutofillStructure(): not laid out, ignoring 0 children of 1073741831 03-27 06:12:04.899 11146-11146/com.marx.amit.myapplication I/AssistStructure: Flattened final assist data: 2400 bytes, containing 1 windows, 9 views 03-27 06:12:09.852 11146-11146/com.marx.amit.myapplication D/Query: platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0 03-27 06:12:09.877 11146-11182/com.marx.amit.myapplication D/NetworkSecurityConfig: No Network Security Config specified, using platform default
03-27 06:12:10.937 11146-11182/com.marx.amit.myapplication E/Volley: [400] BasicNetwork.performRequest: Unexpected response code 400 for https://api-2445582011268.apicast.io/platforms/?search=Zelda&fields=name,release_dates.date,rating,hypes,cover&filter[release_dates.date][gt]=2010-12-31&filter[release_dates.date][lt]=2012-01-01&order=release_dates.date:desc&limit=2&offset=0
03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: Do partial code cache collection, code=29KB, data=30KB 03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: After code cache collection, code=29KB, data=30KB 03-27 06:12:32.987 11146-11152/com.marx.amit.myapplication I/zygote: Increasing code cache capacity to 128KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: Do partial code cache collection, code=56KB, data=56KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: After code cache collection, code=56KB, data=56KB 03-27 06:12:46.045 11146-11152/com.marx.amit.myapplication I/zygote: Increasing code cache capacity to 256KB