openresty / openresty/lua-resty-redis
redacted.redislabs.com could not be resolved (2: Server failure)
Nobody has claimed this yet.
- Dominant language
- Lua
- Stars
- 2k
- Forks
- 447
- Avg merge
- 2h 24m
- Merged PRs (30d)
- 3
Description
We recently had an issue with our Redis provider and this error came up which caused our application to throw 500s. I'm trying to understand what could've caused this and why it raised this error. I was unable to recreate this specific error but causing similiar errors by intentionally breaking the hostname are handled fine.
2021/08/18 10:20:33 [error] 28600#28600: *11030103 lua entry thread aborted: runtime error: /usr/local/share/lua/5.1/resty/http_connect.lua:208: bad request
stack traceback:
coroutine 0:
[C]: in function 'connect'
/usr/local/share/lua/5.1/resty/http_connect.lua:208: in function 'connect'
/usr/local/share/lua/5.1/resty/http.lua:913: in function 'request_uri'
/etc/nginx/lua/bugsnag.lua:331: in function 'send_report'
/etc/nginx/lua/bugsnag.lua:405: in function 'call'
/etc/nginx/lua/redacted.lua:233: in main chunk, client: redacted, server: _, request: "GET[redacted] HTTP/1.1", host: "redacted"```
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Start at /usr/local/share/lua/5.1/resty/http_connect.lua:208 and trace the request through resty/http.lua:913, comparing the reported DNS failure with the intentionally broken-hostname case. Review the referenced connection and error paths to determine why this failure becomes a 500; done means a reproducible explanation and a clearly scoped handling change.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- lua, nginx, redis
- Domain
- backend, databases
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100