Skip to content

Google Drive Sheets connector can read spreadsheet but cannot write after plugin reinstall; shared read quota also returns 429 #24373

Open

Description

@mikelottridge

Summary

In Codex Desktop, the Google Drive / Google Sheets connector can read an existing Google Sheet, but attempting to append a row with _batch_update_spreadsheet fails with a missing-permissions/scopes error. Reinstalling the Google Drive plugin did not resolve the write failure.

The same workflow also intermittently hit a shared Google Sheets API project read quota (ReadRequestsPerMinutePerProject) even though the user was not making other requests. That makes the connector feel unusable for a simple read-one-header/write-one-row task.

Environment

  • Product: Codex Desktop
  • Platform: Windows
  • Plugin/connector: google-drive@openai-curated
  • Tool family: Google Drive connector, Google Sheets tools
  • Date observed: 2026-05-24

Repro steps

  1. In a Codex Desktop session, use the Google Drive / Google Sheets connector against an existing Google Sheets spreadsheet.
  2. Call _get_spreadsheet_metadata for the spreadsheet.
  3. Call _get_spreadsheet_cells for a small bounded range (Sheet1!A1:M20) to read the header row.
  4. Prepare one row of current weather data from AccuWeather that matches the sheet headers.
  5. Attempt to append the row with _batch_update_spreadsheet using appendCells.
  6. Reinstall the Google Drive plugin and retry the same write.

Observed behavior

A metadata/cell read can succeed and confirm the spreadsheet, tab, sheetId, and headers. In this run the connector read the sheet title and Sheet1 metadata, then read headers such as:

Date, Time, Service, Temperature, Feels Like, Humidity, Wind Speed, Wind Direction, Precipitation, Cloud Cover, Pressure, UV Index, Visibility

But the write call fails:

Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.

After the user reinstalled the Google Drive plugin, the same _batch_update_spreadsheet append still failed with the same missing-permissions/scopes message.

Separately, narrow read calls intermittently failed with a project-level Google Sheets API quota error:

Error code: RATE_LIMITED; Error: HTTPError: 429: Too Many Requests
Quota exceeded for quota metric 'Read requests' and limit 'Read requests per minute' of service 'sheets.googleapis.com' for consumer 'project_number:77377267392'.
quota_limit: ReadRequestsPerMinutePerProject
quota_limit_value: 300
quota_unit: 1/min/{project}

The user was not making other Google Sheets requests, so this appears to be a shared connector/backend project quota rather than user-specific activity.

Expected behavior

For an installed Google Drive / Google Sheets connector, Codex should be able to complete a simple read-header + append-row workflow, or it should clearly surface an actionable auth upgrade path before the agent reaches the write step.

At minimum:

  • The connector install/reinstall flow should request or preserve the scopes required for exposed write tools such as _batch_update_spreadsheet.
  • If the connection lacks write scopes, the app should expose a direct reauthorize/upgrade flow for the Google Drive connector from the failed action.
  • The connector should not expose write tools that are unusable with the current auth state without a clear remediation path.
  • Project-level read quota exhaustion should be handled or messaged as a shared backend quota issue, not as if the user caused excessive requests.

Impact

The user asked Codex to write one line of AccuWeather data into a Google Sheet. Codex could inspect the sheet and build the exact row, but could not write it even after the user reinstalled the Google Drive plugin. The task could not be completed through the connector.

