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

Create gives error #35

Open
tyeeman opened this issue Feb 8, 2019 · 3 comments
Open

Create gives error #35

tyeeman opened this issue Feb 8, 2019 · 3 comments

Comments

@tyeeman
Copy link

tyeeman commented Feb 8, 2019

When I add ?create I get an error of "Sorry, there's a conflict". Do you know why?

This is from the log -

?create: file to be created already exists: %!s(<nil>)
@fxnn
Copy link
Owner

fxnn commented Feb 8, 2019

So I guess that the file doesn't exist actually? Can you give a bit more information about the exact request URL and the file system state (i.e., whether files and directories exist)?

@tyeeman
Copy link
Author

tyeeman commented Feb 8, 2019

I start with a markdown file called index.md. I go to http://localhost:8080 and I get the index page just fine. I then use this url to create a new page - localhost:8080/?create, then I get the error. Am I supposed to specify a filename to create or does it ask me for a filename?

Update - OK, silly me, I tried this url - localhost:8080/newfile.md?create - and it worked. I suggest adding an example like this in the readme file.

Something else is strange. I go to edit my index file using this url - localhost:8080?edit - and I get taken to a google search. If I use this url - localhost:8080/?edit - it works.

@fxnn
Copy link
Owner

fxnn commented Feb 8, 2019

Glad everything works for you! I'll leave this ticket open to improve the README.md.

As for the Google search, that has nothing to do with gone, but is a function of your browser. I suggest to always prepend the protocol -- http:// probably -- which makes clear to your browser that you're trying to open a website.

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