lucasasselli / garmin-podcasts

Garmin Podcasts is a Garmin Connect IQ podcast app powered by Podcast Index. No external service or subscription required: all you need is you watch!
GNU General Public License v3.0
75 stars 16 forks source link

`List error -402` when trying to sync (with gpodder) #9

Closed alexanderadam closed 3 years ago

alexanderadam commented 3 years ago

Somehow I still cannot sync. I'm still trying to use gpodder but whenever I want to sync I'm getting List error -402.

Any advice?

lucasasselli commented 3 years ago

Hi Alexander,

This is (unfortunately) a memory issue. How many podcasts are you subscribed to on gPodder?

alexanderadam commented 3 years ago

Hi Luca,

This is (unfortunately) a memory issue.

Would it be possible to change the error message in that case? Something like Unfortunately you subscribed to too many feeds. Try to decrease the amount of feeds and sync again.

How many podcasts are you subscribed to on gPodder?

It depends. gPodder has feeds per device but also global feeds.

I thought I should be subscribed to some on the watch as well but gpodder claims that I don't have any podcasts subscribed on this device.

![gPodder error: You don't have any podcasts subscribed on this device. ](https://user-images.githubusercontent.com/372620/113438064-1b9e7f80-93e8-11eb-8ab2-a1a82c702be5.png)

So if Garmin Podcasts is only looking for the device feeds it should be something like five or so (or none if the gPodder UI is correct). But it would really be a lot if Garmin Podcasts is looking for all feeds.

EDIT: I just checked it and https://gpodder.net/subscriptions/%{user}/%{device}.opml is indeed empty! It looks like this:

<?xml version="1.0" encoding="utf-8"?>
<opml version="2.0">
  <head>
    <title>%{user}'s Subscription List</title>
    <dateCreated>Fri, 02 Apr 2021 17:23:38 +0000</dateCreated>
  </head>
  <body/>
</opml>
lucasasselli commented 3 years ago

Hi Alexander,

Thank you for going the extra mile here with the gPodder response!

The most recent version of the app doesn't use the device ID anymore, and just download all the subscriptions. I can see that it was a short sighted decision on my part. I am restoring the old behavior, making the device ID optional.

lucasasselli commented 3 years ago

Version 3.0.2 restored the device ID field and has more descriptive error message. Let me know if it works!

alexanderadam commented 3 years ago

Thank you Luca! Now I'm not getting List error -402 anymore but the Sync button seem to be non-functional now. It's becoming grey (probably the selected state) but nothing else happens.

Should I open another issue for this?

lucasasselli commented 3 years ago

Let's keep this one open, I was just able to recreate the issue. I'll upload a fix tonight or tomorrow!

lucasasselli commented 3 years ago

Fixed in version 3.0.3.

alexanderadam commented 3 years ago

Fixed in version 3.0.3.

My phone says that I have now have 3.0.3 installed but the Sync button still doesn't work for me. 🤷

lucasasselli commented 3 years ago

Can you send me the crash dump?

If you connect your watch to a PC/Mac under /GARMIN/APPS/LOGS you will find a file called CIQ_LOG.yml.

alexanderadam commented 3 years ago

I can but I'm unsure whether this will help you:

---
Error: Unhandled Exception
Time: 2021-04-07T16:36:13Z
Part-Number: 006-B3113-00
Firmware-Version: '6.20'
Language-Code: eng
ConnectIQ-Version: 3.2.5
Store-Id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Store-Version: 15
Filename: AB3L3118
Appname: Podcasts
Stack: 
  - pc: 0x10004250
  - pc: 0x10000de1
  - pc: 0x100004fb
  - pc: 0x10002f17
  - pc: 0x10002dd0
lucasasselli commented 3 years ago

Just uploaded 3.0.4, hopefully this should be okay! Keeping my fingers crossed! If the issue is still there let me know!

alexanderadam commented 3 years ago

I tried it and it is in the Loading spinner screen since roughly an hour. Is there any reliable way to see whether it is actually working or whether it is stuck somewhere?

lucasasselli commented 3 years ago

I think the timeout is something like 3 minutes. I don't see this issue on my side. Probably I can try an debug it with another crash dump. Sorry for the trouble. 😢

alexanderadam commented 3 years ago

I think the timeout is something like 3 minutes.

I stopped it after two hours.

Probably I can try an debug it with another crash dump.


---
Error: Unhandled Exception
Time: 2021-04-08T16:14:18Z
Part-Number: 006-B3113-00
Firmware-Version: '6.20'
Language-Code: eng
ConnectIQ-Version: 3.2.5
Store-Id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Store-Version: 16
Filename: AB3L3118
Appname: Podcasts
Stack: 
  - pc: 0x100010a3

So are you saying that this stack trace is useful for you? 😮

Sorry for the trouble. :cry:

No worries. IMHO you are a helpful and very responsive maintainer. :+1:

lucasasselli commented 3 years ago

Hi Alexander, the issue should be fixed in version 3.0.7! I was able to reproduce the bug on my device. Please let me know if you see any other issue!

alexanderadam commented 3 years ago

Luca, you're awesome! Now it's working! Thank you so much!

alexanderadam commented 3 years ago

Sorry. I was wrong. After selecting the button I can select some episodes. When I go back, I'm getting the message whether I want to sync (Do you want to sync?). If I confirm, I'm getting the endless sync dialogue again (Syncing but nothing happens for ages).

Maybe it would help to make the Syncing dialogue a bit more verbose and show what's currently happening?

lucasasselli commented 3 years ago

Hi Alexander, other users are confirming that 3.1.0 fixed all issues for manual sync. Can you confirm it?

alexanderadam commented 3 years ago

Unfortunately not.

Error! -1005, -1005, -1005, -1005
PS: This time there's no CIQ_LOG.yml, only a CIQ_LOG.BAK (which contains a data from a different app - GearMin 2.0 — click to expand). ```yaml --- Error: Symbol Not Found Error Details: "Could not find symbol '008000a7'" Time: 2021-04-11T21:30:00Z Part-Number: 006-B3113-00 Firmware-Version: '6.20' Language-Code: eng ConnectIQ-Version: 3.2.5 Store-Id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx Store-Version: 73 Filename: ABA80808 Appname: GearMin 2.0 Stack: - pc: 0x100025d1 - pc: 0x10002403 - pc: 0x10000e8e ```
lucasasselli commented 3 years ago

Hi Alexander, the dump you sent is not from Podcast, but from another app. Regardless, the error you see is due to an unexpected format from the podcast provider. What podcast are you downloading?

alexanderadam commented 3 years ago

Hi Alexander, the dump you sent is not from Podcast, but from another app.

Yes, this is what I wrote in the sentence just before the dump. 😉

Regardless, the error you see is due to an unexpected format from the podcast provider.

In this case a better error message for this would be great, too

What podcast are you downloading?

It doesn't seem to matter in my case. I tried downloading episodes from Nusschale, requestforcomments and minkorrekt. Feed data is still coming from gpodder. I'm selecting Sync, then some episodes. Afterwards I go back and let it download. The status circle grows until it should reach 100% and then this error appears.

So far I wasn't able to find any working episode.

lucasasselli commented 3 years ago

I filed a separate issue. #11