ledgetech / ledgetech/lua-resty-http

Under what circumstances will request_uri() return an "error" string?

Open
#305 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
2.1k
Forks
630
PR merge metrics
No merged PRs in 30d

Description

i use the function _M.request_uri(self, uri, params) in http.lua file, the error message it returns is the "error" string. I would like to ask whether this is a problem on the requesting side or a problem returned by the responding side. If in request side,
What is the possible root cause?

Contributor guide

No contributing guide indexed for this repository

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 by reading http.lua and the implementation of _M.request_uri(self, uri, params), then trace where the returned "error" string is produced. Document whether it represents a requesting-side or responding-side problem and list the possible causes supported by the implementation; done means the behavior is explicitly explained.

Written by the indexing model from the issue text.

Assessment

Tech stack
lua, nginx
Domain
api, networking
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.