-
Notifications
You must be signed in to change notification settings - Fork 5
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
pretixSCAN on Android gives us troubles #5
Comments
Hmm, this is not a known bug, weird. Is there anything else in the look that looks suspicious at that time? |
No, nothing that I can find. But I only checked the gunicorn stderr output (which is logged by supervisord) and the pretix.log file in the data/ directory, which seems to contain the same information. Pretix runs with loglevel=info btw. - are there maybe other logging locations that I'm not aware of that I could check? |
What version of pretix are you running? Can you maybe post nginx access logs to see the full pattern of the synchronization? |
pretix is at 3.0.1 nginx access logs:
So it only fails on |
Making that request with a manually created authentication token (as in https://docs.pretix.eu/en/latest/api/tokenauth.html) works and returns meaningful data. I just also tried doing the "Device Authentication" as in https://docs.pretix.eu/en/latest/api/deviceauth.html, but making the requests manually (with Insomnia)… There it works as expected as well (so no 401 error…). I was able to reproduce the error with another android device, though (a Lenovo Tablet, same behaviour as described above). |
It's getting even weirder… The only thing I can imagine is that the Authorization header is missing for that request for some weird reason. However, I can't see why, all of them should go through https://github.com/pretix/libpretixsync/blob/master/libpretixsync/src/main/java/eu/pretix/libpretixsync/api/PretixApi.java#L186 |
Hey Pretix-Team,
thanks for your great software! We're using the Community edition it to sell tickets for our music festival and generally it's a great experience :-).
But recently we updated to the latest version and I tried to use pretixSCAN instead of pretixdroid. The iOS version works without problems, but on Android the app cannot seem to load all data from the backend. Registering the device works, but during sync when trying to "Download orders" the process breaks and shows the message "Unknown server response". (There's a really quick message like "Processed 50 orders…" which is barely noticable in between.) The app then states "noch nie synchronisiert" and repeating the process leads to the same result. The backend shows the following log entry twice:
WARNING 2019-08-23 12:50:30,755 django.request log Unauthorized: /api/v1/organizers/[event]/events/2019/orders/
– but I cannot seem to find any more detailed error explanation.(pretixdroid still works nicely, so we can fallback to this for now.)
We're running the latest pretix and pretixSCAN on Android.
Is this a bug? Do you have any suggestion of how I could further debug this issue?
Best and thanks,
Benjamin.
The text was updated successfully, but these errors were encountered: