Skip to content
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

Bug: Share and Screenshot Button Broken #457

Closed
FlyteWizard opened this issue Mar 16, 2023 · 1 comment
Closed

Bug: Share and Screenshot Button Broken #457

FlyteWizard opened this issue Mar 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@FlyteWizard
Copy link
Member

Describe the Bug/Issue

The share button returns undefined as the unique identifier in the url and returns a 422 (Bad Request).

In addition, the screenshot button does not work and returns a 422 (Bad Request).

As an example: https://courseup.vikelabs.ca/s/undefined instead of https://courseup.vikelabs.ca/s/aoert09js.

Error Message

Failed to load resource: the server responded with a status of 422 (Bad Request) https://courseup.vikelabs.ca/api/timetables

[Error] Failed to load resource: the server responded with a status of 422 (Bad Request) (timetables, line 0)

[Error] Unhandled Promise Rejection: [object Object]
	promiseEmptyOnRejected
	promiseReactionJob

Note: The share and screenshot feature are still working for the fall 2022 and spring 2023 term.

To Reproduce

  1. Create a schedule for the summer term.
  2. View schedule: https://courseup.vikelabs.ca/scheduler/202305
  3. Try to share or take a screenshot.

Expected Behaviour

I expect to be able to share with a url. I expect to be able to take a screenshot of a schedule.

Screenshots

Capture d’écran, le 2023-03-15 à 18 23 48

Desktop/Mobile

  • OS: macOS
  • Browser: Safari
  • Version: Latest Version 16.3 (18614.4.6.1.6)
@FlyteWizard FlyteWizard added the bug Something isn't working label Mar 16, 2023
@keithradford
Copy link
Collaborator

keithradford commented Mar 16, 2023

Fixed! Problem was our DB was never populated with the summer semester which means shared timetables being created were failing validation.

Populated the db and everything seems to be working as expected

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants