FileNotFoundError: 【Errno 2】 No such file or directory: “/root/faate.json.tmp” -> “/root/faate.json”
// Werkzeug Debugger
var ODE = false,
EVALEX = false,
EVALEX_TRUSTED = false,
SECRET = “3CwYOWK7IU30PHIGP”;
FileNotFoundError
FileNotFoundError: 【Errno 2】 No such file or directory: “/root/faate.json.tmp” -> “/root/faate.json”
Traceback (most ret call last)
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 1498,
in __call__
) -> cabc.Iterable【bytes】:
“”“The WSGI server calls the Flask application object as the
WSGI application. This calls :meth:`wsgi_app`, which be
ed to apply middleware.
”“”
return self.wsgi_app(environ, start_response)
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 1476,
in wsgi_app
try:
ctx.push
response = self.full_dispatch_request
except Exception as e:
error = e
response = self.handle_exception(e)
except: # noqa: B001
error = sys.exfo【1】
raise
return response(environ, start_response)
finally:
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 1473,
in wsgi_app
ctx = self.request_text(environ)
error: BaseException | None = None
try:
try:
ctx.push
response = self.full_dispatch_request
except Exception as e:
error = e
response = self.handle_exception(e)
except: # noqa: B001
error = sys.exfo【1】
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 882,
in full_dispatch_request
request_started.send(self, _async_er=self.ensure_sync)
rv = self.preprocess_request
if rv is None:
rv = self.dispatch_request
except Exception as e:
rv = self.handle_user_exception(e)
return self.finalize_request(rv)
def finalize_request(
self,
rv: ft.RespournValue | HTTPException,
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 880,
in full_dispatch_request
try:
request_started.send(self, _async_er=self.ensure_sync)
rv = self.preprocess_request
if rv is None:
rv = self.dispatch_request
except Exception as e:
rv = self.handle_user_exception(e)
return self.finalize_request(rv)
def finalize_request(
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”,
line 865,
in dispatch_request
and req.method == “OPTIONS”
):
return self.make_default_options_response
# otherwise dispatch to the handler for that endpoint
view_args: dict【str, t.Any】 = req.view_args # type: ignore【assig】
return self.ensure_sync(self.view_funs【rule.endpoint】)(**view_args) # type: ignore【no-aurn】
def full_dispatch_request(self) -> Response:
“”“Dispatches the request and on top of that performs request
pre and postprocessing as well as HTTP exception catg and
error handling.
File ”/root/fanxie/main.py“,
line 67,
in index
def index:
itemId = request.args.get(“itemId”)
if itemId is None:
return ”請輸入itemId“
result = F.fetch_tent(itemId) # 輪播取號
num = 3
while result【“code”】 is False and num > 0:
result = F.fetch_tent(itemId) # 失敗自動換下一個號
num -= 1
if not result【“code”】:
File ”/root/fanxie/fach.py“,
line 74,
ich_tent
acone 時自動輪播取號(正常抓取走這條路);
檢測時傳入指定賬號, 以便單獨驗證某個 Cookie。
”“”
if acc is None:
acc = S.pick_at
if not acc:
return {“code”: False, “msg”: “沒有可用賬號(全部停用或未配置)”}
try:
ctx = get_js
File “/root/fanxie/faore.py”,
line 227,
in pick_at
# 全在冷卻: 取最久沒用過的
a = min(avail, key=lambda x: st.get(str(x.get(“id”)), {}).get(“last_used”, 0))
rec = st.get(str(a.get(“id”)), {})
rec【“last_used”】 = now
st【str(a.get(“id”))】 = rec
save_state(st)
return a
def reset_rr:
global _rr_idx
File “/root/fanxie/faore.py”,
line 143,
in save_state
d = _load_json(STATE_FILE, {})
return d if isinstance(d, dict) else {}
def save_state(st):
_save_json(STATE_FILE, st)
def get_state(acc_id):
return load_state.get(str(acc_id), {})
File “/root/fanxie/faore.py”,
line 43,
in _save_json
def _save_json(path, data):
tmp = path + “.tmp”
with open(tmp, “w”, eng=“utf-8”) as f:
json.dump(data, f, ensure_ascii=False, i=2)
os.replace(tmp, path)
def _migrate_from_txt:
“”“首次使用: 從舊的 cookis.txt 匯入, 每個號配預設代理”“”
try:
FileNotFoundError: 【Errno 2】 No such file or directory: “/root/faate.json.tmp” -> “/root/faate.json”
This is the Copy/Paste friendly version of the traceback.
Traceback (most ret call last):
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 1498, in __call__
return self.wsgi_app(environ, start_response)
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 1476, in wsgi_app
response = self.handle_exception(e)
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 1473, in wsgi_app
response = self.full_dispatch_request
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 882, in full_dispatch_request
rv = self.handle_user_exception(e)
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 880, in full_dispatch_request
rv = self.dispatch_request
File “//server/pyporject_evn/versions/3.8.20/lib/python3.8/site-packages/flask/app.py”, line 865, in dispatch_request
return self.ensure_sync(self.view_funs【rule.endpoint】)(**view_args) # type: ignore【no-aurn】
File “/root/fanxie/main.py”, line 67, in index
result = F.fetch_tent(itemId) # 輪播取號
File “/root/fanxie/fach.py”, line 74, ich_tent
acc = S.pick_at
File “/root/fanxie/faore.py”, line 227, in pick_at
save_state(st)
File “/root/fanxie/faore.py”, line 143, in save_state
_save_json(STATE_FILE, st)
File “/root/fanxie/faore.py”, line 43, in _save_json
os.replace(tmp, path)
FileNotFoundError: 【Errno 2】 No such file or directory: “/root/faate.json.tmp” -> “/root/faate.json”
The debugger caught an exception in yI application. You ow
look at the traceback which led to the error.
If you enable JavaScript you also use additional features such as code
execution (if the evalex feature is enabled), automatic pasting of the
exceptions and much more.
Brought to you by DON“T PANIC, your
friendly Werkzeug powered tracebaterpreter.
sole Locked
The sole is locked and o be unlocked by entering the PIN.
You find the PIN printed out oandard output of your
shell that runs the server.
PIN:
輕觸畫面開啟選單
載入評論中…