oppia / oppia

A free, online learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
5.74k stars 3.89k forks source link

[BUG]: Console errors reported on the signup page when the "classroom-promos" config property is enabled. #18362

Open lkbhitesh07 opened 1 year ago

lkbhitesh07 commented 1 year ago

Describe the bug

When we signup on the production and the screen appears where we put our username and agree to the T&C, some of the console errors are reported. These errors appears when the "classroom-promos" config property is enabled.

Important: After resolving the issue, add the error catch block to the validateAccessToClassroomPage and fetchClassroomDataAsync present in the ngOnInit function of side-navigation-bar.component.ts and top-navigation-bar.component.ts.

Steps To Reproduce

On prod:

  1. Signup with the unregistered account and reach to the signup page.
  2. Look at the console

On dev:

  1. Login with the admin account and enable the classroom promos config property.
  2. Logout and try to signup with a new account and notice the error in the console.

Expected Behavior

There should be no errors.

Screenshots/Videos

Screenshot from 2023-06-11 10-42-39

What device are you using?

Desktop

Operating System

Linux

What browsers are you seeing the problem on?

Chrome

Browser version

No response

Additional context

No response

ParthBoghani46 commented 1 year ago

I am new to open source. I am eager to solve this issue. Can you help give guidance to solve this issue??

lkbhitesh07 commented 1 year ago

Hey @ParthBoghani46, thanks for your interest. Have you taken a look at the good first issues? I would advise you to pick any issues from the list to get started with your journey.