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.

@laurent.marmy, can you please post the request you are making that generates this error, after removing your credentials to avoid compromising them. That will help us investigate.

hi the command that prompted this error is :

mydsws <- dsws$new()

@laurent.marmy, this looks like a pure R language related query, and I am not at all familiar with R. That said, just by looking at the R documentation, that syntax does not look right to me.

@laurent.marmy - This is a private post

Considering your query, we moved it from the Eikon Data API to the Datastream forum, it seems more appropriate, and will help people discover it. AHS

@laurent.marmy

Hi,

Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.

Thanks,

AHS

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.

Hello @laurent.marmy,

Did you have a chance to raise the support ticket via helpdesk?

We would appreciate if you can share the result?

Thanks,

-AHS

Hello @laurent.marmy,

Could you please update the community with any findings on this?

Did you have a chance to collaborate with support?

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.