APItools / autoswagger.lua

Generate swagger specs from raw API traces
MIT License
25 stars 3 forks source link

lib/straux attempt to index a local 'str' (a nil value) #1

Open markuman opened 7 years ago

markuman commented 7 years ago
Lua 5.1.5  Copyright (C) 1994-2012 Lua.org, PUC-Rio
> autoswagger = require 'autoswagger.init'
> brain = autoswagger.Brain:new()
> brain:learn('GET', 'google.com', '/users/1/app/5')
./autoswagger/lib/straux.lua:8: attempt to index local 'str' (a nil value)
stack traceback:
    ./autoswagger/lib/straux.lua:8: in function 'split'
    ./autoswagger/lib/straux.lua:19: in function 'tokenize'
    ./autoswagger/host.lua:99: in function 'insert_path'
    ./autoswagger/host.lua:138: in function 'add_path'
    ./autoswagger/host.lua:229: in function <./autoswagger/host.lua:228>
    (tail call): ?
    stdin:1: in main chunk
    [C]: ?
> 
markuman commented 7 years ago

this also happen using lua 5.2 and 5.3