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

POST not working #6

Open
rollbackpt opened this issue Aug 31, 2017 · 5 comments
Open

POST not working #6

rollbackpt opened this issue Aug 31, 2017 · 5 comments

Comments

@rollbackpt
Copy link

Hi,

I downloaded the version 0.2-dev of vex.phar and tryed your example

./vex.phar vex http://127.0.0.1:8000 1000 10 \
-m "POST" \
-H "accept:application/json, text/plain, */*" \
-H "accept-language:en-IN,en-GB;q=0.8,en-US;q=0.6,en;q=0.4" \
-d "{\"message\": \"Hello world! Your JustAPIs instance is running correctly.\"}"

and I get the following error:

Error

Any help?

@vamsiikrishna
Copy link
Owner

vamsiikrishna commented Aug 31, 2017

hello,
Thanks for the reporting the issue.
I am pretty sure that the phar file you have is not the latest version.

please re download the release and test again.
even though the 0.2 version was released, the version was not updated in the /bin/vex file . I have now updated the same.

once you have downloaded the release, you can check the version number like so :

./vex.phar -V

you will get Vex 0.2-dev

also sha1sum of ver.phar ( 0.2-dev version is )

009681d6f1c33423f713ff8afea96bcafc33f396

@rollbackpt
Copy link
Author

Thanks for the quick response.

I downloaded again and confirmed that I have Vex 0.2-dev version and now I am getting a different error:

error2

@vamsiikrishna
Copy link
Owner

I haven't really tested this on windows, will test the build on windows and revert back..
Thanks !

@vamsiikrishna
Copy link
Owner

@rollbackpt can you please share the command you are running in plain text here ?

@owenvoke
Copy link
Contributor

owenvoke commented Nov 10, 2017

@vamsiikrishna typed it out for them. Looks like:

./vex.phar vex http://127.0.0.1:8000 1000 10 -m "POST" -H "accept:application/json, text/plain, */*" -H "accept-language:en-IN,en-GB;q=0.8,en-US;q=0.6,en;q=0.4" -d "{\"message\": \"Hello world! Your JustAPIs instance is running correctly.\"}"

Which works when I've tested. 🤔 I guess I may have typed it incorrectly though.

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

3 participants