e4c6 / eksi_unofficial_api

Ekşisözlük.com Unofficial API docs & client
MIT License
35 stars 7 forks source link

API returns 500 internal server error while logging in #19

Open gurkein opened 1 year ago

gurkein commented 1 year ago

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 commented 1 year ago

@e4c6 can you reproduce the problem?

gurkein commented 1 year ago

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

muratishik commented 1 year ago

can you share the solution with us

e4c6 commented 1 year ago

@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.

gurkein commented 1 year ago

@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 🙏🏻