Skip to content

Error in readBin(private$socket, raw(), n = len) : invalid 'n' argument #23

@domvoe

Description

@domvoe

Many thanks sharing this package.

I already use it a while and randomly get the follwing error:
Error in readBin(private$socket, raw(), n = len) : invalid 'n' argument

The strange thing ist that this error is showing up randomly, i.e. when I run the same code 10 times in a row it can be that no error is showing up, but the next time each other request is showing the error.

Do you have an idea how this can happen? Your help is really appreciated.

Here is an example code snippet with reponse from the console:

library(rib)
wrap <- IBWrapSimple$new()
ic <- IBClient$new()
ic$connect(port=7500, clientId=1)
contract <- IBContract(symbol="GOOG", secType="STK", exchange="SMART", currency="USD")
ic$reqContractDetails(11, contract)
ic$checkMsg(wrap)
Error in readBin(private$socket, raw(), n = len) : invalid 'n' argument

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions