Skip to content

Delay fetching notes via API #589

@sciurius

Description

@sciurius

Describe the bug
When I fetch a note (or note information) using the API, there seems to be a 2-3 second delay. This is consistent, independent of server load, so it may indicate some internal time-out

To Reproduce
Steps to reproduce the behavior:

  1. Use curl to fetch note info, e.g. `curl -u "user:password" https://cloud.squirrel.nl/index.php/apps/notes/api/v1/notes/141980
  2. Response after 3 seconds.

Expected behavior
Output within a reasonable amount of time. Since this is a lightly loaded server on a local LAN I'd expect a response in milliseconds.

Server (please complete the following information):

  • Notes app version: 3.6.2
  • Nextcloud version: 19.0.1
  • OS: Raspbian
  • Web server: nginx
  • PHP version: 7.3
  • Database: PostgreSQL

Client (please complete the following information):

  • Browser (incl. version): curl 7.66.0
  • OS: Fedora 31

Log files
A message similar to this is written to the NC log for each request:

{"reqId":"c4dvydfNm08qhTtBCKb2","level":3,"time":"2020-08-22T18:35:38+00:00","remoteAddr":"192.168.1.251","user":"--","app":"PHP","method":"GET","url":"/index.php/apps/notes/api/v1/notes?exclude=content","message":"session_start(): A session had already been started - ignoring at /var/www/nextcloud/lib/private/Session/Internal.php#209","userAgent":"curl/7.66.0","version":"19.0.1.1"}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions