Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got music url and could only listen it through opening a new tab but could not listen at VS code #94

Open
DuoWeng opened this issue Jun 29, 2020 · 2 comments

Comments

@DuoWeng
Copy link

DuoWeng commented Jun 29, 2020

Version: 1.46.1
Commit: cd9ea6488829f560dc949a8b2fb789f3cdc05f5d
Date: 2020-06-17T21:17:14.222Z (1 wk ago)
Electron: 7.3.1
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.5.0

Using Developer Tools check, there is no issue. For any search for a music, there are two requests One is
General
Request URL: http://127.0.0.1:16363/song/1416387774
Request Method: GET
Status Code: 302 Found
Remote Address: 127.0.0.1:16363
Referrer Policy: no-referrer
Connection: keep-alive
Date: Mon, 29 Jun 2020 06:04:01 GMT
location: /song/1416387774?url=http%3A%2F%2Fm8c.music.126.net%2F20200629142906%2F1fc70c04f428d3b831b6dcc3a1d01d40%2Fymusic%2F015a%2F5209%2F0258%2F6033293f5bec0da3bf4952ea2808a126.mp3
Transfer-Encoding: chunked
Accept: /
Accept-Encoding: identity;q=1, *;q=0
Accept-Language: en-US
Connection: keep-alive
Host: 127.0.0.1:16363
Range: bytes=0-
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.46.1 Chrome/78.0.3904.130 Electron/7.3.1 Safari/537.36

The other one is :
General
Request URL: http://127.0.0.1:16363/song/1416387774?url=http%3A%2F%2Fm8c.music.126.net%2F20200629142906%2F1fc70c04f428d3b831b6dcc3a1d01d40%2Fymusic%2F015a%2F5209%2F0258%2F6033293f5bec0da3bf4952ea2808a126.mp3
Request Method: GET
Status Code: 206 Partial Content
Remote Address: 127.0.0.1:16363
Referrer Policy: no-referrer
access-control-allow-credentials: true
access-control-allow-headers: DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range
access-control-allow-methods: GET,POST,OPTIONS
access-control-allow-origin: *
access-control-expose-headers: Content-Range, Last-Modified
age: 1091242
cache: state
cdn-ip: 157.185.144.71
cdn-source: chinanetcenter
cdn-user-ip: 24.137.126.249
connection: keep-alive
content-disposition: inline; filename="015a%2F5209%2F0258%2F6033293f5bec0da3bf4952ea2808a126.mp3"
Content-Length: 4343085
Content-Range: bytes 0-4343084/4343085
content-type: audio/mpeg
date: Mon, 29 Jun 2020 06:04:07 GMT
etag: 6033293f5bec0da3bf4952ea2808a126
last-modified: Mon, 13 Jan 2020 20:32:50 Asia/Shanghai
server: openresty/1.11.2.5
x-nos-object-name: 015a%2F5209%2F0258%2F6033293f5bec0da3bf4952ea2808a126.mp3
x-nos-request-id: fdadc55a-9c3c-4964-a227-2ccdca5ed815
x-nos-requesttype: GetObject
x-nos-storage-class: STANDARD
x-via: 1.1 adianxin45:9 (Cdn Cache Server V2.0)[123 200 2], 1.1 PSjsyzdx6gq170:5 (Cdn Cache Server V2.0)[84 200 0], 1.1 PSmgnyNY2hd71:5 (Cdn Cache Server V2.0)[1 200 0]
Accept: /
Accept-Encoding: identity;q=1, *;q=0
Accept-Language: en-US
Connection: keep-alive
Host: 127.0.0.1:16363
Range: bytes=0-
Sec-Fetch-Mode: no-cors
Sec-Fetch-Site: cross-site
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_5) AppleWebKit/537.36 (KHTML, like Gecko) Code/1.46.1 Chrome/78.0.3904.130 Electron/7.3.1 Safari/537.36
url: http://m8c.music.126.net/20200629142906/1fc70c04f428d3b831b6dcc3a1d01d40/ymusic/015a/5209/0258/6033293f5bec0da3bf4952ea2808a126.mp3

Copy the above url and paste it into browser can listen the music, but if I press the button on VScode, there is no sound at all. I think I have correctly replace the essential file. But I have no idea what is the problem, Thank you!

@DuoWeng
Copy link
Author

DuoWeng commented Jun 29, 2020

I am in Canada, is there any configuration I need to specify? By the way, do you think it is necessary to clear the host file and where I can find the host file ? I have read all other issues but they seem useless in my case.

@nondanee
Copy link
Owner

It's most commonly caused by ffmpeg

After "correct" replacement the vscode 1.46.1 should be failed to startup because of code unsigned #95
If vscode can successfully boot up, your replacement might be failed.

Try downgrade to vscode 1.45.x #91 (comment) and do replacement
1.45.1 should be the last compatible vscode version with this extension for macOS

Sorry, I'm busy now, but I will fix this in the future

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

No branches or pull requests

2 participants