Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Great work, is save.js and node provided just to demonstrate simple saving of just existing pages under /demo? #376

Open
fozak opened this issue Aug 24, 2024 · 1 comment

Comments

@fozak
Copy link

fozak commented Aug 24, 2024

Hi, first of all, great work.
Question does the save.js and node provided just to demonstrate simple saving of just existing pages under /demo?
as the rest functions (like duplicating pages) doesnt work, is it expected behaviour?
the errors when duplicating (from left pane) pages:
C:\Python312\VvvebJs\VvvebJs>node save.js
Started
TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
at Object.writeFileSync (node:fs:2314:5)
at C:\Python312\VvvebJs\VvvebJs\save.js:17:6
at Layer.handle [as handle_request] (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\layer.js:95:5)
at next (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\route.js:149:13)
at Route.dispatch (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\route.js:119:3)
at Layer.handle [as handle_request] (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\layer.js:95:5)
at C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\index.js:284:15
at Function.process_params (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\index.js:346:12)
at next (C:\Python312\VvvebJs\VvvebJs\node_modules\express\lib\router\index.js:280:10)
at C:\Python312\VvvebJs\VvvebJs\node_modules\body-parser\lib\read.js:137:5

thanks in advance

@givanz
Copy link
Owner

givanz commented Sep 3, 2024

Hi

Thank you.

save.php and save.js are provided as example endpoints that can be used as a starting point.

The php version is more complete and has duplicate/rename etc implemented, the javascript example has only save page implemented.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants