For a deeper look into our Eikon Data API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials |  Articles

question

Upvotes
Accepted
21 0 0 3

Does anyone konows how to avoid the following error using the eikon package in python? Something went wrong while UDF processing the request. The format of value 'Protected by MWG' is invalid.

eikoneikon-data-apiworkspaceworkspace-data-apirefinitiv-dataplatform-eikonpython
icon clock
10 |1500

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

12 Answers

Upvotes
Accepted
21 0 0 3

@Alex Putkov. IT department saved the day, now it works. Apparently with MWG it is necessary to grant some permission to Eikon to go through the firewall.

icon clock
10 |1500

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

Upvotes
39.2k 75 11 27

I've never seen this error before. Are you able to reproduce it consistently? Would you mind sharing the replication procedure?

icon clock
10 |1500

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

Upvotes
21 0 0 3

I just run a simple command like the following:

df = ek.get_timeseries(["MSFT.O"], start_date="2016-01-01", end_date="2016-01-10")

I think the problem is that i have some problems with the port where eikon streams the data.

icon clock
10 |1500

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

Upvotes
39.2k 75 11 27

If the issue were related to the port number I would expect every request to fail. Is it the case? Are you able to retrieve any data from Eikon? Do you consistently get this error every time you request the data or does the error happen sporadically and randomly?
Would you mind including the full error trace?

icon clock
10 |1500

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

Upvotes
21 0 0 3

well, that is the case. I am not able to get any data using the eikon package (only from the desktop app).

The full message is: EikonError: Error code Exception | Something went wrong while UDF processing the request. The format of value 'Protected by MWG' is invalid.

icon clock
10 |1500

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

Upvotes
39.2k 75 11 27

I see. As the next step in troubleshooting I suggest running Fiddler or another http analyzer while executing get_timeseries command. I expect the http analyzer to log a POST to https://amers1.apps.cp.thomsonreuters.com/Apps/UDF/MSF
Under normal conditions this POST should have http status 200 and receive a JSON response containing timeseries payload.
What is happening in your case? What's the status of this POST and what is the response? If you could copy the session from Fiddler for this POST, that would be most helpful.

icon clock
10 |1500

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

Upvotes
21 0 0 3

I follow that link, then i put my credentials but i get the same answer:

{"ErrorCode":"Exception","Environment":"prod","DataCenter":"NTCP","ErrorMessage":"Something went wrong while UDF processing the request. The format of value 'Protected by MWG' is invalid.","Inner":""}

icon clock
10 |1500

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

Upvote
39.2k 75 11 27

I think this indicates a problem with your Eikon account and not with anything that's running on your machine. I have raised service case 06796320 on your behalf with Thomson Reuters Helpdesk. You will be contacted by TR Support, who will take the ownership of the case.

icon clock
10 |1500

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

Upvotes
1 0 0 0

@Alex Putkov.

this is Peng from Technical Support.

Based on your latest 2 comment, you mentioned checking via Fiddler and also suspect Eikon Account issue.

Could you kindly shed some light on possible issue of client account? what permission is missed or wrongly set up?

thanks.

icon clock
10 |1500

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

Upvotes
21 0 0 3

@Alex Putkov.I tried again using another conection (from my house, not work) and it works just fine.

icon clock
10 |1500

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

hello Mateo @mateo.graciano

glad to know it works fine now and could I know what further action is needed from your side?

cheers,

@mateo.graciano

kindly advise. thanks.

glad to know it works fine now and could I know what further action is needed from your side?

cheers,

@peng.gao well, to be honest i need to find out how to solve that at work. I won´t use a lot outside.

Upvotes
4.3k 2 4 5

It could be related to McAfee Web Gateway protection (MWG).

Could you confirm that you're using this tool ?

icon clock
10 |1500

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

Upvotes
21 0 0 3

@pierre.faurel Yes, i am using at work (apparently). But dont know what can i do to fix that issue.

icon clock
10 |1500

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

@mateo.graciano
I think we need to engage your IT department looking after the McAfee Web Gateway. It seems, and this needs to be confirmed, that MWG appends something to the HTTP request Eikon sends to the Web service providing the data. The Web service cannot interpret the request because it's been amended by MWG and returns the error you see. If indeed this is what's happening, then your IT department needs to look into why MWG modifies the outbound HTTP traffic and if it can be corrected.

Could I also ask you to see if you can retrieve any data into Eikon Excel? Try entering the following formula into a spreadsheet: =TR("TRI.N","TR.CompanyName"). What does this formula return for you?

Click below to post an Idea Post Idea