dom96 / jester

A sinatra-like web framework for Nim.
MIT License
1.58k stars 120 forks source link

Resoinse doesn't work with string, which len <=5 #40

Open luntik2012 opened 9 years ago

luntik2012 commented 9 years ago

I'm trying this resp "12345" and this resp "123456"

Only the second one works. Also I'm not sure I have the latest sources of jester, I use nimble

Xe commented 9 years ago

What kind of error do you get?

luntik2012 commented 9 years ago

No error. I do this: curl -H "Content-Type: application/json" -X POST -d '{.....}' address/blablabla/ololo

In my nim code I have this:

 post "address/blablabla/ololo":
     resp "12345"

or post "address/blablabla/ololo": resp "123456"

curl does nothing with the first variant. Recieves nothing. with the second variant everything is ok

On 29/07/15 17:23, Christine Dodrill wrote:

What kind of error do you get?

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-125968318.

dom96 commented 9 years ago

Can you show me all of your code?

luntik2012 commented 9 years ago

No, I cannot, but you need only this: post "some_address": resp "12345" # or resp "123456"

and try curl -i -H "Content-Type: application/json" -X POST -d 'ololo' some_address

with "12345" you'll recieve nothing

On 30/07/15 00:27, Dominik Picheta wrote:

Can you show me all of your code?

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126099998.

Xe commented 9 years ago

Your code is wrong. You need to lead routes with a slash.

# example.nim                         
import jester, asyncdispatch, htmlgen 

routes:                               
  get "/":                            
    resp h1("Hello world")            

  post "address/blablabla/ololo":    
    resp "12345"                      

runForever()                          
$ curl -XPOST --data '' http://127.0.0.1:5000/address/blablabla/ololo
<html xmlns="http://www.w3.org/1999/xhtml"><head><title>404 Not Found</title></head><body style="text-align: center;"><h1>404 Not Found</h1><hr/><p>Jester 0.1.0</p></body></html>

When I changed it to

# example.nim                         
import jester, asyncdispatch, htmlgen 

routes:                               
  get "/":                            
    resp h1("Hello world")            

  post "/address/blablabla/ololo":    
    resp "12345"                      

runForever()                          
$ curl -XPOST --data 'magic' http://127.0.0.1:5000/address/blablabla/ololo
12345

The only bug here is that jester allows the user to define illegal routes.

luntik2012 commented 9 years ago

look:

settings: port = Port(5000) bindAddr = "123.123.123.123"

post "/letters/photos/?": resp "12345"

I'll not work at all if I write it like you, but it doesn't work, when lenght of string in response <= 5

On 30/07/15 09:31, Christine Dodrill wrote:

Your code is wrong. You need to lead routes with a slash.

example.nim

import jester, asyncdispatch, htmlgen

routes: get "/":
resp h1("Hello world")

post "address/blablabla/ololo":
resp "12345"

runForever() $curl -XPOST --data'' http://127.0.0.1:5000/address/blablabla/ololo

404 Not Found

404 Not Found


Jester 0.1.0

When I changed it to

example.nim

import jester, asyncdispatch, htmlgen

routes: get "/":
resp h1("Hello world")

post "/address/blablabla/ololo":
resp "12345"

runForever() $curl -XPOST --data'magic' http://127.0.0.1:5000/address/blablabla/ololo 12345

The only bug here is that jester allows the user to define illegal routes.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126201226.

luntik2012 commented 9 years ago

Just try it yourself

On 30/07/15 09:31, Christine Dodrill wrote:

Your code is wrong. You need to lead routes with a slash.

example.nim

import jester, asyncdispatch, htmlgen

routes: get "/":
resp h1("Hello world")

post "address/blablabla/ololo":
resp "12345"

runForever() $curl -XPOST --data'' http://127.0.0.1:5000/address/blablabla/ololo

404 Not Found

404 Not Found


Jester 0.1.0

When I changed it to

example.nim

import jester, asyncdispatch, htmlgen

routes: get "/":
resp h1("Hello world")

post "/address/blablabla/ololo":
resp "12345"

runForever() $curl -XPOST --data'magic' http://127.0.0.1:5000/address/blablabla/ololo 12345

The only bug here is that jester allows the user to define illegal routes.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126201226.

Xe commented 9 years ago

