question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot stringify arbitrary non-POJOs GraphModel Warning

See original GitHub issue

Keep getting Cannot stringify arbitrary non-POJOs GraphModel warning

In store/index.js async nuxtServerInit({commit, dispatch}, context) { if (process.server) { try{ const products = await context.app.$shopify.product.fetchAll(); commit('products/setProducts', products) }catch (e) { console.log('products err: ',e) } } }

I get same error in asyncData.

Is there something I am missing?

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:1
  • Comments:16 (1 by maintainers)

github_iconTop GitHub Comments

3reactions
doomb0tcommented, Apr 8, 2020

Howdy I am open to taking a stab at this as I am also having this issue on a side project I am working on. The plan is to leverage nuxt-shopify and vuetify to provide an open source store front that can be hosted on github/lab pages so folks only have to pay for the storefront api access.

Anyhow, I will start on this asap

3reactions
Gomahcommented, Feb 27, 2020

Correct, Nuxt uses devalue to stringify Shopify’s GraphModel and it’s failing.

Read more comments on GitHub >

github_iconTop Results From Across the Web

WARN: Cannot stringify arbitrary non-POJOs #255 - GitHub
Hi, I installed and run vuex-orm/vuex-orm-examples-nuxt and I got warnings on terminal for every page refresh: WARN Cannot stringify ...
Read more >
`Cannot stringify arbitrary non-POJOs` and `Invalid prop
About the non POJO's warning: I solved the problem converting the class object to a POJO's at toJSON() function (which is the function ......
Read more >
Problems loading data with svelteKit +page.server.js - Reddit
Data returned from `load` while rendering /pb is not serializable: Cannot stringify arbitrary non-POJOs (data.posts[0]).
Read more >
nuxt请求提示WARN Cannot stringify a function ... - CSDN博客
WARN Cannot stringify a function validateStatus 16:46:55. WARN Cannot stringify arbitrary non-POJOs ClientRequest. 在这里插入图片描述 ...
Read more >
JSON.stringify() - JavaScript - MDN Web Docs
The JSON.stringify() method converts a JavaScript value to a JSON string, optionally replacing values if a replacer function is specified or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found