Freecodecamp: The unsubscribe path works, but the resubscribe doesn't

Created on 1 Nov 2019  路  13Comments  路  Source: freeCodeCamp/freeCodeCamp

The unsubscribe path works, but the resubscribe doesn't -- at least it didn't for me. All I wanted to do was change the email address where I receive, but when I try to resubscribe following the link shown in the screenshot above, I get this:

Screenshot 2019-11-01 19 40 52

_Originally posted by @laghee in https://github.com/freeCodeCamp/freeCodeCamp/issues/37331#issuecomment-548916882_

help wanted bug

All 13 comments

Hi, I would like to try and fix this

Is this still broken? Trying with my account I didn't manage to reproduce. Perhaps I'm missing some detail.
image

I haven't been able to reproduce it as well actually

I am going to close this unless @laghee can confirm they are still seeing this error.

@raisedadead Weird. It's still happening to me, but only on mobile -- both Firefox and Chrome, so I don't think it's a compatibility issue. Desktop seems to work fine.

Thanks re-opening.

I have been able to reproduce this. You have to be logged out to get that error when pressing the resubscribe button. The easiest way to reproduce it is by using incognito mode.

Apparently the API that starts with /internal requires authorization, and the api for resubscribe is /internal/resubscribe/:unsubscribeId.
So far I can think of 2 solutions:

  1. Whitelist the resubscribe api to not require authorization
  2. Change the resubscribe api to not use /internal, e.g. /resubscribe/:unsubscribeId

What do you guys think? @raisedadead

Ah! Nice catch @davidkwan95. I will take a look.

Fixed.

@raisedadead People are still complaining that they're experiencing this in production. I've had 2 people email me in the past hour about this. Did we deploy the fix?

@QuincyLarson, this still seems to be an issue when you are not signed in and click the "You can click here to resubscribe" button. If you are signed in then the resubscribe button works as expected.

@scissorsneedfoodtoo Yes - this seems to still be an issue. I'm glad to hear people can resubscribe if they're logged in, though we do still want to fix this.

Was this page helpful?
0 / 5 - 0 ratings