Error: lexical error: invalid char in json text. <!DOCTYPE html> <html lang="en"

3,421 views
Skip to first unread message

cjr.a...@gmail.com

unread,
Nov 16, 2015, 2:05:35 AM11/16/15
to H2O Open Source Scalable Machine Learning - h2ostream
Hi to all,

I'm stuck at step 2 of the H2O generated POJO model WebApp Example at https://github.com/h2oai/app-titanic .

Step 2 is about using H2O in R see http://h2o-release.s3.amazonaws.com/h2o/rel-slater/1/index.html#R .

In the R interactive command-line I get the following error:

===============================================================
> localH2O = h2o.init()
Successfully connected to http://127.0.0.1:54321/


ERROR: Unexpected HTTP Status code: 412 Precondition Failed (url = http://127.0.0.1:54321/3/Cloud?skip_ticks=true)

Error: lexical error: invalid char in json text.
<!DOCTYPE html> <html lang="en"
(right here) ------^
===============================================================

Googling for answers turned up this one http://stackoverflow.com/questions/27558048/rga-package-lexical-error but does not do any help.

Hoping someone there has a solution or can help figure out what to do.

Best regards,

Carlos


cjr.a...@gmail.com

unread,
Nov 16, 2015, 2:08:52 AM11/16/15
to H2O Open Source Scalable Machine Learning - h2ostream, cjr.a...@gmail.com

By the way, I am using Ubuntu 14.04.3 LTS, with R version 3.2.1 RC (2015-06-10 r68509)

Best regards,

Carlos

Tom Kraljevic

unread,
Nov 16, 2015, 2:43:24 AM11/16/15
to cjr.a...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream

you have an http proxy and need to disable it.

turn off selinux
turn off iptables
turn off other security things

Sent from my iPhone
> --
> You received this message because you are subscribed to the Google Groups "H2O Open Source Scalable Machine Learning - h2ostream" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to h2ostream+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

cjr.a...@gmail.com

unread,
Nov 16, 2015, 4:31:30 AM11/16/15
to H2O Open Source Scalable Machine Learning - h2ostream, cjr.a...@gmail.com
Thanks for the response. I checked but...
* no proxy is configured. checked by env | grep -i proxy
* no iptables rules set. checked by sudo iptables --list
* selinux not configured/disabled. checked by seinfo.

Would it matter if the machine is an instance of Ubuntu in AWS?

Regards,

Carlos

shubha...@gmail.com

unread,
Sep 11, 2016, 10:03:02 PM9/11/16
to H2O Open Source Scalable Machine Learning - h2ostream, cjr.a...@gmail.com
Hi,
I see the same issue as well.
The error I get reads as : Error: lexical error: invalid char in json text.

<!DOCTYPE html> <html lang="en"
(right here) ------^

This is my session Info:
Session info --------------------------------------------------------------------------------
setting value
version R version 3.3.1 (2016-06-21)
system x86_64, mingw32
ui RStudio (0.99.902)
language (EN)
collate English_United States.1252
tz America/New_York
date 2016-09-11

Packages ------------------------------------------------------------------------------------
package * version date source
bitops * 1.0-6 2013-08-17 CRAN (R 3.3.0)
curl 1.2 2016-08-13 CRAN (R 3.3.1)
devtools 1.12.0 2016-06-24 CRAN (R 3.3.1)
digest 0.6.10 2016-08-02 CRAN (R 3.3.1)
evaluate 0.9 2016-04-29 CRAN (R 3.3.1)
htmltools 0.3.5 2016-03-21 CRAN (R 3.3.1)
jsonlite * 1.0 2016-07-01 CRAN (R 3.3.1)
magrittr 1.5 2014-11-22 CRAN (R 3.3.1)
memoise 1.0.0 2016-01-29 CRAN (R 3.3.1)
Rcpp 0.12.6 2016-07-19 CRAN (R 3.3.1)
RCurl * 1.95-4.8 2016-03-01 CRAN (R 3.3.0)
rmarkdown 1.0 2016-07-08 CRAN (R 3.3.1)
stringi 1.1.1 2016-05-27 CRAN (R 3.3.0)
stringr 1.1.0 2016-08-19 CRAN (R 3.3.1)
withr 1.0.2 2016-06-20 CRAN (R 3.3.1)
yaml 2.1.13 2014-06-12 CRAN (R 3.3.1)

Tom Kraljevic

unread,
Sep 12, 2016, 12:09:35 PM9/12/16
to shubha...@gmail.com, H2O Open Source Scalable Machine Learning - h2ostream, cjr.a...@gmail.com

Most likely some kind of exception occurred on the h2o-side.
If you post the H2O logs it will be possible to diagnose the issue.

http://docs.h2o.ai/h2o/latest-stable/h2o-docs/logs.html

Tom
Reply all
Reply to author
Forward
0 new messages