Skip to content

Cannot access API via curl #158

@rndmh3ro

Description

@rndmh3ro

Describe the bug

When trying to login to the API (according to https://tt-rss.org/wiki/ApiReference), I always get redirected to the SSO login:

curl -L -d '{"op":"login","user":"xx","password":"xx"}' http://example.com/tt-rss/api/

<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>YunoHost Portal</title>

  <!-- Responsive -->
  <meta name="format-detection" content="telephone=no" />
  <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1" />

  <!-- Do not index SSOWat pages -->
  <meta name="robots" content="noindex, nofollow">

  <!-- Stylesheets -->
  <link rel="stylesheet" href="assets/css/ynh_portal.css">
  <link rel="stylesheet" href="assets/themes/default/custom_portal.css">

  <!-- Icons -->

Context

image

  • Hardware: VPS bought online
  • yunohost-version: 11.2.4
  • I have access to my server: Through SSH

Steps to reproduce

curl -L -d '{"op":"login","user":"xx","password":"xx"}' http://example.com/tt-rss/api/

Expected behavior

I get a response from the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions