GitHub OAuth Callback Crashes for All Space App Users — base_host Variable Shadowing
Open
@vihar is already working on this.
Since May 28, 2026.
🐛bug
plane
- Dominant language
- TypeScript
- Stars
- 59.6k
- Forks
- 5.8k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 49
Description
Is there an existing issue for this?
- I have searched the existing issues
Current behavior
When I complete GitHub OAuth login in the space app, the callback crashes with a TypeError and I see the error message attached below:
TypeError: 'str' object is not callable
What I expect is to be redirected to the dashboard after successful GitHub authentication.
File: apps/api/plane/authentication/views/space/github.py, line 61 — base_host = request.session.get("host") shadows the imported base_host function, causing all subsequent base_host(request=request, is_space=True) calls to fail.
Steps to reproduce
- Go to the space app login page
- Click "Continue with GitHub"
- Authorize the application on GitHub
- See 500 error on callback — user is never authenticated
Environment
Production
Browser
Google Chrome
Variant
Cloud
Version
v0.17.0-dev
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.