Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Brave Ads failed confirmations should not backoff if payment tokens are not created or not ready #13824

Merged
merged 1 commit into from
Jun 16, 2022

Conversation

tmancey
Copy link
Collaborator

@tmancey tmancey commented Jun 16, 2022

Resolves brave/brave-browser#23516

Submitter Checklist:

  • I confirm that no security/privacy review is needed, or that I have requested one
  • There is a ticket for my issue
  • Used Github auto-closing keywords in the PR description above
  • Wrote a good PR/commit description
  • Squashed any review feedback or "fixup" commits before merge, so that history is a record of what happened in the repo, not your PR
  • Added appropriate labels (QA/Yes or QA/No; release-notes/include or release-notes/exclude; OS/...) to the associated issue
  • Checked the PR locally: npm run test -- brave_browser_tests, npm run test -- brave_unit_tests, npm run lint, npm run gn_check, npm run tslint
  • Ran git rebase master (if needed)

Reviewer Checklist:

  • A security review is not needed, or a link to one is included in the PR description
  • New files have MPL-2.0 license header
  • Adequate test coverage exists to prevent regressions
  • Major classes, functions and non-trivial code blocks are well-commented
  • Changes in component dependencies are properly reflected in gn
  • Code follows the style guide
  • Test plan is specified in PR before merging

After-merge Checklist:

Test Plan:

GET /v2/confirmation/{confirmation_id}/paymentToken endpoint should retry sending failed confirmations without any backoff for response status codes HTTP_NOT_FOUND and HTTP_ACCEPTED.

GET /v2/confirmation/{confirmation_id}/paymentToken endpoint should not retry sending failed confirmations for response status codes HTTP_BAD_REQUEST and HTTP_UPGRADE_REQUIRED.

GET /v2/confirmation/{confirmation_id}/paymentToken endpoint should retry sending failed confirmations and back off exponentially for response status codes other than those above and HTTP_OK until the request is successful.

GET /v2/confirmation/{confirmation_id}/paymentToken endpoint should retry sending failed confirmations backing off exponentially if GET /v1/issuers/ fails to provide the user with issuers.

Back off should be reset to ~15 seconds after an unblinded token is successfully redeemed.

NOTES:

  • You can use Charles Proxy to force the endpoints to fail.
  • After viewing a single ad you can then Like etc. within the 30-day Ads history to add more failed confirmations to the queue for testing.
  • Once you have enough failed confirmations in the queue, remove the Charles Proxy rewrite and then relaunch the browser.
  • You will see Retry sending failed confirmations in the console log for failures and Successfully sent for success.
  • Retries should occur after 15 seconds + jitter with failed confirmations backing off exponentially unless otherwise stated above.

@tmancey tmancey requested a review from a team as a code owner June 16, 2022 17:23
@tmancey tmancey self-assigned this Jun 16, 2022
@tmancey tmancey force-pushed the issues/23516 branch 2 times, most recently from 2e80f3e to 433e35e Compare June 16, 2022 17:41
@GeetaSarvadnya
Copy link

Verification PASSED on


