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

Attaching filenames with parentheses cause ERROR #59

Open
runlevelsix opened this issue Jun 4, 2013 · 0 comments
Open

Attaching filenames with parentheses cause ERROR #59

runlevelsix opened this issue Jun 4, 2013 · 0 comments

Comments

@runlevelsix
Copy link

When pushing docs with attached files, and filename of the attachment has parentheses '(' or ')', erica throws the following error.

Command:

erica.cmd push <folder path> https://<username:password>@localhost:5984/<dbname>

Error:

ERROR: push failed while processing C:/<path>: {'EXIT',{{badmatch,{error,enoent}},
         [{erica_push,attachments_from_fs1,4,
                      [{file,"src/erica_push.erl"},{line,490}]},
          {erica_push,attachments_from_fs,1,
                      [{file,"src/erica_push.erl"},{line,473}]},
          {erica_push,couchapp_from_fs,1,
                      [{file,"src/erica_push.erl"},{line,195}]},
          {erica_push,do_push,4,[{file,"src/erica_push.erl"},{line,81}]},
          {erica_push,push2,3,[{file,"src/erica_push.erl"},{line,52}]},
          {erica_push,push1,3,[{file,"src/erica_push.erl"},{line,43}]},
          {erica_core,run_modules,4,[{file,"src/erica_core.erl"},{line,97}]},
          {erica_core,execute,4,[{file,"src/erica_core.erl"},{line,67}]}]}}

A look at the Erlang docs make me think that this error is probably due do the filename being attached (I focused on the 'enoent' part of the error, and that's what I found). The filename doesn't show up in the file path (the above is just the working directory).

Changing the filename of the attached file to remove the parentheses fixed the problem.

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

1 participant