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

Can get latest release #3227

Closed
2 tasks done
taciturnaxolotl opened this issue Nov 23, 2024 · 3 comments
Closed
2 tasks done

Can get latest release #3227

taciturnaxolotl opened this issue Nov 23, 2024 · 3 comments
Labels

Comments

@taciturnaxolotl
Copy link

πŸ” Have you checked Spicetify.app page for your issue?

  • I have checked the FAQ

πŸ” Is there already an issue for your problem?

  • I have checked older issues, open and closed

β„Ή 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:

res, err := http.Get("https://api.github.com/repos/spicetify/cli/releases/latest")

Running a curl also returns a valid JSON response.

πŸ“Έ Screenshots

No response

@taciturnaxolotl taciturnaxolotl added the πŸ› bug Something isn't working label Nov 23, 2024
@rxri
Copy link
Member

rxri commented Nov 23, 2024

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 rxri closed this as not planned Won't fix, can't repro, duplicate, stale Nov 23, 2024
@rxri
Copy link
Member

rxri commented Nov 23, 2024

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
Copy link
Author

ah. okay thnks!

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

No branches or pull requests

2 participants