|
I'm grabbing data from my WordPress JSON feed and it's working except the last bit where I'm assigning the image path. Specifically:code:
code:
EDIT: Got it. code:
Boosh! fucked around with this message at 17:30 on Mar 7, 2016 |
# ¿ Mar 7, 2016 17:02 |
|
|
# ¿ May 12, 2024 19:31 |
|
Is there a jquery event or some method, that's the opposite of .one()? I have a function that loads content, then tiles them, masonry style. I would rather not reload the content of course. I suppose I could just add a counter or something but I'm open to something a bit more elegant. Boosh! fucked around with this message at 14:47 on Aug 8, 2016 |
# ¿ Aug 8, 2016 14:41 |
|
Ahhh simple enough, thanks fellas
|
# ¿ Aug 8, 2016 15:06 |
|
I am moving my Contentful API calls from my React app to my Express API, merely wrapping my Contentful calls in routes:code:
EDIT: Seems like any response over 60kb is having this issue vs limit size. Boosh! fucked around with this message at 14:54 on May 7, 2020 |
# ¿ May 7, 2020 14:38 |
|
Doom Mathematic posted:Your code is conspicuously missing a handler for when the promise chain rejects. My suspicion is that either client.getEntries(...) is failing, or response can't be converted to JSON for some reason. I suggest adding a .catch block to properly handle the error case - this may make it easier to diagnose the issue. Sorry I just left it off here, I have in the code. The getEntries call hasn't failed yet; I am able to console log the response every time from my API: Seems like once the getEntries payload is over 60k (it works for anything under) it sends nothing. On the client side, I'm getting this error: GET https://api.mysite.com/getAll net::ERR_EMPTY_RESPONSE I can work around this creating a new, trim object with only the data I need, but I'm still curious as to why this is happening. Boosh! fucked around with this message at 21:57 on May 7, 2020 |
# ¿ May 7, 2020 21:54 |
|
necrotic posted:Logging to console is not the same as serializing to json. Try to JSON.stringify it and see if that fails. That failed too. I copied the JSON.stringified of it and just tried to res.send it with all the Contentful logic removed and still nothing. code:
|
# ¿ May 8, 2020 00:16 |
|
Thanks guys. I’ll try those out and report back.
|
# ¿ May 8, 2020 12:34 |
|
|
# ¿ May 12, 2024 19:31 |
|
If you don't need a page for every dynamic route you can use catch-all segments: https://nextjs.org/docs/app/building-your-application/routing/dynamic-routes You can also ditch the static folders (category, preset, , slot and card). Your route would be something like: /<category id>/<preset id>/<slot id>/<card id>
|
# ¿ Feb 8, 2024 21:05 |