I have posted code samples showing the exact cases you say are broken and shown otherwise.

luntik2012 commented 9 years ago

It's not leading "/". I had it in all of my routes. There is some error.

Do you understand me? I have this code:

import jester, asyncdispatch

settings: port = Port(5000) bindAddr = "123.123.123.123"

routes: post "/letters/photos/?": resp "12345"

I have no response. When I place my cursor in "" and add '6' in it everything works.

Also you are using another curl command. BTW I have very long json variable in ''. I'm not parsing it, there is only "resp" in code as you can see. It was 7k+ sumbols in packet.

On 30/07/15 18:24, Christine Dodrill wrote:

I have posted code samples showing the exact cases you say are broken and shown otherwise.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126369450.

Xe commented 9 years ago

does your machine have the IP address 123.123.123.123?

luntik2012 commented 9 years ago

No, I cannot give you real address, but you can use localhost, Result will be the same, I checked it

On 30/07/15 22:46, Christine Dodrill wrote:

does your machine have the IP address 123.123.123.123?

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126452713.

dom96 commented 9 years ago

We need more information. Show us exactly the commands you are executing (for curl especially) and the output that you are getting from those commands (from curl as well as your app).

Xe commented 9 years ago
# issue40.nim
import jester, asyncdispatch, htmlgen

settings:
  port = Port(5005)
  bindAddr = "127.0.0.1"

routes:
  get "/":
    resp h1("Hello world")

  post "/letters/photos/?":
    resp "12345"

runForever()
/home/xena/tmp/nim/jester/issue40
INFO Jester is making jokes at http://127.0.0.1:5005
WARN Could not parse URL query.
DEBUG post /letters/photos
DEBUG   200 OK {Content-Length: 5, Content-Type: text/html}
WARN Could not parse URL query.
DEBUG post /letters/photos/
DEBUG   200 OK {Content-Length: 5, Content-Type: text/html}
$ curl -XPOST --data 'magic' http://127.0.0.1:5005/letters/photos
12345
$  curl -XPOST --data 'magic' http://127.0.0.1:5005/letters/photos/
12345

Can you run that nim file with those exact commands and paste all relevant output as I have?

dom96 commented 9 years ago

What operating system are you both using?

Xe commented 9 years ago
xena@fluttershy (linux) ~/tmp/nim/jester
➜  nim --version
Nim Compiler Version 0.11.2 (2015-05-04) [Linux: amd64]
Copyright (c) 2006-2015 by Andreas Rumpf

git hash: 3bef848a2cf60008f23e72571d7c20c0eb9fd728
active boot switches: -d:release
xena@fluttershy (linux) ~/tmp/nim/jester
➜  uname -av
Linux fluttershy 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64 GNU/Linux
xena@fluttershy (linux) ~/tmp/nim/jester
➜  gcc --version
gcc (Debian 4.9.2-10) 4.9.2
dom96 commented 9 years ago

@luntik2012 please provide me with the same information as @Xe.

luntik2012 commented 9 years ago

Nim Compiler Version 0.11.2 (2015-06-30) [Linux: amd64] Copyright (c) 2006-2015 by Andreas Rumpf

git hash: 45b6082c12dd6fc90a3dd3ca97e1ba157c3d6464 active boot switches: -d:release

Linux myhost 3.19.0-15-generic #15-Ubuntu SMP Thu Apr 16 23:32:37 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

On 30/07/15 22:56, Dominik Picheta wrote:

@luntik2012 https://github.com/luntik2012 please provide me with the same information as @Xe https://github.com/Xe.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126459446.

dom96 commented 9 years ago

All the information

luntik2012 commented 9 years ago

There is all my code. In one file:

 $ cat test.nim
 import unicode, marshal, json, jester, asyncdispatch, strutils, 

math, os, asyncnet, db_mysql

 settings:
   port = Port(5000)
   appName = "/photofly/api/v0.1"
   bindAddr = "myip"

 routes:
   # Add photo to letter
   post "/letters/@num/photos/?":
     resp "12345"

 runForever()

It was compiled by a command: nim c -r -d:ssl test.nim #ssl is useless in this example but was used in the big program

