luarocks / luarocks/luarocks-site

Got Error While Logging with GitHub

Open
#186 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MoonScript
Stars
201
Forks
50
PR merge metrics
No merged PRs in 30d

Description

When I try to login with GitHub,an error occurred.
Here is what I got on the error page

Error

...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:402: ./applications/github.lua:83: attempt to index local 'user' (a nil value)
stack traceback:
	./applications/github.lua: in function <./applications/github.lua:32>

Traceback

stack traceback:
	[C]: in function 'error'
	...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:402: in function 'handler'
	...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:131: in function 'resolve'
	...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:168: in function <...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:166>
	[C]: in function 'xpcall'
	...e/luarocks/.luarocks/share/lua/5.1/lapis/application.lua:174: in function 'dispatch'
	/home/luarocks/.luarocks/share/lua/5.1/lapis/nginx.lua:231: in function 'serve'
	content_by_lua(nginx.conf.compiled:48):1: in main chunk

Another piece of information is that I have registered with the same email address as the one my GitHub account uses

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in applications/github.lua, especially the handler around line 32 and the failing access at line 83. Reproduce the GitHub login flow and inspect why the user value is nil, including the same-email case described in the report. Done means GitHub login no longer produces this error page.

Written by the indexing model from the issue text.

Assessment

Tech stack
github, lua
Domain
authentication
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.