thomasp85 / fiery

A flexible and lightweight web server
https://fiery.data-imaginist.com
Other
240 stars 12 forks source link

Error in get(“PATHINFO”, envir = request) : object ‘PATHINFO’ not found #32

Closed fengfengyuyu closed 6 years ago

fengfengyuyu commented 6 years ago

hi, I follow your blog A Simple Prediction Web Service Using the New fiery Package

run the script , return an error: error: object 'PATH_INFO' not found

how to fix it ?

thank lots~

`

sessionInfo() R version 3.4.3 (2017-11-30) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 16.04.3 LTS Matrix products: default BLAS: /usr/lib/openblas-base/libblas.so.3 LAPACK: /usr/lib/libopenblasp-r0.2.18.so locale: [1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C LC_TIME=en_US.UTF-8
[4] LC_COLLATE=en_US.UTF-8 LC_MONETARY=en_US.UTF-8 LC_MESSAGES=en_US.UTF-8
[7] LC_PAPER=en_US.UTF-8 LC_NAME=C LC_ADDRESS=C
[10] LC_TELEPHONE=C LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] shiny_1.0.5 jsonlite_1.5 fiery_1.1.0 loaded via a namespace (and not attached): [1] Rcpp_0.12.15 rstudioapi_0.7 xml2_1.2.0 reqres_0.2.1 webutils_0.6
[6] uuid_0.1-2 xtable_1.8-2 R6_2.2.2 globals_0.11.0 tools_3.4.3
[11] parallel_3.4.3 brotli_1.1 htmltools_0.3.6 yaml_2.1.16 assertthat_0.2.0 [16] digest_0.6.14 crayon_1.3.4 later_0.6 codetools_0.2-14 triebeard_0.3.0 [21] glue_1.2.0 mime_0.5 stringi_1.1.6 compiler_3.4.3 urltools_1.7.0
[26] future_1.6.2 httpuv_1.3.5 listenv_0.7.0
`

thomasp85 commented 6 years ago

That is not my blog :-) the post is rather old and uses an older version of fiery - I have reimplemented Bob's example in the new version here: https://www.data-imaginist.com/2017/when-a-fire-starts-to-burn/

fengfengyuyu commented 6 years ago

Ok, thanks!