prestodb / RPresto

DBI-based adapter for Presto for the statistical programming language R.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lexical error: invalid char in json text.

gh-kryall opened this issue · comments

I am trying to connect to my database and keep getting the following error:
"lexical error: invalid char in json text."

I've tried using the github version of the package and still getting the same error.
Any help would be greatly appreciated.

Here is my code:
library('DBI')
library(RPresto)
library(jsonlite)
con <- dbConnect(
RPresto::Presto(),
host='hostname',
port=8446,
user='username',
password = 'password',
schema='default',
catalog='hive',
source='RPresto'
)
RPresto::dbListTables(con)

Error: lexical error: invalid char in json text.
���
(right here) ------^

Sorry, I'm not sure what is causing that.

Closing due to inactivity