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

cpanparty failing tests #16

Closed
melezhik opened this issue Feb 29, 2016 · 5 comments
Closed

cpanparty failing tests #16

melezhik opened this issue Feb 29, 2016 · 5 comments
Assignees
Labels

Comments

@melezhik
Copy link

Hi! I tried to add some cpanparty integration tests for Raisin, based on documentation page, but it seems POST /users route broken.

http://swatpm.org/cpanparty/#swat-raisin

Regards

Alexey

@khrt
Copy link
Owner

khrt commented Feb 29, 2016

Provide more information how to reproduce the error. The application taken from the POD works as expected and returns success.

Here is my query:

curl -v -X POST -d name=test -d password=qwe 127.0.0.1:5000/users
Note: Unnecessary use of -X or --request, POST is already inferred.
*   Trying 127.0.0.1...
* Connected to 127.0.0.1 (127.0.0.1) port 5000 (#0)
> POST /users HTTP/1.1
> Host: 127.0.0.1:5000
> User-Agent: curl/7.47.1
> Accept: */*
> Content-Length: 22
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 22 out of 22 bytes
* HTTP 1.0, assume close after body
< HTTP/1.0 200 OK
< Date: Mon, 29 Feb 2016 07:38:10 GMT
< Server: HTTP::Server::PSGI
< Content-Type: application/yaml
< X-Framework: Raisin 0.63
< Content-Length: 15
<
---
success: 1
* Closing connection 0

@khrt
Copy link
Owner

khrt commented Feb 29, 2016

OK, I found an error. Initially I took an example from the examples/ folder, but the error is in POD which misses List::Util::max.

Please improve log of your application. And in if any further bugs were found please file an issue with all details provided as you have access to the server application.

@khrt khrt closed this as completed Feb 29, 2016
khrt pushed a commit that referenced this issue Feb 29, 2016
@melezhik
Copy link
Author

Hi Artur! The test suite could be reproduced on your machine:

cpanm Sparrow 
sparrow index update

sparrow plg install swat-raisin

sparrow plg run swat-raisin

@melezhik
Copy link
Author

a detailed log is here:


vagrant@Debian-jessie-amd64-netboot:~/my/swat-raisin$ curl -X POST -k --connect-timeout 20 -m 20 -L -d name=alex -d password=123  -D - '127.0.0.1:5000/users'
HTTP/1.0 500 Internal Server Error
Date: Mon, 29 Feb 2016 07:59:09 GMT
Server: HTTP::Server::PSGI
Content-Type: text/plain
X-Framework: Raisin 0.63
Content-Length: 4079

Undefined subroutine &Plack::Sandbox::_2fhome_2fvagrant_2fsparrow_2fplugins_2fpublic_2fswat_2draisin_2fapp_2epsgi::max called at /home/vagrant/sparrow/plugins/public/swat-raisin/app.psgi line 83.
 at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Raisin.pm line 77.
        Raisin::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/CrossOrigin.pm line 114
        Plack::Middleware::CrossOrigin::call(Plack::Middleware::CrossOrigin=HASH(0x2829438), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Component.pm line 50
        Plack::Component::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/Lint.pm line 24
        Plack::Middleware::Lint::call(Plack::Middleware::Lint=HASH(0x1e14fd0), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Component.pm line 50
        Plack::Component::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/StackTrace.pm line 38
        Plack::Middleware::StackTrace::try {...} () called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Try/Tiny.pm line 90
        eval {...} called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Try/Tiny.pm line 83
        Try::Tiny::try(CODE(0x2a2b4f0), Try::Tiny::Catch=REF(0x2b0d840)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/StackTrace.pm line 42
        Plack::Middleware::StackTrace::call(Plack::Middleware::StackTrace=HASH(0x263ed78), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Component.pm line 50
        Plack::Component::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/AccessLog.pm line 27
        Plack::Middleware::AccessLog::call(Plack::Middleware::AccessLog=HASH(0x263eaf0), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Component.pm line 50
        Plack::Component::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Middleware/ContentLength.pm line 10
        Plack::Middleware::ContentLength::call(Plack::Middleware::ContentLength=HASH(0x2876a98), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Component.pm line 50
        Plack::Component::__ANON__(HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Util.pm line 145
        eval {...} called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Util.pm line 145
        Plack::Util::run_app(CODE(0x28767f8), HASH(0x2ab1460)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/HTTP/Server/PSGI.pm line 170
        HTTP::Server::PSGI::handle_connection(HTTP::Server::PSGI=HASH(0x28763d8), HASH(0x2ab1460), IO::Socket::INET=GLOB(0x2ab6ea0), CODE(0x28767f8)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/HTTP/Server/PSGI.pm line 129
        HTTP::Server::PSGI::accept_loop(HTTP::Server::PSGI=HASH(0x28763d8), CODE(0x265c760)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/HTTP/Server/PSGI.pm line 55
        HTTP::Server::PSGI::run(HTTP::Server::PSGI=HASH(0x28763d8), CODE(0x265c760)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Handler/HTTP/Server/PSGI.pm line 14
        Plack::Handler::HTTP::Server::PSGI::run(Plack::Handler::Standalone=HASH(0x2876a80), CODE(0x265c760)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Loader.pm line 84
        Plack::Loader::run(Plack::Loader=HASH(0x1aca270), Plack::Handler::Standalone=HASH(0x2876a80)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/lib/perl5/Plack/Runner.pm line 277
        Plack::Runner::run(Plack::Runner=HASH(0x1851260)) called at /home/vagrant/sparrow/plugins/public/swat-raisin/local/bin/plackup line 10

@melezhik
Copy link
Author

it's ok now after adding missed dependency -
http://swatpm.org/cpanparty/#swat-raisin

2016-02-29 10:48 GMT+03:00 Artur Khabibullin notifications@github.com:

Closed #16 #16.


Reply to this email directly or view it on GitHub
#16 (comment).

@khrt khrt self-assigned this Oct 7, 2016
@khrt khrt added the bug label Dec 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants