Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
0toshigami opened this issue Feb 19, 2025 · 1 comment · Fixed by #2370
Closed

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

0toshigami opened this issue Feb 19, 2025 · 1 comment · Fixed by #2370
Labels
Milestone

Comments

@0toshigami
Copy link

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.

@acelaya
Copy link
Member

acelaya commented Feb 19, 2025

I have just released Shlink v4.4.4 including a fix for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants