fetchRemote overwrites responseInfo table with status code on fail
Maintainer thường phản hồi trong vòng 3 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by locating the new fetchRemote implementation and its callback handling; the issue does not name source files or tests. Reproduce a failed request where the remote end returns an error, then inspect the callback arguments against the documented responseInfo table contract. Done when failures pass a table with the documented fields and the callback no longer errors when reading success.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
When new implementation of fetchRemote fails due to network stack and the callback function is called, the responseInfo table is overwritten with the network status code.
function fetchRemoteCallback(responseData, tblResponseInfo, ...)
-- on fail, lua will report: attempt to index local tblResponseInfo (a number value)
-- if the response is OK, it will be a table with success attribute set to true
if(not tblResponseInfo.success) then
error("fetchRemote failed");
end
end
According to the wiki, it should always return a table and youre supposed to use success and statusCode attributes for error handling:
callbackFunction: This is the function that should receive the data returned from the remote server. The callback argument list should be:
responseData - A string containing the remote response
responseInfo - A table containing:
success - A boolean indicating if the request was successful.
statusCode - An integer status/error code. See the list of possible error values below.
headers - A table containing the HTTP response headers
arguments... - The arguments that were passed into fetchRemote
Steps to reproduce
Use the new fetchRemote implementation and request data where remote end actively sends an error back
Version
No response
Additional context
No response
Relevant log output
Security Policy
- I have read and understood the Security Policy and this issue is not security related.
- Ngôn ngữ chính
- C++
- Star
- 1.9k
- Fork
- 588
- Merge trung bình
- 4 ngày 9 phút
- Pull request đã merge (30 ngày)
- 11
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của multitheftauto/mtasa-blue
-
engineSetModelFlag, engineGetModelFlag, engineSetModelFlags and engineResetModelFlag return errorĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
multitheftauto/mtasa-blue#3186 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bindKey shouldn't be able to bind function multiple timesCó thể đã có người làm @iManGaaX đã nhận 11 ngày trước. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
multitheftauto/mtasa-blue#2629 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Protocol Error 67Đang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
multitheftauto/mtasa-blue#5553 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
multitheftauto/mtasa-blue#5552 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
Crash every time disconnectingĐang mởbug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 43/100
multitheftauto/mtasa-blue#5550 · 1 reaction ·
Maintainer thường phản hồi trong vòng 3 ngày
Tất cả issue của multitheftauto/mtasa-blue
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
-
area:qmc bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 69/100
Maintainer thường phản hồi trong vòng 3 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
ASGC-Game-Jam/asgc-gamejam-2026#563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/ysql kind/bug priority/medium status/awaiting-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
yugabyte/yugabyte-db#37523 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Let agents name their jobsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100