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

XLSX Converter: Save to File System does not save files #519

Open
Sphinx2071 opened this issue Jan 31, 2025 · 4 comments
Open

XLSX Converter: Save to File System does not save files #519

Sphinx2071 opened this issue Jan 31, 2025 · 4 comments

Comments

@Sphinx2071
Copy link

Save to File System returns 405 (method not allowed) when attempting to save updated formDef.json. This requires the user to manually save updated files or to run grunt xlsx-convert-all from the terminal to make changes to their forms.

@r0ssing
Copy link
Member

r0ssing commented Feb 10, 2025

I am unable to reproduce this error. @Sphinx2071 could you provide some more details (operating system, version info, any log messages in the console?)

@Sphinx2071
Copy link
Author

Sphinx2071 commented Feb 10, 2025

Windows 11, version 23H2. ODK-X_ApplicationDesigner_v2.1.11.

I reproduced by adding changes to the exampleForm as described in the in the https://docs.odk-x.org/getting-started-2-architect/#modifying-an-odk-x-application. @r0ssing

going to write formDef to: app/config/tables/exampleForm/forms/exampleForm/formDef.json
devenv.js:1769 
            
            
           POST http://localhost:8000/app/config/tables/exampleForm/forms/exampleForm/formDef.json 405 (Method Not Allowed)
run_xhr @ devenv.js:1769
request @ devenv.js:1730
request.<computed> @ devenv.js:1898
exports.postFile @ devenv.js:2158
postFormDef @ index.html:240
onclick @ index.html:503Understand this errorAI
devenv.js:1772 [Violation] 'readystatechange' handler took 2625ms
devenv.js:1769 
            
            
           POST http://localhost:8000/app/config/tables/exampleForm/definition.csv 405 (Method Not Allowed)
run_xhr @ devenv.js:1769
request @ devenv.js:1730
request.<computed> @ devenv.js:1898
exports.postFile @ devenv.js:2158
postFormDef @ index.html:257
onclick @ index.html:503Understand this errorAI
devenv.js:1772 [Violation] 'readystatechange' handler took 1146ms
devenv.js:1769 
            
            
           POST http://localhost:8000/app/config/tables/exampleForm/properties.csv 405 (Method Not Allowed)
run_xhr @ devenv.js:1769
request @ devenv.js:1730
request.<computed> @ devenv.js:1898
exports.postFile @ devenv.js:2158
postFormDef @ index.html:268
onclick @ index.html:503Understand this errorAI
devenv.js:1772 [Violation] 'readystatechange' handler took 816ms
devenv.js:1769 
            
            
           POST http://localhost:8000/app/config/tables/exampleForm/tableSpecificDefinitions.js 405 (Method Not Allowed)
run_xhr @ devenv.js:1769
request @ devenv.js:1730
request.<computed> @ devenv.js:1898
exports.postFile @ devenv.js:2158
postFormDef @ index.html:307
onclick @ index.html:503Understand this errorAI
devenv.js:1772 [Violation] 'readystatechange' handler took 696ms 

@r0ssing
Copy link
Member

r0ssing commented Feb 12, 2025

Thanks for the clarification. I seems the dev server doesn't support POST for some reason.
Do you see any output in the powershell/cmd console (from where you executed the 'grunt' command)?

@Sphinx2071
Copy link
Author

I get a warning about deprecated API when running grunt, but nothing new when attempting to save to file system.

Running "server" task

Running "connect:livereload" (connect) task
(node:23236) [DEP0044] DeprecationWarning: The `util.isArray` API is deprecated. Please use `Array.isArray()` instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
Started connect web server on http://localhost:8000

Running "open:server" (open) task

Running "watch" task
Waiting...

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