Cannot download survey data using R

I am trying to automate the downloading of survey data using R. Below is my code

<
token ← get_kobo_token(
url = url,
uname= username,
pwd = password
)

data_response ← kobotools_api(
url = “eu.kobotoolbox.org”,
simplified = T,
uname = username,
pwd = password
)

I am getting a valid token response but for data_response, my code is returning an error

Downloading: 64 kB Error in parsed$results[[i]] : subscript out of bounds

What am I doing wrong?

Welcome to the community, @shahnaz12! This post discussed previously should help you solve your issue: