PricingBlog

API call not working on live website

  • baba_bambule-1537402701871190157

    BabaBambule

    7 hours ago

    I have an graphql call on my website that is set to auto-fetch and ssr. Inside the editor the call is working just fine and instantly triggering when the page gets loaded.

    On my testing and live website it doesn't get triggered at all. Network panel in dev tools stays empty, even when I change the api call to onload.

    get a weird error though from page.main.js
    page.main.js?v=ef88939:7 Uncaught TypeError: Cannot read properties of null (reading 'type')
    at page.main.js?v=ef88939:7:5165
    at Array.some (<anonymous>)
    at Ko (page.main.js?v=ef88939:7:5155)
    at wu (page.main.js?v=ef88939:7:34632)
    at Ec (page.main.js?v=ef88939:7:33247)
    at RBt-KiH7UQ.js?t=1786615695553:8:1

    which is referenced to this function

    var Ko = e => {
    if (!e)
    return {};
    let r = {};
    for (let t in e) {
    let o = e[t];
    (j(o.content) && o.content.type !== "value" || Object.values(o.attrs ?? {}).some(a => a.type !== "value")) && (r[t] = o)
    }
    return r
    }
    1
  • jacobkofoed-1537403487007023104

    Jacob Kofoed

    7 hours ago

    I will have a look. Any chance you can send me a link to your project?
  • baba_bambule-1537419341363155096

    BabaBambule

    6 hours ago

    solved. it was a messed up a meta tag in the head element. removed it and now it's working again
    👍1