Skip to main content
May 22, 2009
Question

Problem with Yahoo Maps..."Error Opening URL..."

  • May 22, 2009
  • 1 reply
  • 1698 views

I am trying to use a yahoo Action Script 2.0 map to display real estate listings from an xml file. I often receive the following output error, which prevents the entire yahoo map from opening:

Error opening  URL  ‘http://maps.yahooapis.com/xml/apiconfig.xml?r=988’ (the last 3 digits are random and change each time the problem occurs)

I have searched the internet for a solution and cannot find one.

I have emailed yahoo, who has not responded, as well as other people who have had the problem, but they cannot remember what they did to solve it.

Please help!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
May 22, 2009

are there times when that works?  i would think it would fail every time because of a cross-domain security issue.  i always use php (in the same domain as the swf) to access cross-domain xml files and let the same-domain php file feed the xml file to the swf.  that circumvents the security issue.

May 22, 2009

Do you believe this is a security issue?

The frequency when the map works appears to be random - it is working right now, but 10 minutes ago it wasn't.  It also does not matter what computer at what IP address I am at - it may or may not work when I test it out.

When you say that you php to "access cross-domain xml files", I am assuming you are referring to the apparent xml file I reference earlier (within the error).  I have tried accessing the xml file, http://maps.yahooapis.com/xml/apiconfig.xml, and it does not load (at least from my browser).  Could this be part of the problem?  Maybe it is not a real xml file?  Or can I not access it because of the possible security issue?

If the xml file really does exist, should I have someone write a script (as my php knowledge is limited) to simply download the xml file (or copy it) to a local directory?  Or can that even work...again...limited knowledge.

Thanks!

kglad
Community Expert
Community Expert
May 22, 2009

if it works sometimes, it's not a security issue.  do you see what you expect occassionally?

i can load an xml file via ff but ff complains the ff is not well-formed and displays one line - presumably the one with the error.  but it looks ok to me:

XML Parsing Error: not well-formed Location: http://maps.yahooapis.com/xml/apiconfig.xml Line Number 17, Column 74:

<mapTileUrl>http://us.maps1.yimg.com/us.tile.maps.yimg.com/tile?v=4.1&md=1204827325</mapTileUrl>