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

cannot run drakov #65

Closed
shavo007 opened this issue Jul 2, 2015 · 5 comments
Closed

cannot run drakov #65

shavo007 opened this issue Jul 2, 2015 · 5 comments

Comments

@shavo007
Copy link

shavo007 commented Jul 2, 2015

Hi,

I am really struggling to get this to work!

I resolved all the issues I had trying to install this module on Windows 8.1.

Then I tried to run the module with an blueprint file I used from this project.

Cmd is:

drakov -f "./simple-api.md"

I was expecting to access it at localhost:3000/api/things
I get this error now:

{ code: 2,
  message: 'the use of carriage return(s) \'\\r\' in source data isn\'t currently supported, please contact makers',
  location: [ { index: 10, length: 1 } ] }

i assume this is issues with line endings?
Is it possible to run this at all in windows!!?

node version is 0.12.5
npm is 2.11.2

Any help is appreciated as Im banging my head here... ;-)

Thanks,
Shane.

@shavo007
Copy link
Author

shavo007 commented Jul 2, 2015

I resolved it!!

In my git config I had core.autocrlf set to true.
Once I changed this to input, it worked!!!!

@shavo007 shavo007 closed this as completed Jul 2, 2015
@yakovkhalinsky
Copy link
Contributor

ah nice one @shavo007 👍 good that you posted an issue, hopefully other Windows users may be able to find this

@shavo007
Copy link
Author

shavo007 commented Jul 2, 2015

This was a nightmare to get working on windows!!! ;-)

@shavo007
Copy link
Author

shavo007 commented Jul 2, 2015

@yakovkhalinsky Is it easy to return different responses based on the uri parameter?
I dont want the consumer of this to have to pass in a request header. (Prefer:status=XXX)

Cheers,
Shane.

@yakovkhalinsky
Copy link
Contributor

hi @shavo007 in regards to your parameter question, drakov doesn't understand parameter values, just the key, although this is on our roadmap.

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