Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Error when calling API to get non-orphan visits #2368

@0toshigami

Description

@0toshigami

Shlink version

4.4.3

PHP version

8

How do you serve Shlink

Docker image

Database engine

PostgreSQL

Database version

16.4

Current behavior

When attempting to call the REST API via /rest/v3/visits/non-orphan using an API key with the role Author only,
the server responds with a 500 error code.
The error message states:
[Semantical Error] line 0, col 92 near 's.author Api Key': Error: 's' is not defined. in /etc/shlink/vendor/doctrine/orm/src/Query/QueryException.php:28

Expected behavior

Return non-orphan visit data corresponding to the API key

Minimum steps to reproduce

Generate an API key with Author only Role.
Call the API.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions