question

Upvotes
Accepted
1 1 1 1

DatastreamDSWS2R Connection via Proxy - JSON error

I am connecting to DatastreamDSWS2R via a http_proxy to get past our company firewall (proxy defined in .Renviron file) and am getting the following error:

Error in rjson::fromJSON(myTokenResponse) : unexpected character '<'

Can somebody help me make sense of this mistake?
I have sofar never been able to connect to DatastreamDSWS2R via R

datastream-apidsws-apiconnectionrjson
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
Accepted
681 2 2 1

Please raise this with the helpdesk. Including your login credentials.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Upvotes
0 0 0 0

Same problem here. Could you solve the problem @laurent.marmy ? Which helpdesk should I contact, @James.Bright1 ?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

@Marvin

You can raise an issue through my.refinitiv.com.

Upvotes
1 1 1 1

Hi @Marvin, I finally managed to solved the problem by getting a proxy port from my company and defining this and my Datastream username and password in a .Renviron file like this:


http_proxy= XXX.XXX.com:9999

http_proxy_user=UNAME:PASSWORD DatastreamUsername=DATASTREAMUSERNAME DatastreamPassword=DATASTREAMPASSWORD

options(Datastream.Username = "DATASTREAMUSERNAME") options(Datastream.Password = "DATASTREAMPASSWORD")

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.