{"action":"created","issue":{"url":"https://api.github.com/repos/edx/edx-app-android/issues/697","repository_url":"https://api.github.com/repos/edx/edx-app-android","labels_url":"https://api.github.com/repos/edx/edx-app-android/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/edx/edx-app-android/issues/697/comments","events_url":"https://api.github.com/repos/edx/edx-app-android/issues/697/events","html_url":"https://github.com/edx/edx-app-android/issues/697","id":154007025,"number":697,"title":"Unknown error in Native Find Courses","user":{"login":"johjan","id":19286746,"avatar_url":"https://avatars.githubusercontent.com/u/19286746?v=3","gravatar_id":"","url":"https://api.github.com/users/johjan","html_url":"https://github.com/johjan","followers_url":"https://api.github.com/users/johjan/followers","following_url":"https://api.github.com/users/johjan/following{/other_user}","gists_url":"https://api.github.com/users/johjan/gists{/gist_id}","starred_url":"https://api.github.com/users/johjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johjan/subscriptions","organizations_url":"https://api.github.com/users/johjan/orgs","repos_url":"https://api.github.com/users/johjan/repos","events_url":"https://api.github.com/users/johjan/events{/privacy}","received_events_url":"https://api.github.com/users/johjan/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-05-10T13:31:33Z","updated_at":"2016-05-11T14:24:03Z","closed_at":"2016-05-11T14:24:03Z","body":"Hello,\r\n\r\nI tried to use the Native Find Courses activity, but I got a **403** response. I also tried to curl `/api/courses/v1/courses/?username=staff&mobile=true&page=1` using command line with the provided _Authorization: Bearer f7a30affaa193813354137eb47c59cb3f9ac974e_, but the same thing happened. However, it works perfectly in the website. Any recommendations?\r\n\r\n\r\nHere's the logs:\r\n```\r\n05-10 14:30:04.328 30710-30710/org.edx.mobile D/org.edx.mobile.view.NativeFindCoursesActivity: created\r\n05-10 14:30:04.390 30710-30880/org.edx.mobile W/EGL_emulation: eglSurfaceAttrib not implemented\r\n05-10 14:30:04.390 30710-30880/org.edx.mobile W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0x9e833160, error=EGL_SUCCESS\r\n05-10 14:30:04.448 30710-30710/org.edx.mobile D/org.edx.mobile.util.NetworkUtil: Mobile data is connected\r\n05-10 14:30:04.459 30710-17647/org.edx.mobile D/OkHttp: --> GET http://localhost:8000/api/courses/v1/courses/?username=staff&mobile=true&page=1 HTTP/1.1\r\n05-10 14:30:04.459 30710-17647/org.edx.mobile D/OkHttp: User-Agent: Dalvik/2.1.0 (Linux; U; Android 6.0; Android SDK built for x86 Build/MASTER) edx/org.edx.mobile/0.7.8\r\n05-10 14:30:04.459 30710-17647/org.edx.mobile D/OkHttp: Authorization: Bearer f7a30affaa193813354137eb47c59cb3f9ac974e\r\n05-10 14:30:04.459 30710-17647/org.edx.mobile D/OkHttp: --> END GET\r\n05-10 14:30:04.618 30710-30716/org.edx.mobile W/art: Suspending all threads took: 53.842ms\r\n05-10 14:30:04.634 30710-30880/org.edx.mobile E/Surface: getSlotFromBufferLocked: unknown buffer: 0xa0ac2e70\r\n05-10 14:30:04.673 30710-30720/org.edx.mobile I/art: Background sticky concurrent mark sweep GC freed 47791(2MB) AllocSpace objects, 3(376KB) LOS objects, 25% free, 8MB/11MB, paused 8.031ms total 204.170ms\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: <-- 403 FORBIDDEN http://localhost:8000/api/courses/v1/courses/?username=staff&mobile=true&page=1 (220ms)\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Allow: GET, HEAD, OPTIONS\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Content-Language: ar\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Content-Type: application/json\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Date: Tue, 10 May 2016 11:30:48 GMT\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Server: nginx\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Set-Cookie: sessionid=wfng21dv3woz2rqrlh15mj72btjlvi2v; Domain=.edxbeta.org; expires=Tue, 24-May-2016 11:30:48 GMT; httponly; Max-Age=1209600; Path=/; secure\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Vary: Accept-Encoding\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Vary: Accept, Accept-Language, Cookie\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: X-Frame-Options: SAMEORIGIN\r\n05-10 14:30:04.680 30710-17647/org.edx.mobile D/OkHttp: Connection: keep-alive\r\n05-10 14:30:04.681 30710-17647/org.edx.mobile D/OkHttp: OkHttp-Sent-Millis: 1462879804460\r\n05-10 14:30:04.681 30710-17647/org.edx.mobile D/OkHttp: OkHttp-Received-Millis: 1462879804679\r\n05-10 14:30:04.681 30710-17647/org.edx.mobile D/OkHttp: {\"detail\":\"You do not have permission to perform this action.\"}\r\n05-10 14:30:04.681 30710-17647/org.edx.mobile D/OkHttp: <-- END HTTP (79-byte body)\r\n05-10 14:30:04.681 30710-17647/org.edx.mobile W/org.edx.mobile.http.RetroHttpExceptionHandler: url = http://localhost:8000/api/courses/v1/courses/?username=staff&mobile=true&page=1\r\n05-10 14:30:04.683 30710-17647/org.edx.mobile W/org.edx.mobile.http.RetroHttpExceptionHandler: kind = HTTP\r\n05-10 14:30:04.683 30710-17647/org.edx.mobile W/org.edx.mobile.http.RetroHttpExceptionHandler: body = {\"detail\":\"You do not have permission to perform this action.\"}\r\n05-10 14:30:04.683 30710-17647/org.edx.mobile W/org.edx.mobile.http.RetroHttpExceptionHandler: status and reason = 403:FORBIDDEN\r\n05-10 14:30:04.683 30710-30710/org.edx.mobile E/org.edx.mobile.util.images.ErrorUtils: org.edx.mobile.http.RetroHttpException: retrofit.RetrofitError: 403 FORBIDDEN\r\n                                                                                                 at org.edx.mobile.http.RetroHttpExceptionHandler.handleError(RetroHttpExceptionHandler.java:23)\r\n                                                                                                 at retrofit.RestAdapter$RestHandler.invoke(RestAdapter.java:242)\r\n                                                                                                 at java.lang.reflect.Proxy.invoke(Proxy.java:393)\r\n                                                                                                 at $Proxy24.getCourseList(Unknown Source)\r\n                                                                                                 at org.edx.mobile.course.CourseAPI.getCourseList(CourseAPI.java:35)\r\n                                                                                                 at org.edx.mobile.course.GetCourseListTask.call(GetCourseListTask.java:26)\r\n                                                                                                 at org.edx.mobile.course.GetCourseListTask.call(GetCourseListTask.java:11)\r\n                                                                                                 at roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.doInBackground(SafeAsyncTask.java:163)\r\n                                                                                                 at roboguice.util.AndroidCallableWrapper.doDoInBackgroundThread(AndroidCallableWrapper.java:113)\r\n                                                                                                 at roboguice.util.AndroidCallableWrapper.run(AndroidCallableWrapper.java:41)\r\n                                                                                                 at roboguice.util.AndroidCallable.run(AndroidCallable.java:20)\r\n                                                                                                 at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:423)\r\n                                                                                                 at java.util.concurrent.FutureTask.run(FutureTask.java:237)\r\n                                                                                                 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)\r\n                                                                                                 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:588)\r\n                                                                                                 at java.lang.Thread.run(Thread.java:818)\r\n                                                                                                 at dalvik.system.VMStack.getThreadStackTrace(Native Method)\r\n                                                                                                 at java.lang.Thread.getStackTrace(Thread.java:580)\r\n                                                                                                 at roboguice.util.AndroidCallable.<init>(AndroidCallable.java:12)\r\n                                                                                                 at roboguice.util.SafeAsyncTask$SafeAsyncTaskAndroidCallable.<init>(SafeAsyncTask.java:160)\r\n                                                                                                 at roboguice.util.SafeAsyncTask.newTask(SafeAsyncTask.java:156)\r\n                                                                                                 at roboguice.util.SafeAsyncTask.future(SafeAsyncTask.java:66)\r\n                                                                                                 at roboguice.util.SafeAsyncTask.execute(SafeAsyncTask.java:94)\r\n                                                                                                 at roboguice.util.SafeAsyncTask.execute(SafeAsyncTask.java:90)\r\n                                                                                                 at org.edx.mobile.view.dialog.NativeFindCoursesFragment$2.loadNextPage(NativeFindCoursesFragment.java:84)\r\n                                                                                                 at org.edx.mobile.view.adapters.InfiniteScrollUtils$PageLoadController.onLoadMore(InfiniteScrollUtils.java:159)\r\n                                                                                                 at org.edx.mobile.view.adapters.InfiniteScrollUtils$PageLoadController.onLoadMore(InfiniteScrollUtils.java:144)\r\n                                                                                                 at org.edx.mobile.view.adapters.InfiniteScrollUtils$PageLoadController.access$000(InfiniteScrollUtils.java:119)\r\n                                                                                                 at org.edx.mobile.view.adapters.InfiniteScrollUtils.configureListViewWithInfiniteList(InfiniteScrollUtils.java:43)\r\n                                                                                                 at org.edx.mobile.view.dialog.NativeFindCoursesFragment.onViewCreated(NativeFindCoursesFragment.java:55)\r\n                                                                                                 at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1086)\r\n                                                                                                 at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1252)\r\n                                                                                                 at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:742)\r\n                                                                                                 at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1617)\r\n                                                                                                 at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:339)\r\n                                                                                                 at android.support.v4.app.FragmentActivity.onResume(FragmentActivity.java:484)\r\n                                                                                                 at org.edx.mobile.base.RoboAppCompatActivity.onResume(RoboAppCompatActivity.java:87)\r\n                                                                                                 at org.edx.mobile.base.BaseFragmentActivity.onResume(BaseFragmentActivity.java:102)\r\n                                                                                                 at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1258)\r\n                                                                                                 at android.app.Activity.performResume(Activity.java:6312)\r\n                                                                                                 at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3092)\r\n                                                                                                 at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3134)\r\n                                                                                                 at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2481)\r\n                                                                                                 at android.app.ActivityThread.-wrap11(ActivityThread.java)\r\n                                                                                                 at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)\r\n                                                                                                 at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                                                 at android.os.Looper.loop(Looper.java:148)\r\n                                                                                                 at android.app.ActivityThread.main(ActivityThread.java:5417)\r\n                                                                                                 at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                                                 at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)\r\n                                                                                                 at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)\r\n05-10 14:30:04.684 30710-30710/org.edx.mobile D/Event: No subscribers registered for event class org.edx.mobile.logger.Logger$CrashReportEvent\r\n05-10 14:30:04.684 30710-30710/org.edx.mobile D/Event: No subscribers registered for event class de.greenrobot.event.NoSubscriberEvent\r\n05-10 14:30:58.898 30710-30716/org.edx.mobile W/art: Suspending all threads took: 5.154ms\r\n05-10 14:37:04.972 30710-30716/org.edx.mobile W/art: Suspending all threads took: 24.946ms\r\n05-10 14:44:38.295 30710-30716/org.edx.mobile W/art: Suspending all threads took: 11.793ms\r\n05-10 14:48:21.699 30710-30716/org.edx.mobile W/art: Suspending all threads took: 10.982ms\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/edx/edx-app-android/issues/comments/218475114","html_url":"https://github.com/edx/edx-app-android/issues/697#issuecomment-218475114","issue_url":"https://api.github.com/repos/edx/edx-app-android/issues/697","id":218475114,"user":{"login":"johjan","id":19286746,"avatar_url":"https://avatars.githubusercontent.com/u/19286746?v=3","gravatar_id":"","url":"https://api.github.com/users/johjan","html_url":"https://github.com/johjan","followers_url":"https://api.github.com/users/johjan/followers","following_url":"https://api.github.com/users/johjan/following{/other_user}","gists_url":"https://api.github.com/users/johjan/gists{/gist_id}","starred_url":"https://api.github.com/users/johjan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johjan/subscriptions","organizations_url":"https://api.github.com/users/johjan/orgs","repos_url":"https://api.github.com/users/johjan/repos","events_url":"https://api.github.com/users/johjan/events{/privacy}","received_events_url":"https://api.github.com/users/johjan/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T14:24:03Z","updated_at":"2016-05-11T14:24:03Z","body":"I used the latest version of edx-platform and everything's worked fine. The problem was this feature is not supported in dogwood-rc2.\r\n\r\nClosing now. Thanks for your fast response and consideration."}}