Brave | 1.42.3 Chromium: 103.0.5060.53 (Official Build) nightly (64-bit)
-- | --
Revision | a1711811edd74ff1cf2150f36ffa3b0dae40b17f-refs/branch-heads/5060@{#853}
OS | Windows 10 Version 21H2 (Build 19044.1706)

  1. Rewritten Charles rules to trigger the failed confirmations, and then viewed two ads and confirmed confirmations are failed for the ads
Example Example Example
image image (1) image (2)

Viewed ads console logs:

View AD1 console logs:

[3352:18140:0617/224738.621:VERBOSE1:notification_ad_serving.cc(270)] Serving notification ad:
  placementId: 724a3545-8b5d-4f2d-b196-d3fa80526e55
  creativeInstanceId: 04064736-ea43-463a-bd6e-6c2be4408b4d
  creativeSetId: 45ea5952-37ca-41f0-88c2-4b546b0e6f4b
  campaignId: 1c1ac828-db13-49bb-9128-090132044b7f
  advertiserId: ecbcc833-8b1d-4867-98f7-ad2341396ce8
  segment: untargeted
  title: Ad10
  body: Ad10
  targetUrl: https://brave.com/
[3352:18140:0617/224738.628:INFO:notification_helper_win.cc(179)] Notifications are enabled
[3352:18140:0617/224738.629:INFO:notification_helper_win.cc(146)] Focus Assist is disabled
[3352:18140:0617/224738.634:VERBOSE1:ads_service_impl.cc(1989)] Timeout notification ad with placement id 724a3545-8b5d-4f2d-b196-d3fa80526e55 in 60 seconds
[3352:18140:0617/224738.634:VERBOSE3:notification_ad_event_served.cc(24)] Served notification ad with placement id 724a3545-8b5d-4f2d-b196-d3fa80526e55 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d
[3352:18140:0617/224738.635:VERBOSE1:notification_ad_serving.cc(158)] Served notification ad
[3352:18140:0617/224738.636:VERBOSE3:notification_ad_event_viewed.cc(24)] Viewed notification ad with placement id 724a3545-8b5d-4f2d-b196-d3fa80526e55 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d
[3352:18140:0617/224738.644:VERBOSE1:notification_ad_event_served.cc(32)] Successfully logged notification ad served event
[3352:18140:0617/224738.655:VERBOSE6:notification_ad_event_viewed.cc(32)] Successfully logged notification ad viewed event
[3352:18140:0617/224738.664:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and view valued at 0.01
[3352:18140:0617/224738.665:VERBOSE1:confirmations.cc(61)] Confirming view for ad_notification with transaction id 9f73c654-d2a2-4ad4-84e9-6c7f0cbb4629 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d

Viewed AD2 console logs:

[3352:18140:0617/225707.836:VERBOSE1:notification_ad_serving.cc(270)] Serving notification ad:
  placementId: 6aa8803f-6437-4500-ac0e-4d81bd563f8e
  creativeInstanceId: 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4
  creativeSetId: 2003f580-4703-408a-aab4-881230aa4a6c
  campaignId: 9bb85ea3-f510-4047-8cbb-4ba40fe3e84d
  advertiserId: 93130af3-2def-4ecb-b836-b3772e73b3c9
  segment: untargeted
  title: Verifiable Ad Conversion - URL
  body: Test VAC - VAC ID from URL parameter
  targetUrl: https://www.nytimes.com/?brave-creative-id=0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4&brave-campaign-id=foo&brave-creative-set-id=bar
[3352:18140:0617/225707.843:INFO:notification_helper_win.cc(179)] Notifications are enabled
[3352:18140:0617/225707.844:INFO:notification_helper_win.cc(146)] Focus Assist is disabled
[3352:18140:0617/225707.851:VERBOSE1:ads_service_impl.cc(1989)] Timeout notification ad with placement id 6aa8803f-6437-4500-ac0e-4d81bd563f8e in 60 seconds
[3352:18140:0617/225707.851:VERBOSE3:notification_ad_event_served.cc(24)] Served notification ad with placement id 6aa8803f-6437-4500-ac0e-4d81bd563f8e and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4
[3352:18140:0617/225707.852:VERBOSE1:notification_ad_serving.cc(158)] Served notification ad
[3352:18140:0617/225707.853:VERBOSE3:notification_ad_event_viewed.cc(24)] Viewed notification ad with placement id 6aa8803f-6437-4500-ac0e-4d81bd563f8e and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4
[3352:18140:0617/225707.859:VERBOSE1:notification_ad_event_served.cc(32)] Successfully logged notification ad served event
[3352:18140:0617/225707.870:VERBOSE6:notification_ad_event_viewed.cc(32)] Successfully logged notification ad viewed event
[3352:18140:0617/225707.880:VERBOSE3:ads_impl.cc(804)] Successfully processed deposit for ad_notification with creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 and view valued at 0.01
[3352:18140:0617/225707.880:VERBOSE1:confirmations.cc(61)] Confirming view for ad_notification with transaction id 6873e0ba-85fe-4f5b-9bdf-cab34bef649f and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4

Failed confirmation console logs:

1st AD failed confirmations logs

[3352:18140:0617/224745.553:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[3352:18140:0617/224745.554:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/1eea8657-a461-454c-9b70-75a47ce759cc/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJqdUhPOEFkYmRBQmVtdEZseTFrcE5MT3pqQ3cwUnJqS2FXUFIxRGsvYVNvPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwibmlnaHRseVwiLFwiY2F0YWxvZ1wiOlt7XCJpZFwiOlwiMWY0NGVjMjU2NWE0NDI2ZjNhOWM1MjRhYzkyOTE1NTI2NGYxMTY2NlwifV0sXCJjcmVhdGVkQXRUaW1lc3RhbXBcIjpcIjIwMjItMDYtMTdUMTc6MDA6MDAuMDAwWlwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCIwNDA2NDczNi1lYTQzLTQ2M2EtYmQ2ZS02YzJiZTQ0MDhiNGRcIixcIm9keXNzZXlcIjpcImhvc3RcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJ3aW5kb3dzXCIsXCJwdWJsaWNLZXlcIjpcInFGTERKVE1hekVVRzZOb24xZElFZjltOHE1RThJWlUvM01rVGU1UlZ2SFU9XCIsXCJzdHVkaWVzXCI6W3tcImdyb3VwXCI6XCJBZE5vdGlmaWNhdGlvblRpbWVvdXQ9NjBcIixcIm5hbWVcIjpcIkJyYXZlQWRzLkFkTm90aWZpY2F0aW9uc1N0dWR5XCJ9LHtcImdyb3VwXCI6XCJUcmlnZ2Vycz1FTVBUWS9UaHJlc2hvbGQ9MC4wL0lkbGVUaW1lVGhyZXNob2xkPTVcIixcIm5hbWVcIjpcIkJyYXZlQWRzLlVzZXJBY3Rpdml0eVN0dWR5XCJ9XSxcInN5c3RlbVRpbWVzdGFtcFwiOlwiMjAyMi0wNi0xN1QxNzowMDowMC4wMDBaXCIsXCJ0eXBlXCI6XCJ1cHZvdGVcIixcInZlcnNpb25OdW1iZXJcIjpcIjEwMy4wLjUwNjAuNTNcIn0iLCJzaWduYXR1cmUiOiJiamZnZ0RqNzRuVXMra0RzRUxiNjNvSmZxZmRURE5VVzVGWmRqeW1jcHFSY3QzTkRRYXQ5TjVvSUR2YUNiQmEvNEFkSmdRVnFaVG5jMk5LVlZLbU5DZz09IiwidCI6IkJtRmJXZ05RWjFmS2xXU2NhK2c3QjVtZmx2Q0xGRUJoK0ErRmFjSEEwcWZWZTVncTRuOXVsNk1STDlmN3pDRWdwNUx2WWpiUVROaEQxVUNHbUxlcWp3PT0ifQ==
  Response Status Code: 201
  Response: {"id":"1eea8657-a461-454c-9b70-75a47ce759cc","payload":{},"createdAt":"2022-06-17T17:17:47.835Z","type":"upvote","modifiedAt":"2022-06-17T17:17:47.835Z","creativeInstanceId":"04064736-ea43-463a-bd6e-6c2be4408b4d"}
[3352:18140:0617/224745.564:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[3352:18140:0617/224745.564:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[3352:18140:0617/224745.565:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/1eea8657-a461-454c-9b70-75a47ce759cc/paymentToken
  Method: kGet
[3352:18140:0617/224745.918:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/224745.919:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/1eea8657-a461-454c-9b70-75a47ce759cc/paymentToken
  Response Status Code: 202
  Response: {"error":"Payment Tokens are not ready","statusCode":202}
[3352:18140:0617/224745.925:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
[3352:18140:0617/224745.931:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id 1eea8657-a461-454c-9b70-75a47ce759cc, transaction id f6ae24a7-53d2-4092-87c0-08fc12ce4030, creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and upvote
[3352:18140:0617/224745.933:VERBOSE1:confirmations.cc(205)] Added upvote confirmation for ad_notification with id 1eea8657-a461-454c-9b70-75a47ce759cc, transaction idf6ae24a7-53d2-4092-87c0-08fc12ce4030 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d to the confirmations queue
[3352:18140:0617/224745.937:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/224745.940:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 9 seconds at 22:47:54.937
[3352:18140:0617/224746.473:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/224746.473:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/f99996c8-9875-47e9-b58e-d2aea4dd4b7c/paymentToken
  Response Status Code: 500
  Response: {"id":"f99996c8-9875-47e9-b58e-d2aea4dd4b7c","createdAt":"2022-06-17T17:17:42.456Z","type":"view","modifiedAt":"2022-06-17T17:17:47.415Z","creativeInstanceId":"04064736-ea43-463a-bd6e-6c2be4408b4d","paymentToken":{"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4=","batchProof":"sIz7TA+liA3DCC3YzK+Pipxn3cFSsIVk4ej4Ly7RGQ+b50vbm34BOcm4hoUCpzzI5FzTcxfeIu4O7eJDmY/ZAg==","signedTokens":["BNPRumq1oToxzqAC5qMkMjReXx8Xu7jF46C8Ulf58Gg="]}}
[3352:18140:0617/224746.479:VERBOSE1:redeem_unblinded_token.cc(167)] Failed to fetch payment token
[3352:18140:0617/224746.487:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id f99996c8-9875-47e9-b58e-d2aea4dd4b7c, transaction id 9f73c654-d2a2-4ad4-84e9-6c7f0cbb4629, creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and view
[3352:18140:0617/224746.489:VERBOSE1:confirmations.cc(205)] Added view confirmation for ad_notification with id f99996c8-9875-47e9-b58e-d2aea4dd4b7c, transaction id9f73c654-d2a2-4ad4-84e9-6c7f0cbb4629 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d to the confirmations queue
[3352:18140:0617/224746.495:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/224754.941:VERBOSE1:confirmations.cc(229)] Removed click confirmation for ad_notification with id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction id b39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d from the confirmations queue
[3352:18140:0617/224754.942:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[3352:18140:0617/224754.944:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[3352:18140:0617/224754.951:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[3352:18140:0617/224754.951:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/c5a0375b-8ac2-4499-9c78-b14a5253f24e/paymentToken
  Method: kGet
[3352:18140:0617/224755.288:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/224755.288:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/c5a0375b-8ac2-4499-9c78-b14a5253f24e/paymentToken
  Response Status Code: 500
  Response: {"id":"c5a0375b-8ac2-4499-9c78-b14a5253f24e","createdAt":"2022-06-17T17:17:43.412Z","type":"click","modifiedAt":"2022-06-17T17:17:49.231Z","creativeInstanceId":"04064736-ea43-463a-bd6e-6c2be4408b4d","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"XCUsBT4oRsApQ1Ix9EzyvPECawgc5MG2zaaL6Hj3jwXiDD3G6/GHgIz8HcVZoUHrqJnM6BcLsBizTqgPu5veAw==","signedTokens":["0DR9hN1Mw07Smer4f7g2myCf53PaBzxtT7Iw4OrswWQ="]}}
[3352:18140:0617/224755.291:VERBOSE1:redeem_unblinded_token.cc(167)] Failed to fetch payment token
[3352:18140:0617/224755.300:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction id b39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0, creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and click
[3352:18140:0617/224755.303:VERBOSE1:confirmations.cc(205)] Added click confirmation for ad_notification with id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction idb39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d to the confirmations queue
[3352:18140:0617/224755.306:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 47 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/224755.308:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 21 seconds at 22:48:16.306
[3352:18140:0617/224755.335:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/224755.336:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (5:2:3600 s)
[3352:18140:0617/224755.336:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/224755.344:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (5.5:2:3600 s)
[18184:6252:0617/224756.686:ERROR:gpu_init.cc(486)] Passthrough is not supported, GL is disabled, ANGLE is
[3352:18140:0617/224758.191:VERBOSE1:uphold.cc(114)] Uphold wallet is not VERIFIED.
[3352:18140:0617/224810.809:VERBOSE1:ads_impl.cc(299)] Browser state changed to idle
[3352:18140:0617/224816.310:VERBOSE1:confirmations.cc(229)] Removed upvote confirmation for ad_notification with id 1eea8657-a461-454c-9b70-75a47ce759cc, transaction id f6ae24a7-53d2-4092-87c0-08fc12ce4030 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d from the confirmations queue

2nd AD faile confirmation logs:

[3352:18140:0617/225718.947:VERBOSE1:redeem_unblinded_token.cc(87)] OnCreateConfirmation
[3352:18140:0617/225718.948:VERBOSE6:redeem_unblinded_token.cc(89)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/73e04355-0b8c-4fe8-a8bc-a241760d188c/eyJwYXlsb2FkIjoie1wiYmxpbmRlZFBheW1lbnRUb2tlbnNcIjpbXCJub0R2L2piaktJSmNieXZSVitnVTlzTUJ1eVNWSTVkbUd0Ny80ZTlhL3lZPVwiXSxcImJ1aWxkQ2hhbm5lbFwiOlwibmlnaHRseVwiLFwiY2F0YWxvZ1wiOlt7XCJpZFwiOlwiMWY0NGVjMjU2NWE0NDI2ZjNhOWM1MjRhYzkyOTE1NTI2NGYxMTY2NlwifV0sXCJjcmVhdGVkQXRUaW1lc3RhbXBcIjpcIjIwMjItMDYtMTdUMTc6MDA6MDAuMDAwWlwiLFwiY3JlYXRpdmVJbnN0YW5jZUlkXCI6XCIwZTNmYTQ0Yy1lZGQ0LTRhZDMtYjIxZS1lNmM5M2VmMDAxYzRcIixcIm9keXNzZXlcIjpcImhvc3RcIixcInBheWxvYWRcIjp7fSxcInBsYXRmb3JtXCI6XCJ3aW5kb3dzXCIsXCJwdWJsaWNLZXlcIjpcInFGTERKVE1hekVVRzZOb24xZElFZjltOHE1RThJWlUvM01rVGU1UlZ2SFU9XCIsXCJzdHVkaWVzXCI6W3tcImdyb3VwXCI6XCJBZE5vdGlmaWNhdGlvblRpbWVvdXQ9NjBcIixcIm5hbWVcIjpcIkJyYXZlQWRzLkFkTm90aWZpY2F0aW9uc1N0dWR5XCJ9LHtcImdyb3VwXCI6XCJUcmlnZ2Vycz1FTVBUWS9UaHJlc2hvbGQ9MC4wL0lkbGVUaW1lVGhyZXNob2xkPTVcIixcIm5hbWVcIjpcIkJyYXZlQWRzLlVzZXJBY3Rpdml0eVN0dWR5XCJ9XSxcInN5c3RlbVRpbWVzdGFtcFwiOlwiMjAyMi0wNi0xN1QxNzowMDowMC4wMDBaXCIsXCJ0eXBlXCI6XCJ1cHZvdGVcIixcInZlcnNpb25OdW1iZXJcIjpcIjEwMy4wLjUwNjAuNTNcIn0iLCJzaWduYXR1cmUiOiJDUi8rbkI2SnJxcUo1ekQwRnV0TFlabkRRR05aTDdQQ2lmU01BdkgwUCt5ZlI4Y0lPWHdmZU9oeVlOamMwTlNvNzF6MHV0SnBiQ0d2SVhmVVBKZnZldz09IiwidCI6IjlIQVV3aGh6WXNtMFlPamp6TTJHNzdYY3FjQU02eitkMnVDS0JJb2FQSTZQcmNaYnpnK2hNTDhoUXdSbmhDYWJIVWpVdTJ5cXhmdlFXdmZXYU5BOW5RPT0ifQ==
  Response Status Code: 201
  Response: {"id":"73e04355-0b8c-4fe8-a8bc-a241760d188c","payload":{},"createdAt":"2022-06-17T17:27:21.268Z","type":"upvote","modifiedAt":"2022-06-17T17:27:21.268Z","creativeInstanceId":"0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4"}
[3352:18140:0617/225718.961:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[3352:18140:0617/225718.976:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[3352:18140:0617/225718.978:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/73e04355-0b8c-4fe8-a8bc-a241760d188c/paymentToken
  Method: kGet
[3352:18140:0617/225720.111:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/225720.111:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/73e04355-0b8c-4fe8-a8bc-a241760d188c/paymentToken
  Response Status Code: 202
  Response: {"error":"Payment Tokens are not ready","statusCode":202}
[3352:18140:0617/225720.115:VERBOSE1:redeem_unblinded_token.cc(157)] Payment token is not ready
[3352:18140:0617/225720.123:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id 73e04355-0b8c-4fe8-a8bc-a241760d188c, transaction id b2f9e3c7-8524-4dfe-959c-e5716862b62d, creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 and upvote
[3352:18140:0617/225720.123:VERBOSE1:confirmations.cc(205)] Added upvote confirmation for ad_notification with id 73e04355-0b8c-4fe8-a8bc-a241760d188c, transaction idb2f9e3c7-8524-4dfe-959c-e5716862b62d and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 to the confirmations queue
[3352:18140:0617/225720.125:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/225720.126:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 8 seconds at 22:57:28.124
[3352:18140:0617/225723.091:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225723.092:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (12:2:3600 s)
[3352:18140:0617/225723.094:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225723.101:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (12.5:2:3600 s)
[3352:18140:0617/225723.319:VERBOSE1:ads_impl.cc(994)] Failed to transfer ad for https://www.nytimes.com/?brave-creative-id=0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4&brave-campaign-id=foo&brave-creative-set-id=bar
[3352:18140:0617/225724.527:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225724.532:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (13:2:3600 s)
[3352:18140:0617/225724.540:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225724.549:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (13:2:3600 s)
[3352:18140:0617/225724.552:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225724.561:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (13:2:3600 s)
[3352:18140:0617/225724.563:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225724.567:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (13.5:2:3600 s)
[3352:18140:0617/225724.588:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225724.588:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (14:2:3600 s)
[3352:18140:0617/225724.598:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225724.611:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (14:2:3600 s)
[3352:18140:0617/225724.905:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225724.909:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (14:2:3600 s)
[3352:18140:0617/225724.912:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225724.923:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (14.5:2:3600 s)
[3352:18140:0617/225726.145:INFO:CONSOLE(58)] "Service Worker: content is cached", source: https://www.nytimes.com/vi-assets/static-assets/main-34e8fcf7dcb74a171241.js (58)
[3352:18140:0617/225727.977:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225727.978:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (15:2:3600 s)
[3352:18140:0617/225727.983:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225727.986:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (15:2:3600 s)
[3352:18140:0617/225728.001:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225728.002:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (15:2:3600 s)
[3352:18140:0617/225728.008:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225728.010:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (15.5:2:3600 s)
[3352:18140:0617/225728.012:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225728.014:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (16:2:3600 s)
[3352:18140:0617/225728.020:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225728.025:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (16:2:3600 s)
[3352:18140:0617/225728.027:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225728.030:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (16:2:3600 s)
[3352:18140:0617/225728.033:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225728.044:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (16.5:2:3600 s)
[3352:18140:0617/225728.139:VERBOSE1:confirmations.cc(229)] Removed click confirmation for ad_notification with id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction id b39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d from the confirmations queue
[3352:18140:0617/225728.143:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[3352:18140:0617/225728.151:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[3352:18140:0617/225728.160:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[3352:18140:0617/225728.161:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/c5a0375b-8ac2-4499-9c78-b14a5253f24e/paymentToken
  Method: kGet
[3352:18140:0617/225728.509:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/225728.509:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/c5a0375b-8ac2-4499-9c78-b14a5253f24e/paymentToken
  Response Status Code: 500
  Response: {"id":"c5a0375b-8ac2-4499-9c78-b14a5253f24e","createdAt":"2022-06-17T17:17:43.412Z","type":"click","modifiedAt":"2022-06-17T17:17:49.231Z","creativeInstanceId":"04064736-ea43-463a-bd6e-6c2be4408b4d","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"XCUsBT4oRsApQ1Ix9EzyvPECawgc5MG2zaaL6Hj3jwXiDD3G6/GHgIz8HcVZoUHrqJnM6BcLsBizTqgPu5veAw==","signedTokens":["0DR9hN1Mw07Smer4f7g2myCf53PaBzxtT7Iw4OrswWQ="]}}
[3352:18140:0617/225728.512:VERBOSE1:redeem_unblinded_token.cc(167)] Failed to fetch payment token
[3352:18140:0617/225728.519:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction id b39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0, creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and click
[3352:18140:0617/225728.521:VERBOSE1:confirmations.cc(205)] Added click confirmation for ad_notification with id c5a0375b-8ac2-4499-9c78-b14a5253f24e, transaction idb39c6d2b-3e68-4b02-9d4b-5b88c4f1a2e0 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d to the confirmations queue
[3352:18140:0617/225728.526:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/225728.531:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 22 seconds at 22:57:50.525
[3352:18140:0617/225735.860:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225735.860:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (17:2:3600 s)
[3352:18140:0617/225735.865:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225735.865:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (17:2:3600 s)
[3352:18140:0617/225738.929:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225738.932:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (17:2:3600 s)
[3352:18140:0617/225738.939:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225738.941:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (17.5:2:3600 s)
[3352:18140:0617/225740.628:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225740.647:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (18:2:3600 s)
[3352:18140:0617/225740.652:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225740.654:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (18:2:3600 s)
[3352:18140:0617/225740.656:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225740.657:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (18:2:3600 s)
[3352:18140:0617/225740.661:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225740.671:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (18.5:2:3600 s)
[3352:18140:0617/225740.702:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225740.705:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (19:2:3600 s)
[3352:18140:0617/225740.705:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225740.708:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (19:2:3600 s)
[3352:18140:0617/225741.023:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225741.024:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (19:2:3600 s)
[3352:18140:0617/225741.028:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225741.040:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (19.5:2:3600 s)
[3352:18140:0617/225743.661:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225743.662:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (20:2:3600 s)
[3352:18140:0617/225743.676:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225743.691:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (20:2:3600 s)
[3352:18140:0617/225743.691:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225743.694:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (20:2:3600 s)
[3352:18140:0617/225743.705:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225743.706:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (20.5:2:3600 s)
[3352:18140:0617/225743.711:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225743.721:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (21:2:3600 s)
[3352:18140:0617/225743.725:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225743.734:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (21:2:3600 s)
[3352:18140:0617/225743.739:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225743.740:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (21:2:3600 s)
[3352:18140:0617/225743.742:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225743.753:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (21.5:2:3600 s)
[3352:18140:0617/225750.539:VERBOSE1:confirmations.cc(229)] Removed view confirmation for ad_notification with id eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f, transaction id 6873e0ba-85fe-4f5b-9bdf-cab34bef649f and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 from the confirmations queue
[3352:18140:0617/225750.540:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[3352:18140:0617/225750.543:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[3352:18140:0617/225750.550:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[3352:18140:0617/225750.550:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f/paymentToken
  Method: kGet
[3352:18140:0617/225750.902:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[3352:18140:0617/225750.902:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f/paymentToken
  Response Status Code: 500
  Response: {"id":"eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f","createdAt":"2022-06-17T17:27:11.441Z","type":"view","modifiedAt":"2022-06-17T17:27:14.871Z","creativeInstanceId":"0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4","paymentToken":{"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4=","batchProof":"ffaLdH2cfTuuMFBpi1zHCayeli2cVKukI8o8G8BuewHz7OFf8FxichqACCaViYF/091wYUqbDbBN+ORw6lV0Bg==","signedTokens":["mDtACHYvPCHoRycKvkFU/UrbpSI0MATrlkG+K/FBNg4="]}}
[3352:18140:0617/225750.903:VERBOSE1:redeem_unblinded_token.cc(167)] Failed to fetch payment token
[3352:18140:0617/225750.911:VERBOSE1:confirmations.cc(323)] Failed to redeem unblinded token for ad_notification with confirmation id eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f, transaction id 6873e0ba-85fe-4f5b-9bdf-cab34bef649f, creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 and view
[3352:18140:0617/225750.916:VERBOSE1:confirmations.cc(205)] Added view confirmation for ad_notification with id eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f, transaction id6873e0ba-85fe-4f5b-9bdf-cab34bef649f and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 to the confirmations queue
[3352:18140:0617/225750.924:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[3352:18140:0617/225750.925:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 9 seconds at 22:57:59.923
[3352:18140:0617/225752.036:VERBOSE1:browser_manager.cc(77)] Browser did enter foreground
[3352:18140:0617/225752.036:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 01 (22:2:3600 s)
[3352:18140:0617/225752.040:VERBOSE1:browser_manager.cc(53)] Browser did become active
[3352:18140:0617/225752.049:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 16 (22:2:3600 s)
[3352:18140:0617/225756.311:VERBOSE1:browser_manager.cc(65)] Browser did resign active
[3352:18140:0617/225756.312:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 17 (22:2:3600 s)
[3352:18140:0617/225756.312:VERBOSE1:browser_manager.cc(89)] Browser did enter background
[3352:18140:0617/225756.320:VERBOSE6:user_activity_manager.cc(48)] Triggered event: 02 (22.5:2:3600 s)
[3352:18140:0617/225758.189:VERBOSE1:uphold.cc(114)] Uphold wallet is not VERIFIED.
[3352:18140:0617/225759.932:VERBOSE1:confirmations.cc(229)] Removed upvote confirmation for ad_notification with id 1eea8657-a461-454c-9b70-75a47ce759cc, transaction id f6ae24a7-53d2-4092-87c0-08fc12ce4030 and creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d from the confirmations queue
  1. Remove the Charles Proxy rewrite and then relaunched the browser and verified the retry is successful for the failed confirmations

Retry successful logs for failed confirmations:

[17720:15580:0617/231327.744:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[17720:15580:0617/231327.746:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[17720:15580:0617/231327.753:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[17720:15580:0617/231327.754:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/1eea8657-a461-454c-9b70-75a47ce759cc/paymentToken
  Method: kGet
[17720:15580:0617/231328.097:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[17720:15580:0617/231328.098:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/1eea8657-a461-454c-9b70-75a47ce759cc/paymentToken
  Response Status Code: 200
  Response: {"id":"1eea8657-a461-454c-9b70-75a47ce759cc","createdAt":"2022-06-17T17:17:47.835Z","type":"upvote","modifiedAt":"2022-06-17T17:17:52.319Z","creativeInstanceId":"04064736-ea43-463a-bd6e-6c2be4408b4d","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"tuTXTXyCyltWBJkIv62SAzZ4nde5wab8KVU4mOnebwiDduazCFXg6exfMJkcTOIzbGdE9yRbseOhhaTbLQaxAw==","signedTokens":["bAeCY0MispVPEC+XJyqxjWCS+/6KxKIkeQOLmqQHXXo="]}}
[17720:15580:0617/231328.107:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 1eea8657-a461-454c-9b70-75a47ce759cc, transaction id f6ae24a7-53d2-4092-87c0-08fc12ce4030, creative instance id 04064736-ea43-463a-bd6e-6c2be4408b4d and upvote. You now have 4 unblinded payment tokens which will be redeemed in 7 hours, 49 minutes, 7 seconds at 07:02:34.877
[17720:15580:0617/231328.111:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[17720:15580:0617/231328.112:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 0 seconds at 23:13:28.111
[17720:15580:0617/231328.113:VERBOSE1:confirmations.cc(229)] Removed click confirmation for ad_notification with id 8ec3912d-d380-4a78-91f2-c49c1723180e, transaction id a0260cdd-a2d7-4454-8f94-78ceb0bbb039 and creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 from the confirmations queue
[17720:15580:0617/231328.114:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[17720:15580:0617/231328.117:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[17720:15580:0617/231328.117:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[17720:15580:0617/231328.118:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/8ec3912d-d380-4a78-91f2-c49c1723180e/paymentToken
  Method: kGet
[17720:15580:0617/231328.457:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[17720:15580:0617/231328.458:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/8ec3912d-d380-4a78-91f2-c49c1723180e/paymentToken
  Response Status Code: 200
  Response: {"id":"8ec3912d-d380-4a78-91f2-c49c1723180e","createdAt":"2022-06-17T17:27:13.642Z","type":"click","modifiedAt":"2022-06-17T17:27:18.962Z","creativeInstanceId":"0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4","paymentToken":{"publicKey":"hPG3j7g7Vb6y635dinW8AVX5Izkh22hXfLXzPpnRRw8=","batchProof":"b2FZ5wqcVVyhvJuc5HNEMOaBPudwG6uSnWcuaN4A3Qenoe7lp8uWUDaGhdU2gtjwPLIQjBwfacTPE/pk9oreCg==","signedTokens":["jmD/l6rnuyUOg9SCKfAVKEzNb70Gg6O5ynK15/HhCCc="]}}
[17720:15580:0617/231328.465:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id 8ec3912d-d380-4a78-91f2-c49c1723180e, transaction id a0260cdd-a2d7-4454-8f94-78ceb0bbb039, creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 and click. You now have 5 unblinded payment tokens which will be redeemed in 7 hours, 49 minutes, 6 seconds at 07:02:34.877
[17720:15580:0617/231328.472:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[17720:15580:0617/231328.472:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 0 seconds at 23:13:28.471
[17720:15580:0617/231302.540:VERBOSE1:redeem_unblinded_token.cc(50)] Redeem unblinded token
[17720:15580:0617/231302.547:VERBOSE1:redeem_unblinded_token.cc(121)] FetchPaymentToken
[17720:15580:0617/231302.550:VERBOSE2:redeem_unblinded_token.cc(122)] GET /v2/confirmation/{confirmation_id}/paymentToken
[17720:15580:0617/231302.552:VERBOSE6:redeem_unblinded_token.cc(126)] URL Request:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f/paymentToken
  Method: kGet
[17720:15580:0617/231302.559:VERBOSE6:logging_util.cc(137)]
[ RESPONSE - OnRequest ]
> Url: https://grant.rewards.bravesoftware.com/v1/promotions?migrate=true&paymentId=18eb62be-2a55-4e5e-8e56-7d96dd48d7ab&platform=windows
> Result: Success
> HTTP Code: 200
> Body: {"promotions":[{"id":"f05568e6-f4a1-4438-8e81-cc0490fd14f7","createdAt":"2022-04-12T16:02:19.900576Z","expiresAt":"2022-07-12T16:02:19.900576Z","version":5,"suggestionsPerGrant":120,"approximateValue":"30","type":"ugp","available":true,"platform":"desktop","publicKeys":["6AphTvx13IgxVRG1nljV2ql1Y7yGUol6yrVMhEP85wI="],"legacyClaimed":false,"claimableUntil":"2022-07-12T16:02:19.900576Z"}]}

[17720:15580:0617/231303.713:VERBOSE1:redeem_unblinded_token.cc(137)] OnFetchPaymentToken
[17720:15580:0617/231303.714:VERBOSE6:redeem_unblinded_token.cc(139)] URL Response:
  URL: https://anonymous.ads.bravesoftware.com/v2/confirmation/eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f/paymentToken
  Response Status Code: 200
  Response: {"id":"eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f","createdAt":"2022-06-17T17:27:11.441Z","type":"view","modifiedAt":"2022-06-17T17:27:14.871Z","creativeInstanceId":"0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4","paymentToken":{"publicKey":"/ErFCyyTs6tQ+VCve8GsGcNZ4dZhYKIBisLZIbR+kR4=","batchProof":"ffaLdH2cfTuuMFBpi1zHCayeli2cVKukI8o8G8BuewHz7OFf8FxichqACCaViYF/091wYUqbDbBN+ORw6lV0Bg==","signedTokens":["mDtACHYvPCHoRycKvkFU/UrbpSI0MATrlkG+K/FBNg4="]}}
[17720:15580:0617/231303.724:VERBOSE1:confirmations.cc(303)] Successfully redeemed unblinded token for ad_notification with confirmation id eefaa2ea-3cc4-44b0-8165-19cdb6c43b8f, transaction id 6873e0ba-85fe-4f5b-9bdf-cab34bef649f, creative instance id 0e3fa44c-edd4-4ad3-b21e-e6c93ef001c4 and view. You now have 3 unblinded payment tokens which will be redeemed in 7 hours, 49 minutes, 31 seconds at 07:02:34.877
[17720:15580:0617/231303.727:VERBOSE1:refill_unblinded_tokens.cc(92)] No need to refill unblinded tokens as we already have 44 unblinded tokens which is above the minimum threshold of 20
[17720:15580:0617/231303.728:VERBOSE1:confirmations.cc(100)] Retry sending failed confirmations in 0 hours, 0 minutes, 24 seconds at 23:13:27.726
  1. Verified the confrmation.json file under the profile folder and ensured Failed confirmation queue is empty

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Brave Ads failed confirmations should not backoff if payment tokens are not created or not ready
3 participants