mirror of
https://github.com/koel/koel.git
synced 2026-04-25 08:46:00 +03:00
[GH-ISSUE #700] Unable to enter after login #494
Labels
No labels
Authentication
Dependencies
Documentation
Feature Request
Flac
Help Wanted
Installation/Setup
Integration
Mobile
PR Welcome
Pending Release
Performance
Playlist
S3
Search
Sync
[Pri] Low
[Pri] Normal
[Status] Keep Open
[Status] Needs Author Reply
[Status] Needs Review
[Status] Stale
[Status] Will Implement
[Type] Blessed
[Type] Bug
[Type] Duplicate
[Type] Enhancement
[Type] Help Request
[Type] Question
[Type] Task
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/koel-koel#494
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @daniele-athome on GitHub (Dec 18, 2017).
Original GitHub issue: https://github.com/koel/koel/issues/700
Just upgraded to v3.7.0 (all worked in previous version), I am unable to login. More precisely, I can log in but after receiving songs data through
/api/data(received correctly, at least as in correct JSON data and 200 OK response) the browser shows the login screen again.More in depth with debugging (minified!) JavaScript using Chrome dev tools, I discovered that an exception is thrown while handling the response from
/api/data:My library is currently empty because I thought that could be an issue (I wanted to do a new music scan from scratch, so I truncated tables songs, artists, albums, playlists, playlist_song, interactions). Before I did that, the exception was thrown by another piece of code (unfortunately I can't reproduce that because I don't have a backup of my database before I did the truncates), specifically in the
setupArtistfunction, complaining about a call to functioneveryon an undefined object in a function calledgetImage(which I couldn't find in the repo, maybe it's dinamically generated or a result of the minification). I'll write an example of the call stack as I remember it:If you think you can use it to properly debug and fix the issue, I could setup a debug version of Koel on my notebook and try to debug that with non-minified Javascript.
@phanan commented on GitHub (Dec 18, 2017):
Truncating the database can be an issue, as some of the ID's (Unknown Artist/Album's for example) are hard-coded. That said, I'm not sure why a javascript error should be thrown – been using my own installation of Koel with no problems.
@daniele-athome commented on GitHub (Dec 18, 2017):
Thanks. I'll try a fresh installation on my server and - if the problem still occurs - I'll setup a development installation to properly debug it.
@daniele-athome commented on GitHub (Dec 19, 2017):
Turned out it was an old version of yarn. You should specify the minimum required version of NodeJS and Yarn in your docs (no, "latest version" is not a version :P)
Updating and reinstalling everything from scratch (using Yarn 1.3.2) solved the issue.
EDIT: the release note might also use an indication of the versions of the base tools that it needs.