com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: { 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: "code" : 403, 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "errors" : [ { 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "domain" : "global", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "reason" : "insufficientPermissions" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } ], 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.getDataFromApi(CalendarActivityMain.java:426)

Stack Overflow | Sagar_Koli | 9 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Android Google calendar api 403 Forbidden Error on event insert

    Stack Overflow | 9 months ago | Sagar_Koli
    com.google.api.client.googleapis.json.GoogleJsonResponseException: 403 Forbidden 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: { 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: "code" : 403, 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "errors" : [ { 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "domain" : "global", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "reason" : "insufficientPermissions" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } ], 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.getDataFromApi(CalendarActivityMain.java:426)

    Root Cause Analysis

    1. com.google.api.client.googleapis.json.GoogleJsonResponseException

      403 Forbidden 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: { 08-22 11:46:49.507 2210-2345/com.ridhs.vaccinesample W/System.err: "code" : 403, 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "errors" : [ { 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "domain" : "global", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission", 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "reason" : "insufficientPermissions" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } ], 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: "message" : "Insufficient Permission" 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: } 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:113) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.json.AbstractGoogleJsonClientRequest.newExceptionOnError(AbstractGoogleJsonClientRequest.java:40) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest$1.interceptResponse(AbstractGoogleClientRequest.java:321) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.http.HttpRequest.execute(HttpRequest.java:1065) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:419) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.executeUnparsed(AbstractGoogleClientRequest.java:352) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.google.api.client.googleapis.services.AbstractGoogleClientRequest.execute(AbstractGoogleClientRequest.java:469) 08-22 11:46:49.508 2210-2345/com.ridhs.vaccinesample W/System.err: at com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.getDataFromApi(CalendarActivityMain.java:426)

      at com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.doInBackground()
    2. com.ridhs.vaccinesample
      CalendarActivityMain$MakeRequestTask.doInBackground
      1. com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.doInBackground(CalendarActivityMain.java:352)
      2. com.ridhs.vaccinesample.CalendarActivityMain$MakeRequestTask.doInBackground(CalendarActivityMain.java:319)
      2 frames
    3. Android Platform
      AsyncTask$2.call
      1. android.os.AsyncTask$2.call(AsyncTask.java:292)
      1 frame
    4. Java RT
      FutureTask.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:237)
      1 frame
    5. Android Platform
      AsyncTask$SerialExecutor$1.run
      1. android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
      1 frame
    6. Java RT
      ThreadPoolExecutor$Worker.run
      1. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
      2 frames