question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bad confirmation error when saving ad in 30-day ads history

See original GitHub issue

Follow up to https://github.com/brave/brave-browser/issues/16005

Steps to Reproduce

  1. Clean profile
  2. Enable rewards and ads on staging
  3. View a notification ad
  4. Open 30-day ads history from brave://rewards
  5. Save the ad
  6. Check logs

note: also reproducible on production

Actual result:

Bad confirmation error in logs

[28698:28698:0203/024945.190057:VERBOSE1:redeem_unblinded_token.cc(55)] Redeem unblinded token
[28698:28698:0203/024945.191170:VERBOSE1:redeem_unblinded_token.cc(74)] CreateConfirmation
[28698:28698:0203/024945.191341:VERBOSE2:redeem_unblinded_token.cc(75)] POST /v2/confirmation/{confirmation_id}/{credential}
[28698:28698:0203/024945.191618:VERBOSE6:redeem_unblinded_token.cc(79)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v2/confirmation/c3585488-aad6-47c7-9dc6-dc033c31d81e/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJIbHltOUcvTGdDdWFzNUFOR3YvK0tzb2JZZSs0bzRLaWVsZUcrZmRCYlhzPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwiYmV0YVwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCI3ODk4YTI1OS02NjRhLTQwNTItODM4Mi05YzcyNzlhZTMyNDlcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJsaW51eFwiLFwicHVibGljS2V5XCI6XCJpTWhSSGY5MnEyM05ueUpKTnBleVZ0S2JTaUNSRkxtS1g3UFE1bHJmaWs4PVwiLFwic3R1ZGllc1wiOltdLFwidHlwZVwiOlwic2F2ZWRcIn0iLCJzaWduYXR1cmUiOiJzTWQzVlZMVkdFc1pUU2hxOHkrMkR2dUluYXZPZGRPVnVkd3FFUEFDMHJCWEREekpCRVFRTUI4TGdYYVU3YjM0aUdZSUNOWWtzSjRlUGxEOGZXTWVrUT09IiwidCI6IjNBUFhURmRHSiswMUp0ZWhiVEYvUFJuRDNZS1hzTlpYS2w5REVJMzRLYzNOaVJiME1nTGUrRE5wSkgwb3FDZ0VtZGNxbjFLakV5M1kwY3dxa0xpVEpnPT0ifQ==
  Content: {"blindedPaymentTokens":["Hlym9G/LgCuas5ANGv/+KsobYe+4o4KieleG+fdBbXs="],"buildChannel":"beta","creativeInstanceId":"7898a259-664a-4052-8382-9c7279ae3249","payload":{},"platform":"linux","publicKey":"iMhRHf92q23NnyJJNpeyVtKbSiCRFLmKX7PQ5lrfik8=","studies":[],"type":"saved"}
  Content Type: application/json
  Method: kPost
[28698:28698:0203/024945.432845:VERBOSE1:redeem_unblinded_token.cc(90)] OnCreateConfirmation
[28698:28698:0203/024945.432899:VERBOSE6:redeem_unblinded_token.cc(92)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v2/confirmation/c3585488-aad6-47c7-9dc6-dc033c31d81e/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJIbHltOUcvTGdDdWFzNUFOR3YvK0tzb2JZZSs0bzRLaWVsZUcrZmRCYlhzPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwiYmV0YVwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCI3ODk4YTI1OS02NjRhLTQwNTItODM4Mi05YzcyNzlhZTMyNDlcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJsaW51eFwiLFwicHVibGljS2V5XCI6XCJpTWhSSGY5MnEyM05ueUpKTnBleVZ0S2JTaUNSRkxtS1g3UFE1bHJmaWs4PVwiLFwic3R1ZGllc1wiOltdLFwidHlwZVwiOlwic2F2ZWRcIn0iLCJzaWduYXR1cmUiOiJzTWQzVlZMVkdFc1pUU2hxOHkrMkR2dUluYXZPZGRPVnVkd3FFUEFDMHJCWEREekpCRVFRTUI4TGdYYVU3YjM0aUdZSUNOWWtzSjRlUGxEOGZXTWVrUT09IiwidCI6IjNBUFhURmRHSiswMUp0ZWhiVEYvUFJuRDNZS1hzTlpYS2w5REVJMzRLYzNOaVJiME1nTGUrRE5wSkgwb3FDZ0VtZGNxbjFLakV5M1kwY3dxa0xpVEpnPT0ifQ==
  Response Status Code: 400
  Response: {"statusCode":400,"message":["type must be one of the following values: click, dismiss, view, landed, upvote, downvote, flag, conversion, land_30, land_60, bookmark, land_click"],"error":"Bad Request"}
[28698:28698:0203/024945.432943:VERBOSE1:redeem_unblinded_token.cc(99)] Duplicate/bad confirmation
[28698:28698:0203/024945.432970:VERBOSE1:redeem_unblinded_token.cc(118)] FetchPaymentToken
[28698:28698:0203/024945.432987:VERBOSE2:redeem_unblinded_token.cc(119)] GET /v2/confirmation/{confirmation_id}/paymentToken
[28698:28698:0203/024945.433012:VERBOSE6:redeem_unblinded_token.cc(123)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v2/confirmation/c3585488-aad6-47c7-9dc6-dc033c31d81e/paymentToken
  Method: kGet
[28698:28698:0203/024945.644534:VERBOSE1:redeem_unblinded_token.cc(134)] OnFetchPaymentToken
[28698:28698:0203/024945.644745:VERBOSE6:redeem_unblinded_token.cc(136)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v2/confirmation/c3585488-aad6-47c7-9dc6-dc033c31d81e/paymentToken
  Response Status Code: 404
  Response: {"error":"Confirmation does not exist","statusCode":404}
[28698:28698:0203/024945.644978:VERBOSE1:redeem_unblinded_token.cc(140)] Confirmation not found

Expected result:

No error

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Brave 1.35.85 Chromium: 97.0.4692.71 (Official Build) beta (64-bit)
Revision adefa7837d02a07a604c1e6eff0b3a09422ab88d-refs/branch-heads/4692@{#1247}
OS Ubuntu 18.04 LTS

cc @brave/legacy_qa @tmancey @jsecretan @rebron @amirsaber

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

2reactions
tmanceycommented, Jan 17, 2022

Changing to bookmark

1reaction
tmanceycommented, Jan 18, 2022

This can ride the trains in my opinion as this was a bug and never submitted before. @amirsaber @btlechowski your thoughts?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fix error messages with Uploaded ads - Google Ads Help
When uploading creatives in Google Ads, you may receive an error message. In most situations, the problem can be fixed by altering your...
Read more >
8 Google Ads Conversion Tracking Hang-Ups and How to Fix ...
To remove: Navigate to the Conversions section of Google Ads under Tools, then Measurement, and click on the name of the conversion action...
Read more >
35 Common Merchant Center Errors + How to Fix Them
A complete guide of the 35 most common Merchant Center errors plus how to prevent and fix them. Price mismatch, missing shipping, incorrect...
Read more >
Troubleshoot ad account creation issues | Meta Business Help ...
One or more existing ad accounts are in bad standing.​​ Generally, we adjust your ad account limit based on historical spending and use...
Read more >
Frequently Asked Questions
My allotment didn't go to the bank because I entered the wrong ... is the maximum amount of money that can be garnished...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found