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

ArgumentError: cannot convert NULL to string #23

Closed
ghost opened this issue Feb 20, 2016 · 2 comments
Closed

ArgumentError: cannot convert NULL to string #23

ghost opened this issue Feb 20, 2016 · 2 comments

Comments

@ghost
Copy link

ghost commented Feb 20, 2016

Hi, I re-run your example on a CentOS 7 with Julia v0.4.3, but encounter this error "cannot convert NULL to string". It seems that it is caused by a dependency HttpParser which can't parse integer.

Error Message
julia> run_rest(apiclnt, 8000)
ERROR (unhandled task failure): ArgumentError: cannot convert NULL to string
in on_header_value at /root/.julia/v0.4/HttpServer/src/RequestParser.jl:60
^Cfatal: error thrown and no exception handler available.

Troubleshooting observation

  1. Based on Test failure with Julia release-v0.4 Requests.jl#75, it suggests the problem is with older version of HttpParser. One developer reports success after installing HttpParser v2.1. I don't know how to replace with v2.1, though I tried something like Pkg.add("HttpParser"), then Pkg.checkout, etc without lucks. I checkout HttpParser from github, and build. It generates libhttpparser.so but i dont know where to copy to. CentOS7 Julia does not currently use libhttparser.so but it uses libhttpaser.so.2.
  2. I test Pkg.test("HttpParser") with errors.
  3. I installed Julia with cmake but it does not help resolving any issue.
  4. I tried repeating your sample codes to create REST API by using Julia v0.5. same errors.

any pointer?
thanks

@aviks
Copy link
Member

aviks commented Feb 21, 2016

discussion here: JuliaWeb/Requests.jl#75 (comment)

@tanmaykm
Copy link
Member

Fixed in JuliaWebAPI v0.0.3 (tested on CentOS 7.2)

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