-
Notifications
You must be signed in to change notification settings - Fork 128
[FxA] if you login without ever having uploaded a shot, My Shots fails #5184
Comments
It's easier to replicate issue if one create a new account, go to server site and hit my shots before uploading new shots |
Fixes #5184 - My shots fail if accessed with zero shots and no deviceIds
I have tested this issue and it seems that is still reproducible on Screenshots dev server with newly created FxA accounts if you never used Screenshots. [Prerequisites]
[Steps to reproduce]:
[Expected Results]:
[Actual Results]:
However, it seems that the behavior is different on Screenshots stage server. |
I will look at logs whats different on dev server, this issue should be fixed for both dev and stage
Logged #5193 to track and fix this issue
|
Dev server is still pointing to 36.0.0 https://screenshots.dev.mozaws.net/__version__, fix of this issue should be reflected in 36.1.0 |
Closing issue as fixed |
For instance, log into https://screenshots.stage.mozaws.net (where you probably haven't uploaded anything) and go to My Shots, and it'll fail. In the logs it will show a parse error (related to #5183)
This is because you've never registered any device with that accountId, and so the query for all related devices returns [].
I'm not sure if we should return [] from
Shot.getShotsForDevice
in this case (which would be reasonable), or if we should raise an exception. We might want different messaging for this case, in which case an exception would let us distinguish it.The text was updated successfully, but these errors were encountered: