Incomplete data from prefetch
Answered
Common Crane posted this in #help-forum
Common CraneOP
When I go to pubkey.bar and hover over the "Yes" link, my browser GETs https://pubkey.bar/_next/data/KvtRKJyvA1RU4ccAyV5Mh/home.json which responds with:
Notice this is invalid JSON. Then, when the user actually presses "Yes," the client breaks due to the bad JSON.
Please help.
https://github.com/vercel/next.js/issues/69020
{
"pageProps": {
"compScreen": {
"textClass": "text-blue-50",
"src": "/_next/static/media/compyblue.6812461b.png"
},
"events": [
{
"dateTime": "2024-08-22T18:00-04:00",
"eventUrl": "https://www.meetup.com/pubkey-meetups/events/302518406",
"title": "⚡️ Lightning Monthly ⚡️ sponsored by Stak"
},
{
"dateTime": "2024-09-12T18:00-04:00",
"eventUrl": "https://www.meetup.com/pubkey-meetups/events/302551379",
"title": "HRF x PNotice this is invalid JSON. Then, when the user actually presses "Yes," the client breaks due to the bad JSON.
Please help.
https://github.com/vercel/next.js/issues/69020
Answered by Common Crane
This was solved by going to the network tab and using the "Disable Cache" checkbox. This busted the cache and luckily fixed the data.
3 Replies
Common CraneOP
This was solved by going to the network tab and using the "Disable Cache" checkbox. This busted the cache and luckily fixed the data.
Answer