Then I run command AAA(I'll place it in the end of this post) and get this output from program test.nim: ... INFO Jester is making jokes at http://myip:5000/photofly/api/v0.1 DEBUG post /letters/2/photos DEBUG 200 OK {Content-Length: 5, Content-Type: text/html}

And this form AAA command: HTTP/1.1 100 Continue HTTP/1.1 200 OK Content-Length: 5 Content-Type: text/html

The AAA command (in one string): curl -i -H "Content-Type: application/json" -X POST -d '{"rec{"base64":"/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEB\nAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQH/2wBDAQEBAQEBAQEBAQEBAQEBAQEBAQEB\nAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE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297c2csK6pZXqxz3j2l9p+qtZvIp0t7waS2o2+qHT7y11jUdP1K9stOi1vQ9Kayt/Eni\na5uO2021SNGJKzOJYQZJooxIcq8YObdbdVKmFMFVBMeUkLytJMVSoTk63N7vKqcopN8zXMmmpKb0\nftk7Ss1GbVpSjNPycRXwCwWXxwmHnTxcKFWeYV5YipOnWrTxmIhh40MN7ClHCQp4eMHJ061T2k6r\ndqTjKmfjd+0rqfiHx98atATxje6V4FcfFpfBnwtuvCPi3xP4TuvEvhyHxT4C0ZYvHp1GbwJD4r1v\nRfE2nvqnh/Rba2/trwPrdzN8TPAt1r3gmPWvidX2l+zj8H9Q0vw1qGr +MPB6+BtL8RzLfWfw+hl8\na3Fz4j0q90W50WTVvi5F48a78U3em32lavc23g34V+NZWh0Dw5dR+I/jfoMnxpu9csq+lLfwD4B0\nvxh4k8Y2Pgfwja+KtQjs7jUvFVr4Y0KDxVqkrWMWiGTU/Eqad/bOov8A2HoGnaKHvb6Y/wBl2una\nc2dOsbSzW7q9xJAu0E/8flvAGjJjb95qtpbM3VgdxkEjgglwGUsJXkuK68FgOT97WkpRSjPq7u8k\nnNO/xqHM4q6ScYylOUeY/TOLfGjE51wzl3C3D2XT4cyqlgMJgsYoV3KpiqeHhhKVDDUYYdwhCGHj\nyKeOq3xVd1OejSwqr5hSUN5eiTzyZNhYSZ3xyJKQxnwQ7YMeSPMzu+6XRWkVGuDwF9dolzcxOY/k\nito/nRiSpuNXRtiEE/OmBKr/AHjh5wyrHLWlqccE6Xck1vDKUBXMkYdmjDy4DFiQW3oGDEFRGREs\naqGZvNdXneCWN4wiLcvskREVcG3h1x1Ktgna7xKZEYMWULlzKHmb1MO241FazUoKTdlrGTbtGLnH\n3Vy6vV3irylBzf4XKpNOUJSfu8l7N9Kkk7RvZc0d2pOTjyRclJSm/wD/2Q\u003d\u003d\n","id":68,"letter":68}' http://myip:5000/photofly/api/v0.1/letters/2/photos

On 30/07/15 23:01, Dominik Picheta wrote:

All the information

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126462097.

Xe commented 9 years ago

Can confirm with the code in this gist. Changing it to return 123456 does make it return but otherwise it returns nothing and keeps the connection open.

luntik2012 commented 9 years ago

In my case it returns 12346 if it is in "resp", but I said it earlier

On 30/07/15 23:18, Christine Dodrill wrote:

Can confirm with the code in this gist https://gist.github.com/Xe/476c6509d69a6e042357. Changing it to return |123456| does make it return but otherwise it returns nothing and keeps the connection open.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126469153.

dom96 commented 9 years ago

@luntik2012 This is why it's important to tell us all the information. We had no idea what your curl command looked like, the reason for this bug seems to be the large size of the body of the POST request that you are making.

luntik2012 commented 9 years ago

I've sent you my curl command

On 30/07/15 23:21, Dominik Picheta wrote:

@luntik2012 https://github.com/luntik2012 This is why it's important to tell us all the information. We had no idea what your |curl| command looked like, the reason for this bug seems to be the large size of the body of the POST request that you are making.

— Reply to this email directly or view it on GitHub https://github.com/dom96/jester/issues/40#issuecomment-126470351.

dom96 commented 9 years ago

Now you have. But it took you a long time to send it to us.