depatchedmode / simplest-frame

The simplest Farcaster Frame possible
https://warpcast.com/depatchedmode/0x0dbb53c2
MIT License
101 stars 35 forks source link

netlify 502 bad gateway: sharp #3

Open 0xrpj opened 5 months ago

0xrpj commented 5 months ago
image
0xrpj commented 5 months ago

I was working on macOS.

Fixed with this command: npm install --platform=linux --arch=x64 sharp

depatchedmode commented 5 months ago

Thanks @0xrpj! There might be a need for us to remove the package-lock.json as I think that npm install command will fix the deployed environment for some folks, but end up breaking local.

Either way, I'll link to this thread from the README for now. And I'm gonna re-open the issue so other people can add information as we learn where it stands up and falls down.

iteration-n commented 4 months ago

Any fix available yet? Thanks!

depatchedmode commented 4 months ago

@GudCode You're experiencing this issue? It should be fixed now with netlify deploys since locking to a lower version of Satori and removing the package-lock.json

If you ran npm update that could be a reason you're experiencing this. Try deleting the node_modules directory and package-lock.json locally and then running npm install again and see if it fixes stuff.

iteration-n commented 4 months ago

Yes, no luck. When I test it in https://warpcast.com/~/developers/frames by clicking the frame's button. I get:

?frame=poster postFakeCastFrameAction 400 - Failed to post fake frame action: Failed to post to frame. Error: Request failed with status code 502
iteration-n commented 4 months ago

@depatchedmode Any ideas why this is occurring? Thanks!

depatchedmode commented 3 months ago

@GudCode Bit stumped, honestly. This might be the moment where we need a real dev.

Let me find time to look at this along some other upgrades this week. Can you share a link to the deployed frame so that I can test against the error?

beeboopx commented 2 months ago

@GudCode @depatchedmode did you guys ever figure this out? Encountering same.

depatchedmode commented 2 months ago

@beeboopx Couple of questions and I should be able to help:

  1. Which version of simplest-frame are you on? I fixed some things last night for v0.11.1
  2. What operating system are you developing from locally? There will be differences in the sharp build used locally, versus the one used on Netlify. Hoping to find a way for this to be accounted for by default but need to do more testing.
  3. Do you have any logs you can share of the error? Might help to debug your specific case.