Page 1 of 1

xml rpc login api failed.

Posted: Thu Oct 28, 2021 3:12 am
by redguardtoo
I published my subtitles downloader in Emacs Lisp yesterday at https://github.com/redguardtoo/shenshou

It worked yesterday, but does not work today when calling xml rpc login api.

The api call is just a cli `curl -b --insecure https://api.opensubtitles.org:443/xml-rpc -x socks5h://127.0.0.1:9050 -H "Content-Type: text/xml" -d "<?xml version='1.0' encoding='UTF-8'?><methodCall><methodName>LogIn</methodName><params><param><value><string>redguardtoo</string></value></param><param><value><string>mypassword</string></value></param><param><value><string>en</string></value></param><param><value><string>shenshou</string></value></param></params></methodCall>"`

And the output is a html file as the screenshot.

I'm always using tor socks5 proxy. I restarted tor several times but always failed.
2021-10-27_22-59_1.png
2021-10-27_22-59_1.png (82.57 KiB) Viewed 5342 times

Re: xml rpc login api failed.

Posted: Thu Oct 28, 2021 9:26 am
by oss
it seems screenshot didnt go through, anyway I tried

Code: Select all

curl -b --insecure https://api.opensubtitles.org:443/xml-rpc -H "Content-Type: text/xml" -d "<?xml version='1.0' encoding='UTF-8'?><methodCall><methodName>LogIn</methodName><params><param><value><string>redguardtoo</string></value></param><param><value><string>mypassword</string></value></param><param><value><string>en</string></value></param><param><value><string>shenshou</string></value></param></params></methodCall>"
and this returns proper (unauthorised) answer. Probably problem with your socks ?

Re: xml rpc login api failed.

Posted: Fri Oct 29, 2021 5:51 am
by redguardtoo
OK, here is content in screenshot,
Please enable cookies.
One more step
Please complete the security check to access api.opensubtitles.org
Why do I have to complete a CAPTCHA?

Completing the CAPTCHA proves you are a human and gives you temporary access to the web property.
What can I do to prevent this in the future?

If you are on a personal connection, like at home, you can run an anti-virus scan on your device to make sure it is not infected with malware.

If you are at an office or shared network, you can ask the network administrator to run a scan across the network looking for misconfigured or infected devices.

Another way to prevent getting this page in the future is to use Privacy Pass. You may need to download version 2.0 now from the Firefox Add-ons Store.

Cloudflare Ray ID: 6a4a443c4d9e4e20 • Your IP: 185.100.87.250 • Performance & security by Cloudflare

Re: xml rpc login api failed.

Posted: Fri Oct 29, 2021 5:50 pm
by oss
thats quite strange, because cloudflare it showing the page...anyway, what is output from

Code: Select all

curl -b --insecure https://api.opensubtitles.org:443/xml-rpc -H "Content-Type: text/xml" -d "<?xml version='1.0' encoding='UTF-8'?><methodCall><methodName>LogIn</methodName><params><param><value><string>redguardtoo</string></value></param><param><value><string>mypassword</string></value></param><param><value><string>en</string></value></param><param><value><string>shenshou</string></value></param></params></methodCall>"

Re: xml rpc login api failed.

Posted: Sun Oct 31, 2021 1:25 am
by redguardtoo
It outputs html whose content is as I showed in previous post. I'm behind tor proxy.

Re: xml rpc login api failed.

Posted: Tue Nov 02, 2021 12:35 pm
by redguardtoo
Hi,
I test again a few minutes ago and get same error. Looks I need tech support from opensubtitles team. See https://blog.coingecko.com/how-to-troub ... ng-ray-id/


Cloudflare Ray ID: 6a7c580e492a4c97 • Your IP: 198.144.121.93

Re: xml rpc login api failed.

Posted: Tue Nov 02, 2021 2:46 pm
by oss
ok it is fixed now

Re: xml rpc login api failed.

Posted: Wed Nov 03, 2021 11:36 am
by redguardtoo
Thanks. I can confirm it's fixed now.