This project is read-only.

Import from Wowhead filter

Topics: Rawr.Base.Items
Apr 22, 2009 at 11:26 AM

I try without success to make this features works.
I have a wowhead filter : qu=3:4;ty=2;minle=160;maxle=200;ub=11;cr=86;crs=11;crv=0
When I put it in the dialogbox I've got an error : Error interpreting the data return by wowhead

Can someone help me ?

Apr 22, 2009 at 12:17 PM
Strange that filter works for me. If you're able can you put a breakpoint in Wowhead.cs line 1684 and post the message from the exception?
Apr 22, 2009 at 1:08 PM
Ok, just do the test.
It seem that it don't use my proxy to access Wowhead using this fonctionnality.
Proxy is well defined because I can read from the armory or add manualy item from the armory.

The french message (from ex.base) is :
+ base {"Le serveur distant a retourné une erreur : (502) Passerelle incorrecte."} System.InvalidOperationException {System.Net.WebException}

which I translate in english to something like  : "Distant server return an error : (502) Bad gateway"
Apr 22, 2009 at 1:25 PM
It's the line 714 of WebRequest.cs who launch the exceptions :

Must LoadXml requires some Proxy settings ???

Hope this help
Apr 22, 2009 at 2:11 PM
Ok, after a lot of research, I find a solution. The XmlResolver of the XmlDocument must be set to null as we dont want to validate the Document.
With this change, it works well for me.

I change line 714-715 of WebRequest.cs to :
                        returnDocument = new XmlDocument();
                        returnDocument.XmlResolver = null;

I you can test this and commit it if it works for you ?

Apr 22, 2009 at 5:21 PM
Edited Apr 22, 2009 at 5:23 PM
Change tested and committed. Seemed to work just fine. BTW in future PLEASE use an issue to post these sorts of problems NOT a discussion.