eksi_unofficial_api icon indicating copy to clipboard operation
eksi_unofficial_api copied to clipboard

API returns 500 internal server error while logging in

Open gurkein opened this issue 3 years ago • 5 comments

Since yesterday API v2 login endpoints gives HTTP error 500 (Internal server error)

To reproduce:

from eksisozluk.EksiSozluk import EksiApi

client = EksiApi(username=<USERNAME>, password=<PASSWORD>)  # also gives error for anonymous login

gurkein avatar Dec 28 '22 14:12 gurkein

@e4c6 can you reproduce the problem?

gurkein avatar Jan 17 '23 15:01 gurkein

I've solved my problem by switching to another library. Thank you for your interest.

gurkein avatar Jan 26 '23 15:01 gurkein

can you share the solution with us

muratishik avatar Jan 26 '23 16:01 muratishik

@gurkein Problem can be reproduced. I managed to MITM api calls but login seems to be avoiding proxy. Need to reverse the app further to pinpoint new client credentials. Will look into this in the weekend.

e4c6 avatar Feb 09 '23 06:02 e4c6

@muratishik Since the library is in a private repository, I do not have the rights to share the solution. Sorry for that.

@e4c6 As far as I understand, the required api access token in the login process is short-lived, and calculated by the mobile app on the fly by encrypting some initial credentials and server time via some certificate. I hope this shed some lights upon reversing the process. Best luck 🙏🏻

gurkein avatar Feb 09 '23 14:02 gurkein