Skip to content
This repository has been archived by the owner on Oct 22, 2021. It is now read-only.

Unexpected end of input #341

Open
Musicpac opened this issue Aug 19, 2020 · 3 comments
Open

Unexpected end of input #341

Musicpac opened this issue Aug 19, 2020 · 3 comments

Comments

@Musicpac
Copy link

After installing the app I was not able to find any functionality in it. I was able to login to the brandenburg schulcloud but non of the contents could be displayed. The pink screens are everywhere. The main error displayed is "FormatException: Unexpected end of input(at character 1). If you try to go to your profile the error displays a JsonParserfail.

WhatsApp Image 2020-08-19 at 20 47 52 (1)
WhatsApp Image 2020-08-19 at 20 47 52

@MarcelGarus
Copy link
Contributor

MarcelGarus commented Aug 19, 2020

Yes, this happened a lot. I think we fixed it in #334 – and an even more comprehensive PR for error handling is in the works at #337.
Either way, I might be wrong, so be sure to check if the error still persists with the version from https://github.com/hpi-schul-cloud/schulcloud-flutter/tree/handle-errors-better.

@Musicpac
Copy link
Author

The error got kinda solved. now the problem changed to a ressources not found and the session being invalid. Does my account need to be validated?
flutter

@JonasWanke
Copy link
Contributor

Currently, you are signed out automatically after two hours of inactivity. This is a limitation of the server, but will hopefully be changed soon. If you see such an error, you'll have to sign out via the banner at the top or via the account dialog, and then sign back in.

As a brief background on the FormatExceptions you reported initially: Many of the server's API routes are temporarily blocked. Hence we cannot currently access assignments or users, for example. This is a temporary server limitation as well, but the backend team is actively working on unlocking these routes. The PRs mentioned by @MarcelGarus just change the appearance of these errors.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants