claude-code - 💡(How to fix) Fix [BUG] Notion OAuth connector fails with "Internal Server Error" on authorization step [2 comments, 3 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#48878Fetched 2026-04-16 06:48:28
View on GitHub
Comments
2
Participants
3
Timeline
6
Reactions
0
Timeline (top)
labeled ×4commented ×2

Error Message

Code Example

## Actual Behavior

"Internal Server Error" is displayed after the OAuth redirect.
The connector is not established.

the link for error message is https://mcp.notion.com/callback?code=03d6a088-ca5d-408b-b202-4b545c8b5476&state=eyJyZXNwb25zZVR5cGUiOiJjb2RlIiwiY2xpZW50SWQiOiJodHRwczovL2NsYXVkZS5haS9vYXV0aC9tY3Atb2F1dGgtY2xpZW50LW1ldGFkYXRhIiwicmVkaXJlY3RVcmkiOiJodHRwczovL2NsYXVkZS5haS9hcGkvbWNwL2F1dGhfY2FsbGJhY2siLCJzY29wZSI6WyJjbGF1ZGVhaSJdLCJzdGF0ZSI6InFRUXVhWGQ5MTVWVWJTVFNLbjBHNUtsNWxLdm1TcTZDYXdxSGRvdE5oX1kiLCJjb2RlQ2hhbGxlbmdlIjoicFJoZ2dMZHNSX3p5YjdDckx4cEpZbUxXamp1VDJxcHN2UGt5ckxwYmdkcyIsImNvZGVDaGFsbGVuZ2VNZXRob2QiOiJTMjU2IiwibWNwX3N0YXRlX2tleSI6Im1jcF82NGI3NTc0ZmJhZTA0MWM2YTRhMGZkYTQxYmMxNWRiNSIsIm1jcF9zdGF0ZV92YWwiOiJkOTYxZmM1MS1kNzY0LTQzN2EtYjBjZi1mOGJjOGM1YjdhNzkiLCJtY3BfdGltZSI6MTc3NjMwMjEzMDQ5MCwicmVzb3VyY2UiOiJodHRwczovL21jcC5ub3Rpb24uY29tL21jcCJ9
RAW_BUFFERClick to expand / collapse

Preflight Checklist

  • I have searched existing issues and this hasn't been reported yet
  • This is a single bug report (please file separate reports for different bugs)
  • I am using the latest version of Claude Code

What's Wrong?

Bug Description

When trying to connect the Notion MCP connector on claude.ai/settings/connectors, the OAuth flow fails with an "Internal Server Error" immediately after approving access on Notion's authorization page (Step 3 of the OAuth flow).

What Should Happen?

Expected Behavior

After approving access on Notion's OAuth page, the connector should be successfully linked and appear as "Connected" on the settings page.

Error Messages/Logs

## Actual Behavior

"Internal Server Error" is displayed after the OAuth redirect.
The connector is not established.

the link for error message is https://mcp.notion.com/callback?code=03d6a088-ca5d-408b-b202-4b545c8b5476&state=eyJyZXNwb25zZVR5cGUiOiJjb2RlIiwiY2xpZW50SWQiOiJodHRwczovL2NsYXVkZS5haS9vYXV0aC9tY3Atb2F1dGgtY2xpZW50LW1ldGFkYXRhIiwicmVkaXJlY3RVcmkiOiJodHRwczovL2NsYXVkZS5haS9hcGkvbWNwL2F1dGhfY2FsbGJhY2siLCJzY29wZSI6WyJjbGF1ZGVhaSJdLCJzdGF0ZSI6InFRUXVhWGQ5MTVWVWJTVFNLbjBHNUtsNWxLdm1TcTZDYXdxSGRvdE5oX1kiLCJjb2RlQ2hhbGxlbmdlIjoicFJoZ2dMZHNSX3p5YjdDckx4cEpZbUxXamp1VDJxcHN2UGt5ckxwYmdkcyIsImNvZGVDaGFsbGVuZ2VNZXRob2QiOiJTMjU2IiwibWNwX3N0YXRlX2tleSI6Im1jcF82NGI3NTc0ZmJhZTA0MWM2YTRhMGZkYTQxYmMxNWRiNSIsIm1jcF9zdGF0ZV92YWwiOiJkOTYxZmM1MS1kNzY0LTQzN2EtYjBjZi1mOGJjOGM1YjdhNzkiLCJtY3BfdGltZSI6MTc3NjMwMjEzMDQ5MCwicmVzb3VyY2UiOiJodHRwczovL21jcC5ub3Rpb24uY29tL21jcCJ9

Steps to Reproduce

Steps to Reproduce

  1. Go to https://claude.ai/settings/connectors
  2. Click "Connect" on the Notion connector
  3. The Notion OAuth page opens — select workspace and click "Allow access"
  4. Redirected back to claude.ai — "Internal Server Error" is displayed
  5. Connector remains unconnected

Claude Model

Sonnet (default)

Is this a regression?

I don't know

Last Working Version

2.1.110

Claude Code Version

2.1.110

Platform

Anthropic API

Operating System

macOS

Terminal/Shell

Other

Additional Information

Additional Context

  • This issue has persisted for 4–5 days (since approximately April 11, 2026)
  • Tried multiple times, same result every time
  • Notion workspace and account are working normally
  • Notion API token is valid (tested separately, returns HTTP 200)

extent analysis

TL;DR

The Notion MCP connector OAuth flow fails with an "Internal Server Error" after approving access, likely due to an issue with the OAuth callback handling.

Guidance

  • Verify that the Notion API token is correctly configured and valid by checking the token's expiration date and testing it with a separate API request.
  • Inspect the OAuth callback URL and parameters to ensure they match the expected format and are properly encoded.
  • Check the server logs for any errors or exceptions related to the OAuth callback handling to identify potential issues.
  • Test the connector with a different Notion workspace or account to isolate the issue.

Example

No code snippet is provided as the issue is related to the OAuth flow and server-side handling.

Notes

The issue may be related to a regression or a change in the Notion API or the Claude Code implementation. Further investigation is needed to determine the root cause.

Recommendation

Apply a workaround by testing the connector with a different Notion workspace or account to isolate the issue, as the problem may be specific to the current configuration.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix [BUG] Notion OAuth connector fails with "Internal Server Error" on authorization step [2 comments, 3 participants]