question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

i.toLowerCase is not a function crashes album view

See original GitHub issue

Describe the bug Recently i started seeing this error, which crashed the album view for me:

TypeError: i.toLowerCase is not a function
    at VM33 app.min.js:1
    at Array.sort (<anonymous>)
    at Object.t.sortItems (VM33 app.min.js:1)
    at t.value (VM33 app.min.js:125)
    at t.value (VM33 app.min.js:125)
    at Pi (VM33 app.min.js:81)
    at Ci (VM33 app.min.js:81)
    at Mi (VM33 app.min.js:81)
    at Wo (VM33 app.min.js:81)
    at Vo (VM33 app.min.js:81)

To Reproduce Not sure, but it could be a missing field or null value in the album list. Here’s the list I get back from spotify https://gist.github.com/MichaelRuhwedel/92003a9208289a281dbcb54819d06e49/raw/fdd0f04553c6acaa061150540d5aaa2085fe2d20/error-response

Environment details:

  • Browser: chromium 74.0.3729.108
  • Iris version: 3.37.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
jaedbcommented, May 18, 2019

Can you try Settings > Reset all settings? I think what’s happened is your sort is set to an invalid value (perhaps due to an earlier version). When sorting albums by artist, running _store.getState().ui.library_albums_sort should return artists.first.name instead of artists.

0reactions
MichaelRuhwedelcommented, May 20, 2019

That did the trick…thank you very much for the support!

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeError: toLowerCase is not a function in JavaScript
The "toLowerCase is not a function" error occurs when we call the toLowerCase() method on a value that is not a string. To...
Read more >
javascript - .toLowerCase not working, replacement function?
The .toLowerCase() function only exists on strings. You can call .toString() on anything in JavaScript to get a string representation.
Read more >
"t.toLowerCase is not a function" when try and play a song in a ...
I will be working with @huangworld on this issue. A more precise description would be: Playing this song in the playlist will crash...
Read more >
HTML : ReactJS toLowerCase is not a function - YouTube
HTML : ReactJS toLowerCase is not a function [ Gift : Animated Search Engine : https://bit.ly/AnimSearch ] HTML : ReactJS toLowerCase is not...
Read more >
TypeError: error.toLowerCase is not a function
The "toLowerCase is not a function" error occurs when we call the toLowerCase() method on a value that is not a string.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found