cytoscape / RCy3

New version of RCy3, redesigned and collaboratively maintained by Cytoscape developer community
MIT License
49 stars 20 forks source link

Setting base.url for exportNetworkToNDEx #44

Closed ariutta closed 5 years ago

ariutta commented 5 years ago

This may be related to #26. Using version 2.1.13, I tried sending the pathway to the test NDEx server like this:

exportNetworkToNDEx(NDEX_USER, NDEX_PWD, isPublic=TRUE, base.url='http://test.ndexbio.org/v2')

But I got this error:

RCy3::commandsPOST, HTTP Error Code: 500 url=http://test.ndexbio.org/v2/commands/network/get%20attribute body={ "network": "current", "namespace": "default", "columnList": "SUID" } Error: $ operator is invalid for atomic vectors Execution halted

If I use exportNetworkToNDEx(NDEX_USER, NDEX_PWD, isPublic=TRUE, base.url='http://test.ndexbio.org')

I get:

RCy3::commandsPOST, HTTP Error Code: 404 url=http://test.ndexbio.org/commands/network/get%20attribute body={ "network": "current", "namespace": "default", "columnList": "SUID" } Error in file(con, "r") : cannot open the connection Calls: exportNetworkToNDEx -> getNetworkSuid -> commandsPOST Execution halted

AlexanderPico commented 5 years ago

I suspect this is by design. My mistake for thinking we should automate to the dev/test server. Let's just focus on automation for the production server case.