Activity

  1. added
    bug
    app
    windows-os
    auth
    rate-limits
    skills
    tool-calls
    on May 24, 2026
  2. github-actions commented on May 24, 2026

    @github-actions
    Contributor

    Potential duplicates detected. Please review them and close your issue if it is a duplicate.

    Powered by Codex Action

  3. H0rs3man commented on May 25, 2026

    @H0rs3man

    Hi, experiencing the same issue here, I wonder if you fixed it successfully?

  4. ponugoti commented on May 25, 2026

    @ponugoti

    Same issue, wasted so many credits trying to fix it through codex :(

  5. C-Advait commented on May 25, 2026

    @C-Advait

    Same issue. Connector is read-only access.
    Computer details: MacOs 15.7.4 (24G517)
    Codex: Version 26.519.41501 (3044)
    Google Drive connector installed 11:48 PM UTC time

    Error message states:

    Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.
    
  6. CyberMZ666 commented on May 26, 2026

    @CyberMZ666

    experience same issue here. Any updates on the fix?

  7. C-Advait commented on May 26, 2026

    @C-Advait

    @CyberMZ666 @ponugoti @H0rs3man @jshaofa-ui

    Fix that worked for me:

    1. Install codex cli
    2. launch cli, run /plugins and type "gmail"
    3. install the gmail plugin via cli, authenticate
    4. Restart codex cli, using @gmail have it check your email and attempt to read the top email (or some sort of similar request). Ask what inbox user it is authenticated for and reading from.
    5. Quit codex app and re-open
    6. /gmail or @gmail command should now work. Ask the same command as in 4 to verify.

    Hope this helps!

  8. ponugoti commented on May 26, 2026

    @ponugoti

    @C-Advait the problem isn't the Gmail plugin, it's the Google Sheets/Drive plugin's write access. Gmail has been working fine.

  9. culli commented on May 27, 2026

    @culli

    @CyberMZ666 @ponugoti @H0rs3man @jshaofa-ui

    Fix that worked for me:

    1. Install codex cli
    2. launch cli, run /plugins and type "gmail"
    3. install the gmail plugin via cli, authenticate
    4. Restart codex cli, using @gmail have it check your email and attempt to read the top email (or some sort of similar request). Ask what inbox user it is authenticated for and reading from.
    5. Quit codex app and re-open
    6. /gmail or @gmail command should now work. Ask the same command as in 4 to verify.

    Hope this helps!

    This didn't work for me. I tried (replacing "gmail" with "sheets") reinstalling the Google Drive plugin via codex CLI and that could not write to a google sheet either.

    The connector can read the workbook metadata but failed on the write because its current Google Drive connection is missing the Sheets edit scope. I’m going to try the UI path next, using the browser session if it’s already authenticated.

    (then it goes off and tries to do the update via Computer Use, which is also not what I was looking for).

  10. smeetChheda commented on May 27, 2026

    @smeetChheda

    The only solution I found was to go to my account settings in ChatGPT web and go to Apps -> Google Drive and then hit Disconnect and subsequently 'Connect'. Hope this helps

  11. RTnhN commented on May 29, 2026

    @RTnhN

    Smeet's solution also worked for me. I had to go online in the ChatGPT website to do it. You can't fix these permissions through the codex app or CLI.

  12. H0rs3man commented on May 30, 2026

    @H0rs3man

    We have a solution from @reduced2as
    Link: #24233

  13. mikelottridge commented on May 30, 2026

    @mikelottridge
    Author

    I tried this workaround on Codex Desktop for Windows and can confirm it worked, with one extra caveat: I had to restart Codex after completing the OAuth flow.

    What I did:

    1. First I verified the failure from Codex itself by asking the Google Drive connector to create a native Google Doc. It failed with:

      Current action failed because this app connection is missing permissions or scopes required for this action. Reauthenticate to grant the missing access; other actions on this app may still work.

    2. In ChatGPT Web, I went to Settings -> Apps -> Google Drive and disconnected Google Drive.

    3. I reconnected Google Drive from the ChatGPT app directory. As described above, the first Google OAuth prompt still only requested read-style access for Drive/Docs/Sheets/Slides. I selected all requested permissions and completed that flow anyway.

    4. Then I opened a brand-new ChatGPT Web chat and prompted:

      Create a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".

    5. ChatGPT showed a “Reconnect Google Drive” prompt. I clicked Reconnect, went through Google OAuth again, and this time Google requested the missing write scopes, including permissions to see/edit/create/delete Drive files and Docs/Sheets/Slides content.

    6. After approving those scopes, ChatGPT Web successfully created and edited the test Google Doc.

    Issue encountered:

    After completing the browser-side OAuth flow, my existing Codex Desktop session did not immediately pick up the refreshed connector state. Instead of the original missing-scope error, Google Drive tool calls started returning:

    Unknown tool: google drive_create_file

    Workaround:

    I restarted Codex Desktop. After restart, the Google Drive connector worked from Codex. I verified this by:

    • Creating a new Google Doc through the Codex Google Drive connector.
    • Inserting text into that doc with a Docs batch update.
    • Reading the document text back through the connector.

    So the workaround fixed the OAuth scope problem, but Codex may need to be restarted or a fresh session started before the updated connector/tool state is usable.

    Codex / Windows actually was able to do the fix for me... i summarized the steps done as a prompt if anyone wants to try it:

    Please apply and verify the Google Drive write-scope workaround from openai/codex issue #24233.

    Goal:
    Fix the Codex Desktop Google Drive connector so it can create and edit Google Docs, not just read Drive files.

    Steps:

    1. First, verify the current failure from Codex:

      • Use the Google Drive connector to create a native Google Doc titled:
        Codex Drive Write Scope Baseline Test
      • If it succeeds, continue to edit/readback verification.
      • If it fails with a missing permissions/scopes error, continue.
    2. Use Chrome with my logged-in ChatGPT session to perform the workaround:

      • Open ChatGPT Web.
      • Go to Settings -> Apps -> Google Drive.
      • Disconnect Google Drive if it is connected.
      • Reconnect Google Drive from the ChatGPT app directory.
      • Complete the first Google OAuth flow, selecting all requested permissions.
      • Open a brand-new ChatGPT chat.
      • Send this prompt:
        Create a Google Doc named "Codex Drive Write Scope Trigger Test" with the content "test".
      • If ChatGPT shows a “Reconnect Google Drive” prompt, click it.
      • Complete the second Google OAuth flow.
      • IMPORTANT: If Google asks for write/edit/create/delete permissions for Drive, Docs, Sheets, or Slides, select all requested permissions and continue.
      • If password, 2FA, CAPTCHA, or an account-choice uncertainty appears, stop and ask me to complete it.
    3. Approve the ChatGPT Web tool confirmations only for the test document:

      • Create File
      • Edit Document
    4. Return to Codex and verify:

      • Try creating a new Google Doc titled:
        Codex Drive Write Scope Test After OAuth
      • Insert this text into it:
        Codex Google Drive write verification passed.
      • Read the document text back through the Google Drive connector.
      • Report the created document URL and the exact readback text.
    5. If Codex Google Drive tools return Unknown tool or look stale after OAuth:

      • Tell me the browser-side OAuth succeeded.
      • Ask me to restart Codex Desktop.
      • After restart, retry the create/edit/readback verification.

    Do not claim success unless the final Codex connector readback confirms the inserted text.

  14. jacob-israel-turner commented on Jun 2, 2026

    @jacob-israel-turner

    Fixed by reconnecting.

    Plugins -> Google Drive -> "Connected" dropdown -> reconnect. This will take you to ChatGPT, where you can reconnect the Drive connection. Fixed the 429 error for me!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugrate-limitsskillstool-callswindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions