Skip to content

[Bug]: Unable to connect to Google Calendar - Error 400: redirect_uri_mismatch #2316

Closed

Description

@TomaszGaweda

Bug Description

When trying to connect with Google Calendar I get following error:

You can't sign in because this app sent an invalid request. You can try again later, or contact the developer about this issue. Learn more about this error
If you are a developer of this app, see error details.
Error 400: redirect_uri_mismatch

I saw it was reported one day, but author said it was on his side - while nothing he said was working for me and Full Calendar Remastered was able to connect to Google account, so there is something wrong...
Alternatively, maybe TN could provide sign to Google button like Full Calendar Remastered does? I like FCR, but use TaskNotes much more :)

Steps to Reproduce

No response

TaskNotes Debug Info


Affected Task Frontmatter

Relevant Bases File Content

Relevant Settings or Customizations

No response

Console Errors or Logs


Screenshots or Screen Recording

No response

Activity

  1. TomaszGaweda commented on Sep 10, 2026

    @TomaszGaweda
    Author

    ok, got it working.

    It needs an OAuth key of type "web application" AND to add those addresses to allowed:
    http://127.0.0.1:8080?flowName=GeneralOAuthFlow
    http://127.0.0.1:8080

    Never got it working with only one of those, idk why. But now works... So the only thing author can do is to improve docs and specify, that those addresses are mandatory

  2. callumalpass commented on Sep 13, 2026

    @callumalpass
    Owner

    Thanks for following up, @TomaszGaweda. I'm glad you got a connection working. I don't want to document those two URLs as mandatory: TaskNotes sends a loopback redirect without a flowName query parameter, and the callback port is dynamic. A Web application client with a fixed 8080 redirect is therefore not a reliable setup across connection attempts; the pending OAuth hardening also lets the OS allocate the port.

    I've added troubleshooting documentation to the next-release candidate explaining the supported Desktop app client setup and distinguishing redirect_uri_mismatch from testing-mode 403 access_denied.

    Could you share your TaskNotes/Obsidian versions, OS, and—if you can retest with a Desktop app client—only the redirect_uri from Google's error details if it still fails? Please do not share the full authorization URL, client secret, code, state, tokens, or exported settings. I'll leave this open rather than assume the original Desktop-client failure is resolved.

  3. TomaszGaweda commented on Sep 14, 2026

    @TomaszGaweda
    Author

    Thanks @callumalpass, actually this PR is very informative and gives a necessary heads-up. I'm closing this issue as I think PR addresses it.

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

    bugSomething isn't working

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions