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

Crawl: Error when url contains query parameter #113

Open
jahredhope opened this issue Aug 21, 2017 · 0 comments · May be fixed by #140
Open

Crawl: Error when url contains query parameter #113

jahredhope opened this issue Aug 21, 2017 · 0 comments · May be fixed by #140

Comments

@jahredhope
Copy link
Collaborator

I get the following error when using crawl to automatically find paths.
Error: EISDIR: illegal operation on a directory, open '{dir}'
This error appears half-way through creating files, the file that it got up to will be empty and no further files will be rendered.

I believe this is due to StaticSiteGeneratorPlugin attempting to generate file twice when it picks up two paths that differ only by query parameters.

When adding console.log just after the call to pathToAssetName I recieve an output of

assetName foo/bar/index.html
assetName foo/bar?id=123&m=val/index.html
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

Successfully merging a pull request may close this issue.

1 participant