kobo-book-downloader icon indicating copy to clipboard operation
kobo-book-downloader copied to clipboard

ERROR: Authenticated user URL can't be found. The page format might have changed.

Open jlangeveld opened this issue 5 years ago • 15 comments

After solving the Captcha during login and copy-pasting the resulting response, the script seems to hit an updated page

jlangeveld avatar Jun 07 '19 11:06 jlangeveld

I can confirm this bug. @TnS-hun

ghost avatar Jul 19 '19 03:07 ghost

I can confirm is DOES work. No issue logging in and authenticate.

jmvermeulen avatar Sep 27 '19 07:09 jmvermeulen

I think I have found the problem (but I am unable to solve it) - the script does not work if you are using Rakuten ID (楽天ID).

Rakuten ID is not the same as the "Rakuten Kobo" login method. If you created your account on https://www.kobo.com, then this script should work (since the "Rakuten Kobo" login method is used). If you use https://books.rakuten.co.jp/e-book/ (which sells e-books written in Japanese), then you have a Rakuten ID.

ghost avatar Sep 27 '19 14:09 ghost

Yeah, that would be my problem too. I have a bol.com account - a reseller in the Netherlands.

jlangeveld avatar Sep 27 '19 18:09 jlangeveld

By the way, while changing from Affiliate = "Kobo" to Affiliate = "Rakuten" can avoid the Authenticated user URL can't be found error (i.e. a kobo://UserAuthenticated response is received), it gives requests.exceptions.HTTPError: 500 Server Error: Internal Server Error for url: https://storeapi.kobo.com/v1/auth/device instead.

Maybe there are some more parameters that have to be changed if another login provider is used?

ghost avatar Sep 28 '19 12:09 ghost

I think this can be fixed easily. Create a new Kobo account (without a external login provider). In the user profile page you can link it to another account. Choose your existing with books.

Now you can authenticate with Kobo credentials on you existing account. I tried it, it works :-)

jmvermeulen avatar Sep 29 '19 10:09 jmvermeulen

I'm having a similar CAPTCHA problem.

after i paste it into terminal i get ERROR: Can't find the workflow ID in the login form. The page format might have changed.

I originally signed up and used Google log-in. I tried creating a new account without google log-in, and then linked it to my existing account. Tested logging in through the site with new login, it works, and my purchase history is there. However, still getting the error in terminal after pasting the code after solving the captcha. Any ideas of what i might be doing wrong?

Captcha response: 03AOLTBLSMv1TQTypniy0SNxyQTND0k8URzOo1hgI7koanVaIwwScECELA5zDcPsOQD9l5R-Y-Q9DIS4pu8BpNFtkrPAJ_So99jqajTXUn8Pwe_ZTTaDoKGhfrsSkNQGYdk0zyN1D5SsboyCNE18QhLFbTHFE2qy6DSushUt7AYdZpaoWHv6w5yUZznrqBe_6a017-G5d9OSj-EKJpb2T15aVw2PAneajzGzZ2LZ15vCINMub4ElYzsed6-zofwMVAKiXh981GPRX-ulV0hkJhDxoRErV3rPcfiQPG3vkk13iHbP_0bUawxVc90mDG1cAwhywLhvXhoZWIh5-H91SZoRpFqSE-pnZIOV2T-QqgbLqXm43aUaE3xojjE3aqmVtpnNTYbhIbRZ5u56JONEaeCDVKC-aVRPPTnK-pLku9EU6CQLN0oP7jjsFJjL1cpfFlPMoDxfx9YJezD0h7WsIHevM8g8oVkhXWREHY6fJb2WS7g3BZZy9T2NZ_GsHop75-A6cduQKbmm5m3osw88HeME1FBXzUMmeibGeXkr7IPiAc_QjbuQERJyDMilRZYU6smFKtrOQTCDTv

ERROR: Can't find the workflow ID in the login form. The page format might have changed.

mintgriff avatar Dec 08 '19 01:12 mintgriff

Can confirm I received this error as well. I use a Rakuten (kobo.com) login and after entering the code from the captcha, I cannot move forward.

shelaffs avatar Dec 28 '19 04:12 shelaffs

I had this issue as well.

I took a look at the page it's trying to parse the workflow ID out of, and happened to notice it's always the same string, but it's no longer autopopulated in the form this script wants it in.

I modified Kobo.py:

		# match = re.search( r""" name="LogInModel.WorkflowId" type="hidden" value="([^"]+)" />""", htmlResponse )
		# if match is None:
		# 	raise KoboException( "Can't find the workflow ID in the login form. The page format might have changed." )
		# workflowId = html.unescape( match.group( 1 ) )
		workflowId = '67af1c98-1a87-4144-8a1f-bae9379477f1'

And after this, auth succeeded.

I'll try to come up with a more solid workaround soon.

subdavis avatar Jan 12 '20 00:01 subdavis

For anyone still experiencing this issue, you can use my fixed fork @ https://github.com/subdavis/kobo-book-downloader until the change is merged to master :+1:

subdavis avatar Jan 12 '20 02:01 subdavis

I think this can be fixed easily. Create a new Kobo account (without a external login provider). In the user profile page you can link it to another account. Choose your existing with books.

Now you can authenticate with Kobo credentials on you existing account. I tried it, it works :-)

I can confirm that this workaround works, thanks

jlangeveld avatar Jan 12 '20 16:01 jlangeveld

@jlangeveld please repoen this issue. It's still a bug that needs to be fixed, and the maintainer needs to merge my pull request.

Glad this fixed it for you.

subdavis avatar Jan 12 '20 22:01 subdavis

Reopened by request

jlangeveld avatar Jan 13 '20 06:01 jlangeveld

This repository has been abandoned. I have forked the project at https://github.com/subdavis/kobo-book-downloader - please give that project a try and open an issue there if you have trouble.

It adds some new features:

  • multi-user support; fetch books for multiple accounts.
  • web interface; adds new browser gui (with flask)
  • docker image
  • pypi package

Please don't reply to this issue, open an issue on my fork instead

subdavis avatar Apr 01 '20 00:04 subdavis

@subdavis I've got your fork running, great work! Your fork's repo doesn't have Issues activated...

Also, the workaround that was described above is still needed (and it still works great), so perhaps you could describe it in the Readme...

jlangeveld avatar Apr 01 '20 08:04 jlangeveld