Skip to content

Error in if (attributes(resp) #8

@tsydorenko

Description

@tsydorenko

Hey hey,
I just installed your version via install_github("RedOakStrategic/redshiftTools") and unfortunately I'm getting this error while uploading data to S3

library(RPostgres)
library(redshiftTools)


con <- dbConnect(RPostgres::Postgres(), dbname="xxx",
                     host='xxx', port='5439',
                     user='xxx', password='xxx',sslmode='require')

test<- cbind.data.frame('value1','value2')
colnames(test)<- c("v1","v2")


rs_create_table(test,dbcon=con, 
                table_name='test_mb', 
                region="eu-west-1",bucket="xxx",
                access_key="xxx",
                secret_key="xxx",
)

Initiating Redshift table creation for table test_mb
Initiating Redshift table replacement for table test_mb
The provided data.frame has 1 rows and 2 columns
Getting number of slices from Redshift
1.18575755001899e-322 slices detected, will split into 1 files
Error in if (attributes(resp)$status_code %in% 404) { : 
  argument is of length zero

Do you have any idea why this is happening? Until now I was mostly using the older version from sicarul/redshiftTools and never had any problem with that.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions