You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Faust uploads missing block files with blockset command #1633
When running blockset against a WP Engine hosted WP install, only the block.json file appears to sync. A user reported this in this thread from Discord, and I was able to reproduce using my own site here: https://faustintl.wpengine.com/
Everything appears to look like it should in .faust directory, but accessing wp-uploads/faust/blocks only lists the block.json file, and the block is not available in the editor.
The same steps in Local appear to do what I expect, and I can sync and use the block:
It might be a possible firewall rule since when I run the blockset command I get this response:
"faust blockset" failed with the following error: Error: Network error: Error parsing response from WordPress.
at uploadToWordPress (file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/blockset.js:104:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async blockset (file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/blockset.js:149:9)
at async file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/index.js:74:13
This is with no public route redirects setting on.
I can see the blockset endpoint being accessed with 200 in the WP Engine Access logs
Activity
theodesp commentedon Nov 8, 2023
Pinging @josephfusco so that we can take a look. It may be related to WP Engine security rules.
theodesp commentedon Nov 8, 2023
It might be a possible firewall rule since when I run the blockset command I get this response:
"faust blockset" failed with the following error: Error: Network error: Error parsing response from WordPress. at uploadToWordPress (file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/blockset.js:104:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async blockset (file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/blockset.js:149:9) at async file:///Users/theo.despoudis/Workspace/atlas-blueprint-blueset/node_modules/@faustwp/cli/dist/index.js:74:13This is with no public route redirects setting on.
I can see the blockset endpoint being accessed with 200 in the WP Engine Access logs
theodesp commentedon Nov 9, 2023
@JEverhart383 We have identified the issue and we are working on a solution.
josephfusco commentedon Nov 15, 2023
I have a PR open with a proposed fix
Also wanted to note that the block-support example project seems to be having issues.

josephfusco commentedon Nov 17, 2023
Ready for another review! :)
#1656