ImAiiR / QobuzDownloaderX

Downloads streams directly from Qobuz
636 stars 113 forks source link

Couldn't obtain app info #116

Open TheM14 opened 2 years ago

TheM14 commented 2 years ago

Until yesterday, it works when I was login. But now I can't login and it shows "couldn't obtain app info".

lx30011 commented 2 years ago

Same here

schroederrt commented 2 years ago

I got the same. It seems that Qobuz may have made a change in the bundle.js which is used to determine the app secret and login.

I was able to review and identify that there was an issue identifying the initial seed.

If you can open your LoginForm-v2.cs file and change line 401 from this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier\):f.initialSeed\(\"(?.*?)\",window.utimezone.berlin\)").Groups; var bundleSeed = bundleLog2[1].Value;

to this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier\):d.initialSeed\(\"(?.*?)\",window.utimezone.berlin\)").Groups; var bundleSeed = bundleLog2[1].Value;

it should work again after a rebuild.

HotdogNoire commented 2 years ago

This does work!

DanDare67 commented 2 years ago

I wish I knew how to rebuild. I will have to wait for a new release.

Thanks all for giving me hope it is fixable.

schroederrt commented 2 years ago

I wish I knew how to rebuild. I will have to wait for a new release.

Thanks all for giving me hope it is fixable.

Don't you have to build this first to use it at all? I've not found a release with the executable, I've always had to build it.

DanDare67 commented 2 years ago

Don't you have to build this first to use it at all? I've not found a release with the executable, I've always had to build it.

On the Code page under Releases the zip file contains a EXE.

Would love to learn how to compile (right word?), but that is outside of my area of expertise. Seems like a useful skill, just never had the opportunity to learn it.

ImAiiR commented 2 years ago

I've been rewriting the program, I'll try to get it out soon. Fixes a lot of issues people have been having, just really haven't had much free time.

LuongThang007 commented 2 years ago

I got the same. It seems that Qobuz may have made a change in the bundle.js which is used to determine the app secret and login.

I was able to review and identify that there was an issue identifying the initial seed.

If you can open your LoginForm-v2.cs file and change line 401 from this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier):f.initialSeed("(?.*?)",window.utimezone.berlin)").Groups; var bundleSeed = bundleLog2[1].Value;

to this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier):d.initialSeed("(?.*?)",window.utimezone.berlin)").Groups; var bundleSeed = bundleLog2[1].Value;

it should work again after a rebuild.

Where can I find LoginForm-v2.cs file ?

linkthehylian commented 2 years ago

Here's the rebuild with the edits made from https://github.com/ImAiiR/QobuzDownloaderX/issues/116#issuecomment-1131959643 until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄 img

LuongThang007 commented 2 years ago

It worked! Thanks a lot!!

Vào Th 5, 19 thg 5, 2022 vào lúc 18:38 Andrew @.***> đã viết:

Here's the rebuild until the new release is out. QobuzDownloaderX.zip https://github.com/ImAiiR/QobuzDownloaderX/files/8735127/QobuzDownloaderX.zip

— Reply to this email directly, view it on GitHub https://github.com/ImAiiR/QobuzDownloaderX/issues/116#issuecomment-1132358668, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQT32K7A4VN7MOMJ5VQ4FPDVK3UHTANCNFSM5WMTUEKA . You are receiving this because you commented.Message ID: @.***>

DanDare67 commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄

Much appreciated. Thank you!

AntonioX22 commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄

Thank you! I am now getting a new error message, I'm afraid: Login Failed

System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__36.MoveNext()

schroederrt commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip Works again just like before. 😄

Thank you! I am now getting a new error message, I'm afraid: Login Failed

System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__36.MoveNext()

I think you may have the alternate login method selected. Try clicking the 'Login Normally?" text under the login button and then try to login again.

AntonioX22 commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip Works again just like before. 😄

Thank you! I am now getting a new error message, I'm afraid: Login Failed System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__36.MoveNext()

I think you may have the alternate login method selected. Try clicking the 'Login Normally?" text under the login button and then try to login again.

Thank you very much, it is working now! :)

linkthehylian commented 2 years ago

Thank you! I am now getting a new error message, I'm afraid: Login Failed System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__36.MoveNext()

Interesting, I was under the impression that the edited code would also fix the alternative way of logging in? I guess not.

