Skip to content
This repository has been archived by the owner on Apr 16, 2024. It is now read-only.

Chrome 访问报错 URIError: URI malformed #1110

Closed
OPTOPIA opened this issue Jan 29, 2021 · 6 comments
Closed

Chrome 访问报错 URIError: URI malformed #1110

OPTOPIA opened this issue Jan 29, 2021 · 6 comments

Comments

@OPTOPIA
Copy link

OPTOPIA commented Jan 29, 2021

环境

  • 系统/平台: CentOS7

  • nodejs 版本: v14.15.4

  • API版本: 4.0.3

出现问题

搭建完成后使用chrome\edge浏览器访问接口报错:

URIError: URI malformed
    at decodeURIComponent (<anonymous>)
    at /root/Github/NeteaseCloudMusicApi/app.js:47:9
    at Array.forEach (<anonymous>)
    at /root/Github/NeteaseCloudMusicApi/app.js:42:48
    at Layer.handle [as handle_request] (/root/Github/NeteaseCloudMusicApi/node_modules/express/lib/router/layer.js:95:5)
    at trim_prefix (/root/Github/NeteaseCloudMusicApi/node_modules/express/lib/router/index.js:317:13)
    at /root/Github/NeteaseCloudMusicApi/node_modules/express/lib/router/index.js:284:7
    at Function.process_params (/root/Github/NeteaseCloudMusicApi/node_modules/express/lib/router/index.js:335:12)
    at next (/root/Github/NeteaseCloudMusicApi/node_modules/express/lib/router/index.js:275:10)
    at /root/Github/NeteaseCloudMusicApi/app.js:36:54

chrome版本 88.0.4324.104

使用IE\手机端访问则正常


@liyang-it
Copy link

我也是不知道咋回事。同问 。不过 这样也没大事,反正api能给其他项目调用就行

@Binaryify
Copy link
Owner

无法重现,是不是url带了什么特殊字符

@ishelo
Copy link

ishelo commented Feb 11, 2021

重现问题

@ishelo
Copy link

ishelo commented Feb 12, 2021

谷歌版本:版本 88.0.4324.150(正式版本)显示 URIError: URI malformed
EDGE版本:版本 88.0.705.63 (官方内部版本) (64 位)显示正常
EDGE版本:版本 88.0.705.68 (官方内部版本) (64 位)显示正常

@Stephen-AC
Copy link

把浏览器上的cookie清了就可以了

@Binaryify
Copy link
Owner

URL 不要带 %

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants