Skip to content

运行出错 #2

@mingyEx

Description

@mingyEx

配置环境完全找readme里要求来的。

❯ python test.py
Traceback (most recent call last):
  File "C:\Users\mingy\Desktop\temp\test.py", line 163, in <module>
    cookie = get_cookie(config["phone"], config["password"])
  File "C:\Users\mingy\Desktop\temp\test.py", line 19, in get_cookie
    return response.json()["data"]["token"]
           ~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^
TypeError: 'NoneType' object is not subscriptable

看了一下源码,line 16 是访问 “https://www.iqihang.com/api/ark/sso/login”,我的chrome最新版本on windows11 打开这个网址时显示如下

Whitelabel Error Page
This application has no configured error view, so you are seeing this as a fallback.

Sat Mar 22 02:23:57 CST 2025
[e03a0d36] There was an unexpected error (type=Method Not Allowed, status=405).
Request method 'GET' not supported

搜了一下:出现405错误代码表示资源被禁止,对于请求所标识的资源,不允许使用请求行中所指定的方法。
请问作者还有维护这个小工具的打算吗?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions