You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we check for referral finalization, we're failing to parse the server response. This results in the client continuing to check for finalization even if it was successful.
Steps to Reproduce
Run a Brave referral installer
Once the promoCode file is deleted from the profile directory, close Brave
Set the environment variable BRAVE_REFERRALS_CHECK_TIME to 5 (units are in seconds)
Launch Brave with this value set
Wait 30 seconds, just to be sure
Close Brave to ensure preferences are updated on disk
Actual result:
The following message is written to the log file:
Failed to parse referral finalization check response
Expected result:
Either:
The referral is finalized, in which case no error message is written to the log
The referral is not finalized, in which case the following error message is written to the log Referral is not ready, please wait at least 30 days and the Local State file in the profile directory will contain values that show that Brave is still making attempts to finalize the referral (e.g., "referral_attempt_count":1,"referral_attempt_timestamp":"13186003104101127")
Since referrals aren't finalized until 30 days after initialization, it can be difficult to test the first scenario above. In that particular scenario, you must contact someone on our referrals team and give them the particular download_id that you're testing. They will be able to configure the referrals server to send a positive response for that download_id.
Reproduces how often:
Always
The text was updated successfully, but these errors were encountered:
@emerick I have launched brave using env flag BRAVE_REFERRALS_CHECK_TIME=5 BraveSoftware/Brave-Browser/Application/brave.exe got an console error message saying Referral is not ready, please wait at least 30 days ( Expected result 2).
If, I launch brave using env flag BRAVE_REFERRALS_CHECK_TIME=5000 BraveSoftware/Brave-Browser/Application/brave.exe I did not see any console error (Expected result 1).
Should it be seconds or milliseconds? Please clarify.
Description
When we check for referral finalization, we're failing to parse the server response. This results in the client continuing to check for finalization even if it was successful.
Steps to Reproduce
promoCode
file is deleted from the profile directory, close BraveBRAVE_REFERRALS_CHECK_TIME
to5
(units are in seconds)Actual result:
The following message is written to the log file:
Failed to parse referral finalization check response
Expected result:
Either:
Referral is not ready, please wait at least 30 days
and theLocal State
file in the profile directory will contain values that show that Brave is still making attempts to finalize the referral (e.g.,"referral_attempt_count":1,"referral_attempt_timestamp":"13186003104101127"
)Since referrals aren't finalized until 30 days after initialization, it can be difficult to test the first scenario above. In that particular scenario, you must contact someone on our referrals team and give them the particular
download_id
that you're testing. They will be able to configure the referrals server to send a positive response for thatdownload_id
.Reproduces how often:
Always
The text was updated successfully, but these errors were encountered: