Error in http_statuses[[as.character(status)]] : subscript out of bounds, when creating connectio...

...n using DatastreamDSWS2R

When I am running the following using RStudio, I get the following error message. Can anyone help to fix the issue?


library('DatastreamDSWS2R')

options(Datastream.Username = 'XXXXXXX')

options(Datastream.Password = 'XXXXXXXX')

mydsws <- dsws$new()

Error in http_statuses[[as.character(status)]] : subscript out of bounds

Best Answer

  • Jirapongse
    Jirapongse ✭✭✭✭✭
    Answer ✓

    @stephen.guo

    Thank you so much for the update.

    It may relate to the status code 470. From this page, the status code 470 is still unassigned.

    I think that this is why it shows the following error when processing the status code 470.

    Error in http_statuses[[as.character(status)]] : subscript out of bounds 

    From the error message: "Action: Deny. No rule matched. Proceeding with default action", it could be settings in the firewall that block this connection. You may need to contact your local IT support team to verify the problem.

Answers