Could not read preloaded VIEW_DATA

64 views
Skip to first unread message

Igor Oleynikov

unread,
Apr 13, 2017, 2:07:49 AM4/13/17
to InboxSDK
Dear Collegues
I have trouble with execution of simplest test app hello-world-master. 
All worked very well but unexpectedly began to appear error. 
injected.js:33 Error in injected script Error: Could not read preloaded VIEW_DATA
    at f (injected.js:33)
    at Object.i [as setup] (injected.js:33)
    at s (injected.js:32)
    at Object.<anonymous> (injected.js:33)
    at Object.r.384../gmail/setup-gmail-interceptor (injected.js:33)
    at o (injected.js:19)
    at t (injected.js:19)
    at injected.js:19 undefined
...
Extension App Ids: [
  {
    "appId": "sdk_GmailExtrctor2_d835825090",
    "causedBy": true
  }

Sent by App: false 
Session Id: 1492061841659-0.5770597947549148 

Extension Id: chrome-extension://mhckjgmlnoemmoocflfofblmlpdfcckc/ 

InboxSDK Loader Version: 0.7.6-612213e7ed499c62 
InboxSDK Implementation Version: 0.7.24-1492042462767-10ce881004d753dd

What could be the problem?
Very much I ask you to help.
Thanks and Good Luck.

Josip Lukacevic

unread,
Apr 13, 2017, 6:49:12 AM4/13/17
to InboxSDK
I'm also getting the same erorr after publishing new version of chrome extension app yesterday

Nick Caruso

unread,
Apr 13, 2017, 10:18:40 AM4/13/17
to InboxSDK
I'm seeing the same issue with code that was fine yesterday.

Josip Lukacevic

unread,
Apr 13, 2017, 6:43:35 PM4/13/17
to InboxSDK
Looks like everything is back to normal now!

Chris Cowan

unread,
Apr 13, 2017, 7:14:13 PM4/13/17
to InboxSDK
Thanks for the reports! Gmail made some changes today that affected a few parts of the InboxSDK, and we've updated the InboxSDK to be compatible earlier. The updated code is automatically used by the InboxSDK, so no extensions need to be changed.

The Gmail changes mean that for a while today for some users, getting the id of thread rows could be slower than usual (we try to parse the VIEW_DATA value from the page to get the thread row ids, otherwise we have to fall back to a slower method), and custom thread lists could fail to render (Gmail slightly changed the serialization format of their ajax requests).

FireShot Addon

unread,
May 3, 2017, 11:11:33 AM5/3/17
to InboxSDK
Dear Chris,

My Chrome extension uses the InboxSDK. Even if I do not do any actions (except of basic init), I'm getting the following errors. Can you please suggest?

 
www.inboxsdk.com/build/injected.js:39 Error in injected script Error: Could not read preloaded VIEW_DATA
    at Object.i [as setup] (www.inboxsdk.com/build/injected.js:39)
    at Object.<anonymous> (www.inboxsdk.com/build/injected.js:39)
    at Object.r.390../gmail/setup-gmail-interceptor (www.inboxsdk.com/build/injected.js:39)
www.inboxsdk.com/build/platform-implementation.js:81 Error logged: Error: Could not read preloaded VIEW_DATA
    at Object.i [as setup] (www.inboxsdk.com/build/injected.js:39)
    at Object.<anonymous> (www.inboxsdk.com/build/injected.js:39)
    at Object.r.390../gmail/setup-gmail-interceptor (www.inboxsdk.com/build/injected.js:39)

Original error stack:
Error: Could not read preloaded VIEW_DATA
    at Object.r.390../gmail/setup-gmail-interceptor (https://www.inboxsdk.com/build/injected.js:39:26606)

Error logged from:

Extension App Ids: [
  {
    "appId": "sdk_FireShot_c30c6a0127",
    "causedBy": true
  }
Sent by App: false 
Session Id: 1493823918100-0.23598465693650938 
Extension Id: chrome-extension://legfpnnmhhnhjgekmmbkilmijnjoehne/ 
InboxSDK Loader Version: 0.7.24-1484787998857-c248fbb55be579d3 
InboxSDK Implementation Version: 0.7.24-1492717846119-e2358e5287456232
www.inboxsdk.com/build/injected.js:39 Error in injected script Error: failed to find globalSettings
    at <anonymous> Object
www.inboxsdk.com/build/platform-implementation.js:81 Error logged: Error: failed to find globalSettings
    at <anonymous> 

Original error stack:
Error: failed to find globalSettings
    at <anonymous> 

Error logged from:

Error details: Object 

Extension App Ids: [
  {
    "appId": "sdk_FireShot_c30c6a0127",
    "causedBy": true
  }
Sent by App: false 
Session Id: 1493823918100-0.23598465693650938 
Extension Id: chrome-extension://legfpnnmhhnhjgekmmbkilmijnjoehne/ 
InboxSDK Loader Version: 0.7.24-1484787998857-c248fbb55be579d3 
InboxSDK Implementation Version: 0.7.24-1492717846119-e2358e5287456232
Reply all
Reply to author
Forward
0 new messages