Skip to content

您好,我调用接口服务器报以下错误,现在还能用吗? #14

Description

@caoyuewen

作者您好,我不会python 这个现在还能用吗 服务器能启动,
我的平台是:windows10 、python 3.7.2
调用接口 :http://127.0.0.1:5000/?que=%E4%BD%A0%E6%98%AF%E8%B0%81
报以下错误:找不到文件

File "C:\Python\Python37\lib\site-packages\flask\json_init_.py", line 81, in default
return _json.JSONEncoder.default(self, o)
File "C:\Python\Python37\lib\json\encoder.py", line 179, in default
raise TypeError(f'Object of type {o.class.name} '
TypeError: Object of type FileNotFoundError is not JSON serializable
127.0.0.1 - - [30/Jan/2019 11:35:02] "GET / HTTP/1.1" 500 -

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