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

ERROR:ads_service_impl.cc(210)] Failed to read file: \ads_service\client.json #2948

Closed
srirambv opened this issue Jan 14, 2019 · 5 comments
Closed

Comments

@srirambv
Copy link
Contributor

Description

Launching browser from console without enabling ads logs this error ERROR:ads_service_impl.cc(210)] Failed to read file: \ads_service\client.json

Steps to Reproduce

  1. Launch a new profile on 0.60.12 via command line
  2. Do not enable ads from rewards
  3. Console keeps logging the error until ads is enabled and the bundle_state.*, catalog.json and client.json files are downloaded in ads_service

Actual result:

image

Expected result:

Should not log the error

Reproduces how often:

Easy

Brave version (brave://version info)

Brave 0.60.12 Chromium: 72.0.3626.53 (Official Build) dev (64-bit)
Revision 98434e6cd182d68ce396daa92e9c6310422e6763-refs/branch-heads/3626@{#620}
OS Windows

Reproducible on current release:

  • Does it reproduce on brave-browser dev/beta builds?
    Yes on Dev build

Website problems only:

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

Additional Information

cc: @tmancey @bridiver @GeetaSarvadnya

@srirambv srirambv added this to the 1.x Backlog milestone Jan 14, 2019
@mrose17 mrose17 assigned mrose17 and unassigned mrose17 Jan 16, 2019
@tmancey
Copy link
Contributor

tmancey commented Jan 23, 2019

@srirambv Issue is also occurring on macOS and also affects ledger

@rebron rebron removed this from the 1.x Backlog milestone Feb 7, 2019
@tmancey tmancey added the bug label Feb 13, 2019
@tmancey
Copy link
Contributor

tmancey commented Feb 15, 2019

@srirambv I can no longer reproduce this issue in brave/brave-core#1645, unless the rewards_service/confirmations.json file is missing which is expected behaviour as this informs Confirmations to recreate the file, i.e. fresh install

@srirambv
Copy link
Contributor Author

srirambv commented Mar 1, 2019

Still seeing the error on Windows on master. Kept the browser active for a while but still console kept logging the error

$ npm run start -- Release --enable-logging --vmodule=brave_ads=3 --brave-ads-staging --brave-ads-debug --brave-ads-testing

> brave@0.63.0 start C:\brave-browser
> node ./scripts/commands.js start "Release" "--enable-logging" "--vmodule=brave_ads=3" "--brave-ads-staging" "--brave-ads-debug" "--brave-ads-testing"

C:\brave-browser\src\out\Release\brave.exe --enable-logging --v=0 --vmodule=brave_ads=3 --disable-brave-update --enable-logging --vmodule=brave_ads=3 --brave-ads-staging --brave-ads-debug --brave-ads-testing
[16240:16360:0301/111701.746:ERROR:rewards_service_impl.cc(185)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ledger_state
[16240:16360:0301/111706.679:ERROR:rewards_service_impl.cc(287)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\rewards_service\confirmations.json
[16240:16368:0301/111709.164:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16360:0301/111709.370:ERROR:rewards_service_impl.cc(185)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\publishers_list
[16240:16360:0301/111710.285:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16360:0301/111711.418:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16360:0301/111712.531:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111713.654:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16360:0301/111714.782:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16252:0301/111715.572:ERROR:CONSOLE(0)] "Fetch API cannot load https://pdfjs.robwu.nl/logpdfjs. Redirects to data: URL are allowed only when mode is "no-cors".", source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[16240:16252:0301/111715.573:ERROR:CONSOLE(0)] "Uncaught (in promise) TypeError: Failed to fetch", source: chrome-extension://oemmndcbldboiebfnladdacbdfmadadm/pdfHandler.html (0)
[16240:16368:0301/111715.907:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111717.024:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111718.139:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111719.300:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111720.588:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111721.708:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111722.827:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111723.945:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111725.117:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json
[16240:16368:0301/111726.242:ERROR:ads_service_impl.cc(220)] Failed to read file: C:\Users\Owner\AppData\Local\BraveSoftware\Brave-Browser\User Data\Default\ads_service\client.json

image

@tmancey
Copy link
Contributor

tmancey commented Mar 4, 2019

We found this issue was caused due to Git Bash. @srirambv can you please link this ticket to your new ticket and retest using Command Prompt.

@srirambv
Copy link
Contributor Author

srirambv commented Mar 6, 2019

Unable to reproduce the issue when launching via command prompt. Closing as fixed.

@srirambv srirambv closed this as completed Mar 6, 2019
@tmancey tmancey added this to the Dupe / Invalid / Not actionable milestone Jun 3, 2019
@bbondy bbondy removed this from the Dupe / Invalid / Not actionable milestone May 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants