prebid / prebid-universal-creative

Apache License 2.0
43 stars 71 forks source link

JS Parsing error when rendering creative #108

Closed StarWindMoonCloud closed 4 years ago

StarWindMoonCloud commented 4 years ago

Describe the bug I/Ads: JS: Error parsing response from cache host: SyntaxError: Unexpected token N in JSON at position 0 (https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js:3) I/chromium: [INFO:CONSOLE(3)] "Error parsing response from cache host: SyntaxError: Unexpected token N in JSON at position 0", source: https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js (3) E/Ads: JS: Uncaught TypeError: Cannot read property 'crid' of undefined (https://cdn.jsdelivr.net/npm/prebid-universal-creative@latest/dist/creative.js:3)

To Reproduce Steps to reproduce the behavior:

  1. Prebid mobile ad ops set up following http://prebid.org/prebid-mobile/adops-line-item-setup-dfp.html
  2. prebid server and prebid cache setup following https://github.com/prebid/prebid-server and https://github.com/prebid/prebid-cache
  3. add bidders (e.g. pubmatic, vrtcal)
  4. Prebid android integration following http://prebid.org/prebid-mobile/pbm-api/android/code-integration-android.html

Expected behavior Ads can be rendered correctly

Smartphone (please complete the following information):

Additional context tried https://cdn.jsdelivr.net/npm/prebid-universal-creative@1.7.0/dist/creative.js and https://cdn.jsdelivr.net/npm/prebid-universal-creative@1.6.0/dist/creative.js, not helping

StarWindMoonCloud commented 4 years ago

Found the issue, turned out client directly talk to cache server for creative data, the issue was due to private cache server