mawoka-myblock / ClassQuiz

ClassQuiz is a quiz-application like Kahoot!, but open-source.
https://classquiz.de
Mozilla Public License 2.0
479 stars 85 forks source link

Can't upload previous cqa quiz #412

Closed MrNonoss closed 2 weeks ago

MrNonoss commented 3 weeks ago

Which component is affected?

Upload feature

Did the issue occur at ClassQuiz.de, or on a self-hosted instance?

On a self-hosted instance

How can the issue be reproduced?

I was using a fairly outdated version, so I started from fresh/scratch. All the images built or downloaded with no issues, then I fired the docker-compose.yml without modification, just for a try.

Describe the bug (with screenshots if possible)

It seemed to work well until I tried to import my existing quizzes. The api-1 and frontend-1 containers seems to have an issue. When loading the page and trying to upload the quiz, I get the following error in the logs:

api-1          | 172.21.0.8:60834 - "GET /api/v1/users/check HTTP/1.1" 401
frontend-1     | undefined
api-1          | 172.21.0.5:37712 - "POST /api/v1/eximport/ HTTP/1.1" 401

Any idea on what it could be?

Device

Laptop/Notebook

Operating System

MacOS 15.1

Browser

Safari

mawoka-myblock commented 2 weeks ago

You somehow got logged out. Check if you're logged in and if there are any auth cookies in your browser

MrNonoss commented 2 weeks ago

Dammit, how can I missed it? You're legend. That was the issue. Sorry for the trouble.

mawoka-myblock commented 2 weeks ago

No worries