-
Notifications
You must be signed in to change notification settings - Fork 56
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
Getting resources with a cursor results in a Unauthorized 401 error after the first pageSize has been reached #195
Comments
the apiClient is initially built with:
The API user role has the following permissions: and after playing around I assume that somehow the api token refresh does not work for the subsequent api calls... any help / suggestions are really appreciated because this issue is really bad for us :-/ |
hi guys, I think I found a clue to my issue. My setup: docker + traefik the described error occurs only if I access the API via traefik. the first request is ok but the subsequents will fail. so my question: has anybody a working traefik (v2) configuration that works with the api too? currently I am using the following configuration:
|
Hello wucherpfennig I also encountered the same problem, but I am using nginx + docker, do you have any good solutions? |
Yes but it is definitively a hack: In addition expose the whole service on a custom port and make all the api calls with IP + Port... It works but 💩 I would very much appreciate if you would find a better solution 😉 |
for me, Calling API with HTTPS, but the return result for next href is HTTP. Same issue as #169
After API returns HTTPS, the issue is solved. |
Thanks guys, I've solved it with Calling API using GuzzleHttp, but please note that it may have a timeout problem. |
Just saw your comment. Works! Thank you |
Hi there
PIM Version: 5.0.10
When using the api client as follows:
after the first pageSize the following error occurs:
Unauthorized (see https://api.akeneo.com/php-client/exception.html#unauthorized-exception)
the approach from above has been working since v1.7 (I have another installation running on v1.7 and the code runs flawlessly).
any help very much appreciated
BR wucherpfennig
The text was updated successfully, but these errors were encountered: