# Mopidy mobile Error creating playlists

**URL:** <https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012>\
**Category:** Misc\
**Created:** [December 12, 2015, 9:08am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012 "2015-12-12T09:08:49Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![r100](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@r100](https://discourse.mopidy.com/u/r100)\
**Post date:** [December 12, 2015, 9:08am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/1 "2015-12-12T09:08:50Z")

</div>

Hello together,

mopidy is running fine, but when I try to create a playlist in mobile fronted I get the error message “Connection Error” " Websocket closed"

The playlist is created but empty

mopidy status shows  
Dez 12 09:56:51 musik mopidy[24698]: SSLError: (“bad handshake: Error([(‘SSL routines’, ‘SSL3\_GET\_SERVER\_CERTIFICATE’, ‘certificate verify failed’)],)”,)  
Dez 12 09:57:03 musik mopidy[24698]: WARNING Das Element kann diesen Datenstrom nicht verarbeiten. Bitte schicken Sie einen Fehlerbericht.  
Dez 12 09:57:38 musik mopidy[24698]: INFO Created playlist m3u:Weihnachtslieder.m3u  
Dez 12 09:57:38 musik mopidy[24698]: ERROR WebSocket request error: **init** () got an unexpected keyword argument "$$hashKey"  
Dez 12 09:57:45 musik mopidy[24698]: INFO Created playlist m3u:Weihnachtslieder.m3u  
Dez 12 09:57:45 musik mopidy[24698]: ERROR WebSocket request error: **init** () got an unexpected keyword argument "$$hashKey"  
Dez 12 09:59:14 musik mopidy[24698]: INFO Created playlist m3u:Weihnacht.m3u  
Dez 12 09:59:14 musik mopidy[24698]: ERROR WebSocket request error: **init** () got an unexpected keyword argument "$$hashKey"  
Dez 12 09:59:14 musik mopidy[24698]: ERROR WebSocket request error:  
Dez 12 10:01:16 musik mopidy[24698]: WARNING Das Element kann diesen Datenstrom nicht verarbeiten. Bitte schicken Sie einen Fehlerbericht.

Any Ideas?

Best regards, Stefan

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [December 12, 2015, 9:35am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/2 "2015-12-12T09:35:56Z")

</div>

> [@r100](#):
>
> ERROR WebSocket request error: init() got an unexpected keyword argument “$$hashKey”

This looks like a bug in how Mopidy-Mobile calls `init()`. Please file a bug at [GitHub - tkem/mopidy-mobile: Mopidy Web client extension and hybrid app for mobile devices](https://github.com/tkem/mopidy-mobile)

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [December 12, 2015, 9:51am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/3 "2015-12-12T09:51:16Z")

</div>

@jodal: `init()`? What `init()`? Is this some internal of Mopidy’s WebSocket/JSON-RPC support?  
Sorry, confused 😉

---

<div class="post-metadata">

**Author:** ![jodal](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/jodal/32/2564_2.png) [@jodal](https://discourse.mopidy.com/u/jodal)\
**Post date:** [December 12, 2015, 10:33am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/4 "2015-12-12T10:33:42Z")

</div>

Not sure, but $$hashKey sounds like a JS framework key in the data model  
sent to Mopidy.

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [December 12, 2015, 10:39am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/5 "2015-12-12T10:39:27Z")

</div>

Yeah, that’s something angular.js adds to model objects, so you have to be careful to use `angular.copy(obj)` when passing these to mopidy.js. Which I _thought_ I do for any Mopidy API requests. So that `init()` puzzles me, since that doesn’t sound like any API method.

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [December 12, 2015, 11:03am UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/6 "2015-12-12T11:03:33Z")

</div>

@r100: I already created an issue for this: [https://github.com/tkem/mopidy-mobile/issues/153](https://github.com/tkem/mopidy-mobile/issues/153)  
Will be fixed ASAP in the next release.

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [December 12, 2015, 3:32pm UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/7 "2015-12-12T15:32:34Z")

</div>

@jodal: Looks like the forum software turned ` __init__ ` into **init** 😉

---

<div class="post-metadata">

**Author:** ![tkem](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.mopidy.com/tkem/32/22_2.png) [@tkem](https://discourse.mopidy.com/u/tkem)\
**Post date:** [December 12, 2015, 3:47pm UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/8 "2015-12-12T15:47:03Z")

</div>

@r100: This should be fixed with Mopidy Mobile v1.6.4, which is available from PyPi as of now. The Android app should be available from the Google Play Store within a couple of days, too.

Hope this helps you get your “Weihnachtslieder.m3u” finished in time 😉

---

<div class="post-metadata">

**Author:** ![r100](https://avatars.discourse-cdn.com/v4/letter/r/7c8e57/32.png) [@r100](https://discourse.mopidy.com/u/r100)\
**Post date:** [December 12, 2015, 5:46pm UTC](https://discourse.mopidy.com/t/mopidy-mobile-error-creating-playlists/1012/9 "2015-12-12T17:46:21Z")

</div>

Hey guys,

thx everybody. You are great! Its working perfect now.

Best regards,  
Stefan
