Eltaurus-Lt / CourseDump2022

Google Chrome extension to download Memrise courses as csv files
97 stars 8 forks source link

Error in Loading Extension #30

Open b34ni opened 1 year ago

b34ni commented 1 year ago

When I attempt to load the extension, I receive an error with this output:

Manifest is not valid JSON. Line: 8, column: 1, Unexpected token.

This is line 8:

<!DOCTYPE html>

Eltaurus-Lt commented 1 year ago

I tried to reinstall the extension from scratch but couldn't reproduce the issue. Can you provide more details regarding your problem? What is your version of Chrome? How exactly do you load the extension and at which point and where the error occurs? Can you try to disable all other extensions that you have installed, restart the browser, and try to add our extension again?

b34ni commented 1 year ago

Running: Version 114.0.5735.90 (Official Build) (x86_64)

I disabled all the extensions that I was running and I still receive the same error message. I'm not sure why.

When I load the extension with the Load Unpacked button, it populates that error.

On Fri, Jun 9, 2023 at 4:04 PM Eltaurus-Lt @.***> wrote:

I tried to reinstall the extension from scratch but couldn't reproduce the issue. Can you provide more details regarding your problem? What is your version of Chrome? How exactly do you load the extension and at which point and where the error occurs? Can you try to disable all other extensions that you have installed, restart the browser, and try to add our extension again?

— Reply to this email directly, view it on GitHub https://github.com/Eltaurus-Lt/CourseDump2022/issues/30#issuecomment-1585224346, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQL25OAXVUCMIIJW5DYAXEDXKOTWFANCNFSM6AAAAAAZA6JNTQ . You are receiving this because you authored the thread.Message ID: @.***>

Eltaurus-Lt commented 1 year ago

I wanted to test out your exact version of Chrome, but Google does not provide a full history of older Chrome versions for security reasons, and this version is not present in any user-curated archives I've found either. While it is unlikely to be the cause of the problem - your Chrome version is not that old and the extension worked on much older ones without issues - I would still suggest updating to the latest one and trying it out again.

Since the error indicates that the problem is with the manifest file, you can also try installing an older version of the extension. This is the last version before the manifest was updated to the current v3 standard: https://github.com/Eltaurus-Lt/CourseDump2022/tree/355d5503f81f3a2f62a101859b78c179cd91db5c It doesn't have all the latest functionality, but might still be enough for your purposes. At the very least this might provide some leads to the source of the issue.

Also, what OS are you on?

gcflames5 commented 1 year ago

Seeing this too on Version 114.0.5735.199 (Official Build) (64-bit)

On a whim I started removing things from the manifest and after i got rid of

  "icons": {
    "16": "icon.png",
    "32": "icon.png",
    "48": "icon.png",
    "128": "icon.png"
  },

It worked perfectly (well, minus the icons haha).

Awesome extension, thanks for making and sharing!

Eltaurus-Lt commented 1 year ago

Thank you for the positive feedback and for the info.

Can you tell, what OS are you using? I've checked the manifest with several JSON validators already and none found any issues with the file. So my only guess right now is that the error might be caused by some differences in encoding or file path formats which may cause a file to be read incorrectly in some specific cases. Although I already tried installing the extension on Chrome in win10, win11, and iOS 13.4 and didn't encounter any problems there.

Roblexander commented 9 months ago

Hi Eltaurus,

I'm one of the people migrating from Memrise to Anki due to the recent business decisions taken by the Memrise team. Luckily I found your Add-On that has replaced the defunct Anki-Add-Ons. I want to thank you. I was able to save my courses including the extra columns and audio files. W/o your effort my data probably would have been lost.

There were some hiccups along the way. It seems that Memrise isn't build to handle the download of 5000+ words courses well. I had better results actually going into edit mode and starting the process from there. But all in all it worked very well.

Now that I've saved my personal courses, I tried to save the course that I learn w/o being a contributor. Unfortunately, this seems to be broken. Must be a very recent change to Memrise 'cause it still worked a couple of days ago. When I initialize the process on a course page like https://app.memrise.com/community/course/122116/learn-spanish-conjugation/, this error message pops up:

Please use the extension on an open Memrise course tab

Care to have a look on it? This would be very much appreciated. Or am I doing something wrong (can't be, can it?)

Greetings

Eltaurus-Lt commented 9 months ago

This is today's Memrise update, they changed the format of their urls again. But I already uploaded the fix, so if you download the current version of the extension, it should be working again. (also I would appreciate it if you opened a new issue instead of commenting on the unrelated open one)