Can't access Tiny Tiny RSS api from external adress


#1

Describe the problem you’re having:

I’m running tt-rss on a Raspberry Pi 1 Model B with OSMC as OS
Linux osmc 4.4.27-2-osmc #1 PREEMPT Thu Oct 27 23:19:07 UTC 2016 armv6l GNU/Linux

I want to connect to my tt-rss installation via the FeedMe app, but every time the login fails with the message “AUTH FAILED”.
I have activated the API and tried to find the error via curl commands.

If I give the following command on my Raspi:
curl -d ‘{“op”: “login”, “user”: “xxx”, “password”: “xxx”}’ https://mysite.de/tt-rss/api/

I get:
"{“seq”:0, “status”:0, “content”:{“session_id”: “pv9m627650ktem91mppupc2fr1”, “api_level”:14}}}

I repeat the same command from another machine I get the message:
‘{“seq”:null, “status”:1, “content”:{“error”: “NOT_LOGGED_IN”}}’’

If possible include steps to reproduce the problem:

see description above

tt-rss version (including git commit id):

latest

Platform (i.e. Linux distro, PHP, PostgreSQL, etc) versions:

Raspi pi
OSMC (debian 7 )
Linux osmc 4.4.27-2-osmc #1 PREEMPT Thu Oct 27 23:19:07 UTC 2016 armv6l GNU/Linux
mysql Ver 15.1 Distrib 10.1.23-MariaDB, for debian-linux-gnueabihf (armv7l) using readline 5.2
PHP 7.0.30-0+deb9u1 (cli) (built: Jun 14 2018 13:50:25) ( NTS )
Apache/2.4.25 (Raspbian)

Please provide any additional information below:

I use a normal user account without administrator rights


#2

i recommend reading the docs, while paying attention nevermind that, misread your post

unfortunately this could be caused by a number of things, most of them not related to tt-rss. i suggest you start with investigating your setup, i.e. httpd logs, stuff like that.

tt-rss does not limit API access by IP or subnet or anything like that, it’s either on or off in preferences.

e: it’s possible that POST JSON payload is getting mangled somehow, although stuff like that would also prevent tt-rss from being accessible over network.