oppia: [BUG]: Sorry, an unexpected error occurred. Please email admin@oppia.org to be added to the mailing list.

Describe the bug

Different email address input box behavior on the splash page with respect to another page.

URL of the page where the issue is observed.

https://www.oppia.org/

Steps To Reproduce

  1. Visit the https://www.oppia.org/
  2. Go to the footer of the page
  3. In the email address input box, enter a@b.com
  4. Now start repetitive clicks on the subscribe button
  5. You see the error logs generated at the most bottom of the splash page.
  6. Now, repeat the same on any other page, you will be able to see the difference.

Expected Behavior

We can use the debounce service to avoid multiple calls.

Screenshots/Videos

  • Splash Page

Screencast from 26-08-24 02:03:29 AM IST.webm

  • Volunteer Page

Screencast from 26-08-24 02:07:12 AM IST.webm

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

Tips for developers

Before addressing the bug, please identify which PR caused the issue (you can follow the steps here). If you identify the PR, comment on the issue with a link to it. If not, mention the commit hash of the oldest commit you saw the bug on (and the month and year it was made in).

Then, please leave a comment with details of the approach that you plan to take to fix the issue (see example).

Note: If this is your first Oppia issue, please make sure to follow our guidelines for choosing an issue and setting things up. You will also need to show a demo of the fix working correctly on your local machine. Thanks!

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 58 (40 by maintainers)

Commits related to this issue

Most upvoted comments

Hey @tiagombrbrito, Sorry running busy, will try to reply by 11th May EOD. Thanks!

@ParagGhatage It takes 2-3 refreshes after making the changes, might that help you instead if restarting the server.

@ParagGhatage Any updates on this issue?

Working on CSS elements of toaster, but unable to reflect code changes while dev-server is running. I have to restart the dev-server every time I change any code.

I will figure it out in a few days.

@ParagGhatage Only frontend changes are needed, as the backend response is correct. The difference in environments is due to Mailchimp not being connected in dev mode, so we can assume the backend is functioning properly. We need to fix the alert message alignment and implement the debounce service to prevent repetitive button clicks.

In your previous comment, you didn’t provide the logic or filenames for implementing the debounce service. Please include a demo video showing both dev and prod modes, which can be run using the command make run-devserver prod_env=true, demonstrating that your changes resolve the issue.

Note: This must be done in a single PR; partial implementations will not be an ideal thing to do.

Let me know if you need any further clarification. Thanks!

Thanks for explaining. I have tackled debounce issue and started working on Toaster alignment.

Hey @souja450 Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you’re changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!

@KartikSuryavanshi In your video, don’t see you testing the scenario @HardikGoyal2003 described in the original description (with many rapid clicks).

Since he reported it originally, please work together with him to ensure that you are both on the same page about the behaviour on develop. Thanks!

I want to work on this issue. please assign me this issue.

Hello @HardikGoyal2003 , I have already submitted a PR, but there was an issue due to a ‘/’ in the branch name. I am resolving this today and will submit a new PR with the updated branch name.

@nkumawat34 Per the guidance at https://github.com/oppia/oppia/wiki/Contributing-code-to-Oppia#choosing-a-good-first-issue, please provide an explanation of what your PR will do (with names of files you’re changing, what you plan to change in each file, etc.). If it looks good, we can assign you to this issue.

Please also follow the other instructions on that wiki page if you have not yet done so. Thanks!