Skip to content

Brave Ads should retry payments balance endpoint after redeeming unblinded payment tokens if balance is not ready #13721

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

Closed
tmancey opened this issue Jan 22, 2021 · 1 comment · Fixed by brave/brave-core#7680

Comments

@tmancey
Copy link
Contributor

tmancey commented Jan 22, 2021

Description

Brave Ads should retry payments balance endpoint after redeeming unblinded payment tokens if balance is not ready

Steps to Reproduce

  1. Redeem unblinded payment tokens

Actual result:

"Estimated pending rewards" is incorrectly shown after redeeming unblinded payment tokens if the payments balance end point is not ready, i.e. returns the last known balance

Expected result:

Should retry payments balance endpoint until the new balance is ready so that we can display the correct value for "Estimated pending rewards"

Reproduces how often:

Easily reproduced

Brave version (brave://version info)

Version/Channel Information:

  • Can you reproduce this issue with the current release? Yes
  • Can you reproduce this issue with the beta channel? Yes
  • Can you reproduce this issue with the nightly channel? Yes

Other Additional Information:

  • Does the issue resolve itself when disabling Brave Shields? N/A
  • Does the issue resolve itself when disabling Brave Rewards? N/A
  • Is the issue reproducible on the latest version of Chrome? N/A

Miscellaneous Information:

Recommend to use Charles Proxy to rewrite the GET /v1/confirmation/payment/{payment_id} payments balance endpoint

@LaurenWags
Copy link
Member

LaurenWags commented Feb 22, 2021

Verified using

Brave	1.21.64 Chromium: 88.0.4324.182 (Official Build) beta (x86_64)
Revision	73ee5087001dcef33047c4ed650471b225dd8caf-refs/branch-heads/4324@{#2202}
OS	macOS Version 10.15.7 (Build 19H512)

Verified STR from #13721 (comment)

Used Charles Proxy to rewrite the response code for GET /v1/confirmation/payment/{payment_id} as per note in the issue.

Confirmed that payments balance endpoint was retried. Additional testing re: "Estimated pending rewards" was done under #13601 (comment).

Log examples
[3891:775:0222/134422.108748:VERBOSE1:redeem_unblinded_payment_tokens.cc(81)] RedeemUnblindedPaymentTokens
[3891:775:0222/134422.108858:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[3891:775:0222/134422.108919:VERBOSE5:redeem_unblinded_payment_tokens.cc(100)] URL Request:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/889c2ea9-21a5-49d4-b57c-1f8a695c3f14
  Content: {"payload":"{\"paymentId\":\"889c2ea9-21a5-49d4-b57c-1f8a695c3f14\"}","paymentCredentials":[{"credential":{"signature":"Yc/mMWk/pUMzj5OO24ceaLGj2W6/MsPS67hZiNq5AsxpQlzQoU9lHQXuLFnzaP017Lf9nyxn0g4NcqLdNxBGHw==","t":"B/AMIGZaW13pi+tCI3vg47dcKZrQ61L3cMtqRdbKNRLT2XbBRHoUejXJP3Lq/jNfTAz22TR+/lWUlkzusD7JMw=="},"publicKey":"yjoFRpnBNgkaS7wf0cgyEFop99q1nuZj/APdxeEVSTc="},{"credential":{"signature":"mfbh10ZYnDW3loEcpehPyX5buju26B9k0ICGs4zGtmCrijDHO6M7cjd+11iZoJ6wdiSqvr5b07M2+XBDEFN0cQ==","t":"3VF3PlEJb0sx49fW6KQ7TURXEEhPD7sZUfhEYjp0DIhbXfa9dRIpNvY5p44sR8hHEmqhY7UNR9cMjDTLh8ew2g=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"ppAlsDtMNdQr/BejWJIGz2RetjEcjrhdlGP1QM/z3JYQIpqK68l6pflG28AhjkfIqgXoDDP8P3odjKykg+Xzbw==","t":"/W2Q66CExveHFAoDGa+AYtADslxxrlPJHK9fgr4UPQzNAV7zw+jO9AN0u21pa4VJ0rHu+5+043Z+6feDFujfXg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"MfOi4mbq63mrTjHt3XZ00HNZ+n9OSsFVAtyLqPgqx0syMwXULrwK4KtS/r2yDZ+XmDMWduVgVNHW2Fc/mcyt2w==","t":"tFuoY5XuZXaMfALfDQmLXofRedx2f6XDPSxT3FEa7LJfK13SW7xqK441h0lQLPuExTQTm8A0Ml8N56Cjx2loqQ=="},"publicKey":"yjoFRpnBNgkaS7wf0cgyEFop99q1nuZj/APdxeEVSTc="},{"credential":{"signature":"fl4LfyJ964kVNOMDG0TLnZn/lkYBIRU0/ZTLVimNfzt6RE/cWvQW4W4/xUiAKe2zEIRqpQTx8L0+HJlizx6kDg==","t":"oNInwLaVGk5FteaZChL+GNRSVRP8viWRAfAVvBLSo+83tYp5gBMBrHoc6vr46WQb6sqz6Zlseprmcs5NlGpJhw=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"C37Lw9+yfUI/W4OCFUPxYl0TaFavfiF8ppulN5s3wfULbXUVPqfYbELPU1giYolNwjdyGE1uXODAkoOu1IMGag==","t":"ZkLvnXwwGsSoaAPu3OUuGTnADT8+RMljCUlAVQcLQHvDuwwoRh8gTz60rsWBapGNuYEYVEmWhVJkzAzj2pObLg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[3891:775:0222/134422.203314:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[3891:775:0222/134422.203435:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/889c2ea9-21a5-49d4-b57c-1f8a695c3f14
  Response Status Code: 500
  Response: {"status":"ok"}
[3891:775:0222/134422.203501:VERBOSE1:redeem_unblinded_payment_tokens.cc(116)] Failed to redeem unblinded payment tokens
[3891:775:0222/134422.203541:VERBOSE1:account.cc(210)] Failed to redeem unblinded payment tokens
[3891:775:0222/134422.203669:VERBOSE1:redeem_unblinded_payment_tokens.cc(171)] Retry redeeming unblinded payment tokens in 0 hours, 0 minutes, 18 seconds at 1:44 PM
[3891:775:0222/134440.206008:VERBOSE1:account.cc(214)] Retry redeeming unblinded payment tokens
[3891:775:0222/134440.206216:VERBOSE1:redeem_unblinded_payment_tokens.cc(81)] RedeemUnblindedPaymentTokens
[3891:775:0222/134440.206387:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[3891:775:0222/134440.206575:VERBOSE5:redeem_unblinded_payment_tokens.cc(100)] URL Request:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/889c2ea9-21a5-49d4-b57c-1f8a695c3f14
  Content: {"payload":"{\"paymentId\":\"889c2ea9-21a5-49d4-b57c-1f8a695c3f14\"}","paymentCredentials":[{"credential":{"signature":"Yc/mMWk/pUMzj5OO24ceaLGj2W6/MsPS67hZiNq5AsxpQlzQoU9lHQXuLFnzaP017Lf9nyxn0g4NcqLdNxBGHw==","t":"B/AMIGZaW13pi+tCI3vg47dcKZrQ61L3cMtqRdbKNRLT2XbBRHoUejXJP3Lq/jNfTAz22TR+/lWUlkzusD7JMw=="},"publicKey":"yjoFRpnBNgkaS7wf0cgyEFop99q1nuZj/APdxeEVSTc="},{"credential":{"signature":"mfbh10ZYnDW3loEcpehPyX5buju26B9k0ICGs4zGtmCrijDHO6M7cjd+11iZoJ6wdiSqvr5b07M2+XBDEFN0cQ==","t":"3VF3PlEJb0sx49fW6KQ7TURXEEhPD7sZUfhEYjp0DIhbXfa9dRIpNvY5p44sR8hHEmqhY7UNR9cMjDTLh8ew2g=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"ppAlsDtMNdQr/BejWJIGz2RetjEcjrhdlGP1QM/z3JYQIpqK68l6pflG28AhjkfIqgXoDDP8P3odjKykg+Xzbw==","t":"/W2Q66CExveHFAoDGa+AYtADslxxrlPJHK9fgr4UPQzNAV7zw+jO9AN0u21pa4VJ0rHu+5+043Z+6feDFujfXg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"MfOi4mbq63mrTjHt3XZ00HNZ+n9OSsFVAtyLqPgqx0syMwXULrwK4KtS/r2yDZ+XmDMWduVgVNHW2Fc/mcyt2w==","t":"tFuoY5XuZXaMfALfDQmLXofRedx2f6XDPSxT3FEa7LJfK13SW7xqK441h0lQLPuExTQTm8A0Ml8N56Cjx2loqQ=="},"publicKey":"yjoFRpnBNgkaS7wf0cgyEFop99q1nuZj/APdxeEVSTc="},{"credential":{"signature":"fl4LfyJ964kVNOMDG0TLnZn/lkYBIRU0/ZTLVimNfzt6RE/cWvQW4W4/xUiAKe2zEIRqpQTx8L0+HJlizx6kDg==","t":"oNInwLaVGk5FteaZChL+GNRSVRP8viWRAfAVvBLSo+83tYp5gBMBrHoc6vr46WQb6sqz6Zlseprmcs5NlGpJhw=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"C37Lw9+yfUI/W4OCFUPxYl0TaFavfiF8ppulN5s3wfULbXUVPqfYbELPU1giYolNwjdyGE1uXODAkoOu1IMGag==","t":"ZkLvnXwwGsSoaAPu3OUuGTnADT8+RMljCUlAVQcLQHvDuwwoRh8gTz60rsWBapGNuYEYVEmWhVJkzAzj2pObLg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"fIUYX3ZvRiKVdVldaLyeCLH5ckyE45LunsxKrbjEGvDrXhnTHZMuM4fsmCViE9i6h6bJz7hJC/rrq9iB3Q7Lmg==","t":"oK5HHZI8GCa/CL0E1m//vdM9Wx/z3TtLFaFwB2brfd40/FImI8SGn9Dp0SZA4AADNPAVLrhc9NhRkHiQAs7JTg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"3Zzy8/sbb3s1SIWQZEVgGz3YwLIdnM+rHUSzZrBbQsesh3kUDX+LbKYBOtdhytT/2BG5KMSVhJb6A84IXfyluQ==","t":"B/RQUFmeCx8qKQtumIjy2x0dpGz+bu76c+ENsJGA/kr5/VJ4W9UtqnEHgtuf/RgeNWsFysZ1vOWOfxRRVv5N1A=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"WgUHtfz0tSMGwbUxWzXryAN4XEBZPdgSiyZLcPbI9wBHHPTI6n0Gnu0O3ugG/BLx3R80tQnJ9lctIjdOvHhfQQ==","t":"5F8JySQK6nHXF7Ez8QRLoo0Bw6W9mmwDCUwFoVIbhwr+uKRo3bag48+mIULu4jApqsMTXVlrsex+mumG/hVAfg=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[3891:775:0222/134440.351889:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[3891:775:0222/134440.351992:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/889c2ea9-21a5-49d4-b57c-1f8a695c3f14
  Response Status Code: 500
  Response: {"status":"ok"}
[3891:775:0222/134440.352069:VERBOSE1:redeem_unblinded_payment_tokens.cc(116)] Failed to redeem unblinded payment tokens
[3891:775:0222/134440.352118:VERBOSE1:account.cc(210)] Failed to redeem unblinded payment tokens
[3891:775:0222/134440.352254:VERBOSE1:redeem_unblinded_payment_tokens.cc(171)] Retry redeeming unblinded payment tokens in 0 hours, 2 minutes, 54 seconds at 1:47 PM

Verification passed on

Brave 1.21.64 Chromium: 88.0.4324.182 (Official Build) beta (64-bit)
Revision 73ee5087001dcef33047c4ed650471b225dd8caf-refs/branch-heads/4324@{#2202}
OS Ubuntu 18.04 LTS

Verified that after successfully redeemed unblinded payment tokens, the payment balance is retried.

Log

Verified when balance fails to be fetched, retry is scheduled

[7448:7448:0224/172954.142054:VERBOSE1:ad_rewards.cc(397)] Retry reconciling ad rewards
[7448:7448:0224/172954.142112:VERBOSE1:ad_rewards.cc(264)] Reconcile ad rewards
[7448:7448:0224/172954.142199:VERBOSE1:ad_rewards.cc(272)] GetPayments
[7448:7448:0224/172954.142223:VERBOSE2:ad_rewards.cc(273)] GET /v1/confirmation/payment/{payment_id}
[7448:7448:0224/172954.142258:VERBOSE5:ad_rewards.cc(277)] URL Request:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Method: BraveAdsUrlRequestMethod::GET
[7448:7448:0224/172954.562824:VERBOSE1:ad_rewards.cc(287)] OnGetPayments
[7448:7448:0224/172954.562930:VERBOSE6:ad_rewards.cc(289)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Response Status Code: 404
  Response: [{"month":"2021-02","transactionCount":"4","balance":"0.095"}]
[7448:7448:0224/172954.563010:VERBOSE1:ad_rewards.cc(293)] Failed to get payment balance
[7448:7448:0224/172954.563055:VERBOSE1:ad_rewards.cc(373)] Failed to reconcile ad rewards
[7448:7448:0224/172954.563113:VERBOSE1:ad_rewards.cc(393)] Retry reconciling ad rewards in 0 hours, 8 minutes, 29 seconds at 5:38 PM

Verified that after successfully redeemed unblinded payment tokens, the payment balance is retried

[7448:7448:0224/173409.834543:VERBOSE1:redeem_unblinded_payment_tokens.cc(81)] RedeemUnblindedPaymentTokens
[7448:7448:0224/173409.834696:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[7448:7448:0224/173409.834747:VERBOSE5:redeem_unblinded_payment_tokens.cc(100)] URL Request:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Content: {"payload":"{\"paymentId\":\"e6aa54bb-85c5-41ec-9286-d96b79a36816\"}","paymentCredentials":[{"credential":{"signature":"ooG2FgAMFTxVnu1dxKygw43DUowwQpXEaOcdXzfW2PiA3uwCVO+iCqRr7JwWnVPSyJS5G2F2zsgSQms4GEWxgQ==","t":"3LMNZqPhI1wcNuAQWuXVg1mrssyPN+uKS/+j73gD05cNtU5K8+qVUDxwMihf8OrsalB4ORtIc+yl7XChIoKu8Q=="},"publicKey":"yjoFRpnBNgkaS7wf0cgyEFop99q1nuZj/APdxeEVSTc="},{"credential":{"signature":"DlyQABRD+OpJBMUk+NNHo8UcED1EWh33WQK6MGQx5bjW8m4q9ETFxRy803LTHGAssBbiZyYtPESc3cnTCQYREw==","t":"3cEy9KTU1AqW1QeQNk0XBSo/XvKmc9f6SyMxK8OrH547/iyI5JGjYyPTsi1NPPkwIfi3GqEZ3iePD7YNh0G5WQ=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"zIr8bbhL7csBpKkbIE+dHrrw7TWLNQhLDJG7a6d7ey3S1470ivZWn20jxyrOR9UrXSXC/HH2PsF0IHF2UYSvcw==","t":"OLbx4C8VItdd4SBr/8edZ6N4fXXJSEQl8hfzjRGxTUMGLztnMxSw+Il2J2UscGp0aGU/8fqW65P0FxfLZyclRQ=="},"publicKey":"mmXlFlskcF+LjQmJTPQUmoDMV8Co2r+0eNqSyzCywmk="},{"credential":{"signature":"6QOIVnJ1eE8ug9ZDIfJ/evfh5Guh2kRI/58gvjgBIrQCQLEtzU92aczOpPz28rg62Q0xPXpff/azVWM0QRelCw==","t":"CNuDd9A/iG4HH9KnkMFv+tmwEQ8abp0O13YSr8oz353qSBN8Kxh8m/bt6W9LlZkDod+3sCcMVfoaAxs3ea6+jA=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"HXIF9YPNOzDAMrptdJQcRE0XJHVyCBRwTiIvKYlN1xB9IlU1nbeIBmOQHkGghFsq3dVOHgcOjIRs/T4wjCOVaA==","t":"QjjhQm+u0XPlFfIxSwyiAFJKvMwH5FyvF5vrikxt3gNLIv0R8dd92dtJwz8RWflFmcEjUgODe6/RoV2x9+ONSA=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"W4MZ4uLG8xA1lgEs2n4cOnfo0Q8yS7fxeZhk7I6722/7bE7F7uKx/0qj87PFv0cKhVyTHMSsKSyUFKKRbbsSkw==","t":"BqV+Vvnt+PovKY6UjR5Z0XoQRR6VKK2FvFtGgjprnHShSdiCKRH/b4dsydU9iQZ84revIP30/QHAHZhnTjMWsg=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="},{"credential":{"signature":"jUM9uAWGIzOCdzqDxkw5DzX3wTM82bEH3jzZr3HTNaMYd/c2eSsrhFfqnFUZM7McBqIN8/+f5oX2SxDj+gXhJw==","t":"qCz5Vv4Zu5yYxlu1GNXK1npE8UPX/KndjgRdlUpXsJPYsZudbVXqgQXDs2Ngz3s4TeUqixywdC1ajOs44uiLLQ=="},"publicKey":"oOJO/xLaCXGW6yhpeIfM4K1X2ln7sgdjTCTCHe8BugE="},{"credential":{"signature":"iVnfUZuaKI8JOrFSMCqZMG/wVQ385ZJuU9R/KRVinStGID1eZDA4PEEjD6Vg9vHlp4JHmVsOlU0R5xelzD7low==","t":"/7oVPCqvKwh/NrEk4MlAZUvcRZW1WMit+niyx1YJr9ddFbOIA4H7cpeZg7nA6skooWYFsfatGqUV+BARgNouNw=="},"publicKey":"uor3AzFj4OmdCxwetsYD1TxPXZSw40t3j/VOCUyC7Rs="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[7448:7448:0224/173410.281988:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[7448:7448:0224/173410.282065:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Response Status Code: 200
  Response: {"status":"ok"}
[7448:7448:0224/173410.282164:VERBOSE1:account.cc(194)] Successfully redeemed unblinded payment tokens

The payment balance is retried:

[7448:7448:0224/173823.564770:VERBOSE1:ad_rewards.cc(397)] Retry reconciling ad rewards
[7448:7448:0224/173823.564890:VERBOSE1:ad_rewards.cc(264)] Reconcile ad rewards
[7448:7448:0224/173823.564969:VERBOSE1:ad_rewards.cc(272)] GetPayments
[7448:7448:0224/173823.565038:VERBOSE2:ad_rewards.cc(273)] GET /v1/confirmation/payment/{payment_id}
[7448:7448:0224/173823.565120:VERBOSE5:ad_rewards.cc(277)] URL Request:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Method: BraveAdsUrlRequestMethod::GET
[7448:7448:0224/173824.030158:VERBOSE1:ad_rewards.cc(287)] OnGetPayments
[7448:7448:0224/173824.030266:VERBOSE6:ad_rewards.cc(289)] URL Response:
  URL: https://ads-serve.brave.com/v1/confirmation/payment/e6aa54bb-85c5-41ec-9286-d96b79a36816
  Response Status Code: 200
  Response: [{"month":"2021-02","transactionCount":"4","balance":"0.095"}]

The Estimated pending rewards looks good
image


Verification passed on

Brave | 1.21.70 Chromium: 89.0.4389.69 (Official Build) (64-bit)
-- | --
Revision | 6df9174a477a0bea2118cb4669954d517be16104-refs/branch-heads/4389@{#1332}
OS | Windows 10 OS Version 2004 (Build 19041.804)

Verified that after successfully redeemed unblinded payment tokens, the payment balance is retried.

Log
[512:9008:0301/164657.087:VERBOSE1:ad_rewards.cc(397)] Retry reconciling ad rewards
[512:9008:0301/164657.087:VERBOSE1:ad_rewards.cc(264)] Reconcile ad rewards
[512:9008:0301/164657.091:VERBOSE1:ad_rewards.cc(272)] GetPayments
[512:9008:0301/164657.098:VERBOSE2:ad_rewards.cc(273)] GET /v1/confirmation/payment/{payment_id}
[512:9008:0301/164657.100:VERBOSE5:ad_rewards.cc(277)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Method: BraveAdsUrlRequestMethod::GET
[512:9008:0301/164657.441:VERBOSE1:ad_rewards.cc(287)] OnGetPayments
[512:9008:0301/164657.441:VERBOSE6:ad_rewards.cc(289)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Response Status Code: 500
  Response: [{"balance":"0","month":"2021-03","transactionCount":"0"}]
[512:9008:0301/164657.444:VERBOSE1:ad_rewards.cc(293)] Failed to get payment balance
[512:9008:0301/164657.451:VERBOSE1:ad_rewards.cc(373)] Failed to reconcile ad rewards
[512:9008:0301/164657.451:VERBOSE1:ad_rewards.cc(393)] Retry reconciling ad rewards in 0 hours, 4 minutes, 21 seconds at 4:51 PM

[3496:11620:0301/165544.746:VERBOSE1:redeem_unblinded_payment_tokens.cc(81)] RedeemUnblindedPaymentTokens
[3496:11620:0301/165544.751:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[3496:11620:0301/165544.758:VERBOSE5:redeem_unblinded_payment_tokens.cc(100)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Content: {"payload":"{\"paymentId\":\"5cf8f2b1-04a0-4563-81b8-0c805205ee2b\"}","paymentCredentials":[{"credential":{"signature":"7/08A58yOXeNhdNAAtRYGfN/SxZAn1f+qzpe8Ab1/F7jlTPgINHLE6xAYnJtnPNBkexH67jr8bag3h4qcopOnw==","t":"I0ae0BgIwpUOKQFz7vg6jA4N+uqRI4sFwU8hNqt8gh6bSsrmiN6gS9m3J8VIcBq7QfcqmVu/XcZXCl9oCu0bRw=="},"publicKey":"CrQLMWmUuYog6Q93nScS8Lo1HHSex8WM2Qxij7qhjkQ="},{"credential":{"signature":"P/EPe+bwUAYUpYUj3hENbNvCcznzEhWi2Vv9OVyU21LPdAgLRzqvzKqJSO9YH/wztYpcnKO4byhFIeYdDegIpg==","t":"60zN8dJgwJ3YsohDXeYqRKFivTZFaBjnER8q6T7kp0hwgmG5iKYjwQYxCG5W1J8ANOoPR8BIBbP2V7ItdMP+jw=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[3496:11620:0301/165545.483:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[3496:11620:0301/165545.484:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Response Status Code: 500
  Response: {"status":"ok"}
[3496:11620:0301/165545.485:VERBOSE1:redeem_unblinded_payment_tokens.cc(116)] Failed to redeem unblinded payment tokens
[3496:11620:0301/165545.486:VERBOSE1:account.cc(210)] Failed to redeem unblinded payment tokens
[3496:11620:0301/165545.493:VERBOSE1:redeem_unblinded_payment_tokens.cc(171)] Retry redeeming unblinded payment tokens in 0 hours, 0 minutes, 19 seconds at 4:56 PM

[3512:5072:0301/172252.015:VERBOSE1:redeem_unblinded_payment_tokens.cc(81)] RedeemUnblindedPaymentTokens
[3512:5072:0301/172252.015:VERBOSE2:redeem_unblinded_payment_tokens.cc(90)] PUT /v1/confirmation/payment/{payment_id}
[3512:5072:0301/172252.020:VERBOSE5:redeem_unblinded_payment_tokens.cc(100)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Content: {"payload":"{\"paymentId\":\"5cf8f2b1-04a0-4563-81b8-0c805205ee2b\"}","paymentCredentials":[{"credential":{"signature":"7/08A58yOXeNhdNAAtRYGfN/SxZAn1f+qzpe8Ab1/F7jlTPgINHLE6xAYnJtnPNBkexH67jr8bag3h4qcopOnw==","t":"I0ae0BgIwpUOKQFz7vg6jA4N+uqRI4sFwU8hNqt8gh6bSsrmiN6gS9m3J8VIcBq7QfcqmVu/XcZXCl9oCu0bRw=="},"publicKey":"CrQLMWmUuYog6Q93nScS8Lo1HHSex8WM2Qxij7qhjkQ="},{"credential":{"signature":"P/EPe+bwUAYUpYUj3hENbNvCcznzEhWi2Vv9OVyU21LPdAgLRzqvzKqJSO9YH/wztYpcnKO4byhFIeYdDegIpg==","t":"60zN8dJgwJ3YsohDXeYqRKFivTZFaBjnER8q6T7kp0hwgmG5iKYjwQYxCG5W1J8ANOoPR8BIBbP2V7ItdMP+jw=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="},{"credential":{"signature":"CC2SVLXt1865eMp0qGA8qpchpKBsAiiYEMoRPCCyDn32NtBbnGyMknglnJEfOSv75njjQ47i/HUAK9HCLbRmTg==","t":"Sntg5IkOyISp4AuT8C6VYcX0shJqageSfelQY58hLD5sqC2d3bqXHIN86W9nXikrODtC6Ll3kcr7DyPQNyxD0g=="},"publicKey":"JiwFR2EU/Adf1lgox+xqOVPuc6a/rxdy/LguFG5eaXg="},{"credential":{"signature":"kMButKtbfdLTJN4BuAtqkRCjWco7bPy/6LT5e1mQ0Rt3g5VbeeVKFCLGxusZdcdijqlPZaOYh/RqI+WNhgP7sA==","t":"qA3Bvmk3mWeWHwU9yvi02gavUSTk5n8ESSthZv2IG6zqjapyUKw/co02C+fJAcOL22ePcuyULDS3Ju+K//j5AQ=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="},{"credential":{"signature":"M06B55l1V+vmXvDa06bnYW1gxXs7Lkkni3TvvmRbvoXRAyUFystXL9z1VG2P2sSiFeMvOubY/hg2BvUTgpbSvw==","t":"k/u8xLhsGXiILf+0NTTEp9CjT2k/xSOfi4EFHeLu8t+7JM45EyCGlX1adfa2jTmbrOIFTJ7vOjPGh4FCKyMN8A=="},"publicKey":"CrQLMWmUuYog6Q93nScS8Lo1HHSex8WM2Qxij7qhjkQ="},{"credential":{"signature":"CGKaN2oCVNMk/pfLCvArpSu/dkNkHeG5nb7OQqJStZqMhtjSLZ8XFUpww5SJ04ev9Sf27Jy3W57CLdRmuZfA2w==","t":"+HGtJypqT9doyjCkjY22mNYYq31eLZqFPnclhWvlFQhl/O7eQvA/cDWLgYF7ehWfsq4rxKOMGOc7fJpPCLTF0Q=="},"publicKey":"lLO5tErGoTK0askrALab6pKGAnBHqELSyw/evqZRwH8="}]}
  Content Type: application/json
  Method: BraveAdsUrlRequestMethod::PUT
[3512:5072:0301/172252.700:VERBOSE1:redeem_unblinded_payment_tokens.cc(110)] OnRedeemUnblindedPaymentTokens
[3512:5072:0301/172252.701:VERBOSE6:redeem_unblinded_payment_tokens.cc(112)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Response Status Code: 200
  Response: {"status":"ok"}
[3512:5072:0301/172252.703:VERBOSE1:account.cc(194)] Successfully redeemed unblinded payment tokens
[3512:5072:0301/172448.157:VERBOSE1:ad_rewards.cc(272)] GetPayments
[3512:5072:0301/172448.161:VERBOSE2:ad_rewards.cc(273)] GET /v1/confirmation/payment/{payment_id}
[3512:5072:0301/172448.162:VERBOSE5:ad_rewards.cc(277)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Method: BraveAdsUrlRequestMethod::GET
[3512:5072:0301/172448.833:VERBOSE1:ad_rewards.cc(287)] OnGetPayments
[3512:5072:0301/172448.833:VERBOSE6:ad_rewards.cc(289)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Response Status Code: 200
  Response: [{"month":"2021-03","transactionCount":"3","balance":"0.06"}]
[3512:5072:0301/172448.835:INFO:ad_rewards.cc(299)] Payment balance is not ready
[3512:5072:0301/172448.843:VERBOSE1:ad_rewards.cc(373)] Failed to reconcile ad rewards
[3512:5072:0301/172448.843:VERBOSE1:ad_rewards.cc(393)] Retry reconciling ad rewards in 0 hours, 0 minutes, 52 seconds at 5:25 PM
[3512:5072:0301/172540.844:VERBOSE1:ad_rewards.cc(397)] Retry reconciling ad rewards
[3512:5072:0301/172540.845:VERBOSE1:ad_rewards.cc(264)] Reconcile ad rewards
[3512:5072:0301/172540.853:VERBOSE1:ad_rewards.cc(272)] GetPayments
[3512:5072:0301/172540.859:VERBOSE2:ad_rewards.cc(273)] GET /v1/confirmation/payment/{payment_id}
[3512:5072:0301/172540.860:VERBOSE5:ad_rewards.cc(277)] URL Request:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Method: BraveAdsUrlRequestMethod::GET
[3512:5072:0301/172541.576:VERBOSE1:ad_rewards.cc(287)] OnGetPayments
[3512:5072:0301/172541.576:VERBOSE6:ad_rewards.cc(289)] URL Response:
  URL: https://ads-serve.bravesoftware.com/v1/confirmation/payment/5cf8f2b1-04a0-4563-81b8-0c805205ee2b
  Response Status Code: 200
  Response: [{"month":"2021-03","transactionCount":"3","balance":"0.06"}]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment