spicetify / cli

Command-line tool to customize Spotify client. Supports Windows, MacOS, and Linux.
https://spicetify.app
GNU Lesser General Public License v2.1
18.79k stars 735 forks source link

Can get latest release #3227

Closed taciturnaxolotl closed 6 days ago

taciturnaxolotl commented 6 days ago

🔍 Have you checked Spicetify.app page for your issue?

🔍 Is there already an issue for your problem?

ℹ Environment / Computer Info

- Spotify version: 1.2.48.405.gf2c48e6f
- Spicetify version: v2.36.14

📝 Description

Run spicetify restore backup apply

get error:

warning Cannot fetch version tag for CSS mappings
err: Get "https://api.github.com/repos/spicetify/cli/releases/latest": dial tcp: lookup api.github.com on [::1]:53: read udp [::1]:43792->[::1]:53: read: connection refused
info Fetching remote CSS map for newer compatible tag version: 2.36.14
info Cannot fetch remote CSS map. Using local CSS map instead...
panic: runtime error: index out of range [0] with length 0

goroutine 1 [running]:
github.com/spicetify/cli/src/preprocess.exposeAPIs_main({0xc001d60000, 0x2d2941})
        github.com/spicetify/cli/src/preprocess/preprocess.go:560 +0x573
github.com/spicetify/cli/src/preprocess.Start.func1.1({0xc001a8c000, 0x2d1f7f})
        github.com/spicetify/cli/src/preprocess/preprocess.go:103 +0x192
github.com/spicetify/cli/src/utils.ModifyFile({0xc00027d740, 0x2f}, 0xc0000e59e8)
        github.com/spicetify/cli/src/utils/utils.go:221 +0xbc
github.com/spicetify/cli/src/preprocess.Start.func1({0xc00027d740, 0x2f}, {0x7c4928?, 0xc0001b2000?}, {0x0?, 0x0?})
        github.com/spicetify/cli/src/preprocess/preprocess.go:91 +0x145
path/filepath.walk({0xc00027d740, 0x2f}, {0x7c4928, 0xc0001b2000}, 0xc0000e5ca8)
        path/filepath/path.go:478 +0x105
path/filepath.walk({0xc0001c55f0, 0x27}, {0x7c4928, 0xc0001b3860}, 0xc0000dfca8)
        path/filepath/path.go:502 +0x254
path/filepath.Walk({0xc0001c55f0, 0x27}, 0xc0000e3ca8)
        path/filepath/path.go:560 +0x66
github.com/spicetify/cli/src/preprocess.Start({0x7bfdd8, 0x7}, {0xc00002e3f0?, 0x22?}, {0x0?, 0xc3?, 0x1?, 0x0?})
        github.com/spicetify/cli/src/preprocess/preprocess.go:85 +0x2c6
github.com/spicetify/cli/src/cmd.Backup({0x7bfdd8, 0x7})
        github.com/spicetify/cli/src/cmd/backup.go:68 +0x3fc
main.main()
        github.com/spicetify/cli/spicetify.go:263 +0xaf1

I can get the latest release from that URL when opened with my browser, oddly.

The line likely causing this is just a simple get: https://github.com/spicetify/cli/blob/e3ec2ecc61e04f248ca185141eb7977ce3c44adb/src/utils/vcs.go#L16

Running a curl also returns a valid JSON response.

📸 Screenshots

No response

rxri commented 6 days ago

Install latest version with install script from our docs and did you try running spicetify upgrade to update spicetify? The error you're showing is because you're trying to run old version of spicetify on newer unsupported spotify version by it

rxri commented 6 days ago

oh and that tcp error is because you have api.github.com redirected to localhost [::1]. Fault is on your end and network/hosts file idk image

taciturnaxolotl commented 6 days ago

ah. okay thnks!