It'll probably be fixed in the new release. Just login normally.

schroederrt commented 2 years ago

Interesting, I was under the impression that the edited code would also fix the alternative way of logging in? I guess not.

It'll probably be fixed in the new release. Just login normally.

I noticed that issue after I figured out the fix for the regular login (accidentally left the alternate logon mode on too)....but never investigated that one since I was able to login, and I've never used the alternate logon so no idea if it worked before or not.

I'm not the developer on this project...just trying to share what solved it for me as I poked around a bit until a new release can be made.

masontmorris commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄

This works perfectly for me, thank you so much!

q1554788327 commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄 img

It does works!!Thank you.

jwiggins1229 commented 2 years ago

I seriously had a mini panic attack, thanks for the quick patch!!

SerCub64 commented 2 years ago

У меня приложения не запускается а в место пароля выдаёт длинную строку. Скриншот 23-05-2022 102305

SerCub64 commented 2 years ago

Скриншот 23-05-2022 112112

Mikepshaz commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. 😄 img

Hello, Started facing login issues with the original exe (0.9.9.23) and got the following error in the log file. Tried login normally and with token ID.

System.FormatException: Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char startInputPtr, Int32 inputLength, Byte startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at QobuzDownloaderX.LoginFrm.getSecretBG_DoWork(Object sender, DoWorkEventArgs e)

Got the exe with the rebuild edits (#116), login proceeds with a brief message " App ID & secret Obtained" but then displays failed login with the following error in the log file: System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__35.MoveNext()

neilwilkes commented 2 years ago

Here's the rebuild with the edits made from #116 (comment) until the new release is out. QobuzDownloaderX.zip

Works again just like before. smile img

Many, Many thanks for the fixed build - it is indeed now working as it used to, ie flawlessly

RogDenBoop commented 2 years ago

Again, many thanks for a working build! Cheers!!

Richard8969 commented 2 years ago

Since yesterday, the latest release on 20th May cannot login. Can someone help to solve the new problem? Errorlog as below: System.NullReferenceException: Object reference not set to an instance of an object at QobuzDownloaderX.LoginFrm.d__35.MoveNext()

neilwilkes commented 2 years ago

Works okay here using the 'fixed & recompiled' build above. okay here

linkthehylian commented 2 years ago

To anyone else still having trouble logging in with the fixed build I provided, make sure you are logging in normally. This means entering your email and password.

If you're still having issues when attempting to login normally, I'll try and see if I can fix the alternate login method. But I can't promise anything. Hopefully the main dev will have a new version out soon.

eozen81 commented 2 years ago

To anyone else still having trouble logging in with the fixed build I provided, make sure you are logging in normally. This means entering your email and password.

If you're still having issues when attempting to login normally, I'll try and see if I can fix the alternate login method. But I can't promise anything. Hopefully the main dev will have a new version out soon.

Unfortunately I have the login issue even though I try with my "user and password"

2022-09-22 12_17_58-Window

linkthehylian commented 2 years ago

@eozen81 Looked more into the issue you're having, it looks like that error message is thrown if obtaining the bundle.js failed according to the code. Not really sure how that's even happening.

Can you ensure that you're able to connect to https://play.qobuz.com just fine and that you're logged in as well? Since that's where it's grabbing the data from.

If so, if you have any sort of VPN, try it and see if anything changes.

eozen81 commented 2 years ago

@eozen81 Looked more into the issue you're having, it looks like that error message is thrown if obtaining the bundle.js failed according to the code. Not really sure how that's even happening.

Can you ensure that you're able to connect to https://play.qobuz.com just fine and that you're logged in as well? Since that's where it's grabbing the data from.

If so, if you have any sort of VPN, try it and see if anything changes.

Thank you for your reply. But I can play without any problem on https://play.qobuz.com/ whereas I keep getting the error from QobuzDownloaderX. Yet, I installed a VPN just to understand if the problem might be related with VPN, but no, I connected VPN to a different country, checked if I can connect to https://play.qobuz.com and I could then I tried QobuzDownloaderX but the same login issue occurs. Below are the logs:

System.FormatException: Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char* startInputPtr, Int32 inputLength, Byte* startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at QobuzDownloaderX.LoginFrm.getSecretBG_DoWork(Object sender, DoWorkEventArgs e)

linkthehylian commented 2 years ago

Below are the logs:

Thank you!

But I can play without any problem on https://play.qobuz.com/ whereas I keep getting the error from QobuzDownloaderX. Yet, I installed a VPN just to understand if the problem might be related with VPN, but no, I connected VPN to a different country, checked if I can connect to https://play.qobuz.com/ and I could then I tried QobuzDownloaderX but the same login issue occurs.

Noted. Have you tried re-entering your credentials since you've been getting that error? I noticed that the app converts passwords into Base64 (which is normal behavior, I'm still able to login) according to the log you've provided. Let me know if anything changes.

