Skip to main content
Solved

Proxy-problem when using ArcGIS Portal Feature Service Reader (MalformedPacError)

  • April 19, 2023
  • 2 replies
  • 88 views

ireen
Contributor
Forum|alt.badge.img+5

We have a model where we use a ArcGIS Portal Feature Service Reader. On the FME Desktop machine, the model works fine for me but not for my colleague. On the FME Server, the same error pops up as my colleague gets.

 

In the logs, there is the following message when the model fails (on Dekstop for my colleague and on the FME Server):

511 2023-3-31 00:32:15 | ArcGIS Portal Feature Service Reader: Logging into 'https://URLarggisportal/' as user 'username'

512 2023-3-31 00:32:15 | Python Exception <MalformedPacError>: Malformed PAC file (ReferenceError: identifier 'myIpAddressEx' undefined

513 2023-3-31 00:32:15 | duk_js_var.c:1258

514 2023-3-31 00:32:15 | FindProxyForURL src\\pyduktape.c:41

515 2023-3-31 00:32:15 | eval src\\pyduktape.c:1 preventsyield)

 

When I run the model myself on FE Desktop, I get this log and everything works fine:

2023-03-31 10:34:00| 117.4| 0.3|INFORM|ArcGIS Portal Feature Service Reader: Using proxy http://proxy.url:port/

2023-03-31 10:34:00| 117.4| 0.0|INFORM|ArcGIS Portal Feature Service Reader: Logging into 'https://URLarggisportal/' as user 'username'

2023-03-31 10:34:00| 117.4| 0.0|INFORM|ArcGIS Portal Feature Service Reader: Using proxy http://proxy.url:port/

2023-03-31 10:34:01| 117.4| 0.0|INFORM|ArcGIS Portal Feature Service Reader: Getting item with ID '55283d731dc8498088b712b8d5a4cd33'

 

How can we fix this on desktop and server?

Best answer by wouter

You could try to define a “Custom Proxy Map” (Tools > FME Options > Network Proxy). Make sure that the URL field points to the target URL you are trying to reach and that the No proxy option is enabled.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

ireen
Contributor
Forum|alt.badge.img+5
  • Author
  • Contributor
  • November 29, 2024

Did you find a solution for this? We have the same issue on FME Form; on server it works fine. 


wouter
Participant
Forum|alt.badge.img+1
  • Participant
  • Best Answer
  • February 11, 2025

You could try to define a “Custom Proxy Map” (Tools > FME Options > Network Proxy). Make sure that the URL field points to the target URL you are trying to reach and that the No proxy option is enabled.