Faces icon indicating copy to clipboard operation
Faces copied to clipboard

I am willing to find the new API URL.

Open kalmengr opened this issue 5 years ago • 13 comments

Hey. Thanks for the awesome library. as of July 20, 2019, The API will return an image with a layer on top of it saying you need to update. I have a rooted device (if that matters). I tried capturing packets but it seems TCP stream is not readable. I am totally willing to find the new API URL. I only need to know how it was done till now. Any information on how to get the URL is appreciated

kalmengr avatar Jul 20 '19 20:07 kalmengr

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

th3sull1van avatar Jul 22 '19 20:07 th3sull1van

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

Tried with this URL but it raises following:

` error = post.headers['X-FaceApp-ErrorCode']`

any idea..??

yogesh-hackx avatar Jul 27 '19 10:07 yogesh-hackx

getting the same error

flo257 avatar Jul 27 '19 20:07 flo257

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

Tried with this URL but it raises following:

` error = post.headers['X-FaceApp-ErrorCode']`

any idea..??

There's more work to be done other than founding the new API URL, unfortunately I don't know how to fix.

th3sull1van avatar Jul 27 '19 20:07 th3sull1van

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

Tried with this URL but it raises following:

` error = post.headers['X-FaceApp-ErrorCode']`

any idea..??

There's more work to be done other than founding the new API URL, unfortunately I don't know how to fix.

There seems to be a new header. 'X-FaceApp-UserToken'. I'm not sure this can be generated randomly or has to be authorized with FaceApp.

kalmengr avatar Jul 27 '19 20:07 kalmengr

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

Tried with this URL but it raises following:

` error = post.headers['X-FaceApp-ErrorCode']`

any idea..?? How did you get to this point? when I tried replacing the BASE_URL in init.py, it gave me different errors depending on if i was doing http or https. http said expecting value, and https gave me an ssl certificate error. i tried mimicking the request as the app sends it, but it always gave me http errors like unsupported media type. the error from faceapp was just parse error. can I know what your request looks like? Thanks

kalmengr avatar Jul 27 '19 20:07 kalmengr

He return 415 error code. How to fix?

ScuroNeko avatar Jul 28 '19 01:07 ScuroNeko

New API seems to be 'https://tyrion.faceapp.io/api/v3.10/photos'

Tried with this URL but it raises following:

` error = post.headers['X-FaceApp-ErrorCode']`

any idea..?? How did you get to this point? when I tried replacing the BASE_URL in init.py, it gave me different errors depending on if i was doing http or https. http said expecting value, and https gave me an ssl certificate error. i tried mimicking the request as the app sends it, but it always gave me http errors like unsupported media type. the error from faceapp was just parse error. can I know what your request looks like? Thanks

its the same request as in original init.py today, I decompiled the FaceApp apk, looks like it has different links for APIs. but lack of java knowledge stopped me, if anyone could help

yogesh-hackx avatar Jul 28 '19 04:07 yogesh-hackx

He return 415 error code. How to fix?

looks like request format or something has changed in newer versions, or may be we are opening file in binary mode and it wants something different. May be....(not sure)

yogesh-hackx avatar Jul 28 '19 04:07 yogesh-hackx

but lack of java knowledge stopped me, if anyone could help

maybe i can?

ScuroNeko avatar Jul 28 '19 15:07 ScuroNeko

Hello. Appreciate your help. App uses secure connection, so the best way is a proxy like Charles which allows to sniff secure traffic via injected certificate. I know this issue to persist. Unfortunately, I am now not capable of fixing due to lack of internet and time. Anyway, contributions will be appreciated and merged when possible.

vasilysinitsin avatar Aug 10 '19 06:08 vasilysinitsin

I believe u need to replace User Agent as well, but I dont know what it is

swagzhang avatar Oct 10 '19 08:10 swagzhang

It looks like someone has implemented the new API already https://github.com/Arhimason/arhisite/blob/master/bot_handler/modules/joy/utils/faces/init.py

ahmed605 avatar Feb 17 '20 16:02 ahmed605