eozen81 commented 2 years ago

Below are the logs:

Thank you!

But I can play without any problem on https://play.qobuz.com/ whereas I keep getting the error from QobuzDownloaderX. Yet, I installed a VPN just to understand if the problem might be related with VPN, but no, I connected VPN to a different country, checked if I can connect to https://play.qobuz.com/ and I could then I tried QobuzDownloaderX but the same login issue occurs.

Noted. Have you tried re-entering your credentials since you've been getting that error? I noticed that the app converts passwords into Base64 (which is normal behavior, I'm still able to login) according to the log you've provided. Let me know if anything changes.

I always type my user ID and password manually everytime I try, but unfortunately, it does NOT work. I also tried token log in by following up here: https://github.com/ImAiiR/QobuzDownloaderX/wiki/Logging-In-(The-Alternate-Way) but the same, It did NOT work either.

linkthehylian commented 2 years ago

Interesting. I'm gonna be honest, but I'm not really sure where the problem lies here since it's not my app lol.

Hey dude @ImAiiR, I know you've been busy but it's been four months since you were last active and you have a lot of users here with active Qobuz subscriptions relying on your app. Most of who aren't able to login either.

Not trying to rush you as I'm a busy guy myself, but if you could get out that new version soon. We'd appreciate that a lot, myself included.

I was lucky enough to stumble upon your app and find a comment to fix one major issue that I was having myself and release a temporary build. It would be nice if you could do your part next. :smile:

Honkarar commented 1 year ago

Thanks, I gradually put this program on hold a few months ago because I couldn't log in, then I grabbed it with allvosoft, but recently I found out that it can only grab 30 second clips, so I came here to see if it has been fixed problem. This software does work after modification. thanks very much.

Tecko71 commented 1 year ago

This fix works for me too

Rochambeaux commented 1 year ago

Setup a new laptop last night and this process worked. Came back to my desktop and tried, no joy.

This error message:

System.FormatException: Invalid length for a Base-64 char array or string. at System.Convert.FromBase64_Decode(Char startInputPtr, Int32 inputLength, Byte startDestPtr, Int32 destLength) at System.Convert.FromBase64CharPtr(Char* inputPtr, Int32 inputLength) at System.Convert.FromBase64String(String s) at QobuzDownloaderX.LoginFrm.getSecretBG_DoWork(Object sender, DoWorkEventArgs e)

jimlee2048 commented 1 year ago

I got the same. It seems that Qobuz may have made a change in the bundle.js which is used to determine the app secret and login.

I was able to review and identify that there was an issue identifying the initial seed.

If you can open your LoginForm-v2.cs file and change line 401 from this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier):f.initialSeed("(?.*?)",window.utimezone.berlin)").Groups; var bundleSeed = bundleLog2[1].Value;

to this:

var bundleLog2 = Regex.Match(getBundleRequest, "window.utimezone.algier):d.initialSeed("(?.*?)",window.utimezone.berlin)").Groups; var bundleSeed = bundleLog2[1].Value;

it should work again after a rebuild.

For anyone who want to apply this patched yourself. I make a fork that provides an easy way to build executables using Github Actions.

There is also patched program provided, which is build from my action run.

jimlee2002/QobuzDownloaderX

linkthehylian commented 1 year ago

@jimlee2002 Great work! Hopefully your patched version fixes the login issue that users were having with my rebuild I provided a couple months back.

Thank you!

roiosdonos commented 1 year ago

It doesn't work for me... I have following error now:

System.NullReferenceException: Object reference not set to an instance of an object. at QobuzDownloaderX.LoginFrm.d__35.MoveNext() in D:\a\QobuzDownloaderX\QobuzDownloaderX\QobuzDownloaderX\LoginForm-v2.cs:line 469

What should I do?

Thanks!