Introducing ArmorySync

Sync Blizzards' Armory data with WoWRoster (addon depreciated no longer works see ApiSync)

Moderators: Ulminia, poetter

Re: Introducing ArmorySync

Postby DopeFish » Thu Mar 22, 2007 3:24 am

PleegWat wrote:I'm not sure how exactly this could be implemented, but maybe it's an idea to send the armory requests earlier. EG send the request for items 1 and 2, process item 1 once it comes in, send request for item 3 when done with item 1, send request for item 4 when done with item 2, etc. This may decrease the runtime, since currently it's waiting for the armory response each time a page is requested.


Hmm, I've never tried forking in PHP. Interresting idea, should be possible.
Last edited by DopeFish on Thu Mar 22, 2007 3:24 am, edited 1 time in total.
DopeFish
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Thu Jul 06, 2006 2:44 am

Introducing ArmorySync

Postby robojerk » Thu Mar 22, 2007 4:01 am

I'm still waiting for my host to open up the firewall. I should probably move hosts.
Image
For the Horde!
Image
User avatar
robojerk
WR.net Master
WR.net Master
 
Posts: 484
Joined: Wed Jul 05, 2006 12:17 am
Location: -The OmniMatrix- Web 3.0

Introducing ArmorySync

Postby Tazochai » Thu Mar 22, 2007 5:39 am

this is the error I get.. Looks like armory.worldofwarcraft.com/character-sheet.xml should be armory.worldofwarcraft.com/#character-sheet.xml


Code: Select all
CRITICAL ERROR - no root XML node found: armory.worldofwarcraft.com/character-sheet.xml?r=Proudmoore&n=Abaca page
HTTP/1.0 411 Length Required Server: squid/2.5.STABLE12 Mime-Version: 1.0 Date: Wed, 21 Mar 2007 21:28:56 GMT Content-Type: text/html Content-Length: 1426 Expires: Wed, 21 Mar 2007 21:28:56 GMT X-Squid-Error: ERR_INVALID_REQ 0 X-Cache: MISS from wc01.inet.mesa1.secureserver.net Connection: close
ERROR
The requested URL could not be retrieved

While trying to process the request:

GET /character-sheet.xml?r=Proudmoore&n=Abaca HTTP/1.0
Host: armory.worldofwarcraft.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2
Connection: close
Content-Length: 41


The following error was encountered:

    * Invalid Request

Some aspect of the HTTP Request is invalid. Possible problems:

    * Missing or unknown request method
    * Missing URL
    * Missing HTTP Identifier (HTTP/1.0)
    * Request is too large
    * Content-Length missing for POST or PUT requests
    * Illegal character in hostname; underscores are not allowed

Your cache administrator is webmaster.
Tazochai
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Mon Aug 07, 2006 9:24 am

Introducing ArmorySync

Postby Vanterax » Thu Mar 22, 2007 7:40 am

I have the exact same error...
Vanterax
WR.net Apprentice
WR.net Apprentice
 
Posts: 66
Joined: Wed Dec 13, 2006 6:58 am

Introducing ArmorySync

Postby Stigg » Thu Mar 22, 2007 8:04 am

Nm.. I'm blind!
Last edited by Stigg on Thu Mar 22, 2007 8:05 am, edited 1 time in total.
Stigg
WR.net Apprentice
WR.net Apprentice
 
Posts: 7
Joined: Thu Mar 22, 2007 7:55 am

Introducing ArmorySync

Postby arcadin » Thu Mar 22, 2007 1:21 pm

I'm getting the following when I select the Armory Synch menu option:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 142

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 145

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 206

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 207

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 209

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 210

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.synch.php on line 211

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.parsing.php on line 124

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.parsing.php on line 127

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.parsing.php on line 144

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer. in /var/www/htmlxyzzy/roster/addons/ArmorySynch/functions.parsing.php on line 147


This is with the stock version released 2007-03-20 and invoked with http://www.xyzzy.ancpl.com/roster/addon ... rmorysynch

(I've since changed the sync==true flag to a different "password")

A.
arcadin
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Thu Sep 14, 2006 3:20 pm

Introducing ArmorySync

Postby arcadin » Thu Mar 22, 2007 1:26 pm

I'm getting the "hearthed" field overwritten by doing a Sync when IMHO it shouldn't probably be updated by this addon.

I must say though, that this is a MAJOR win for wowroster though, it has been SO hard in the past to get guild members to upload their profiles, despite having guild custom uniuploader packages - I've resorted to inducements like only those with a profile get a free TS account, free bank access etc etc, I'll still be enforcing this but you've made one GM *very* happy.

A.
arcadin
WR.net Apprentice
WR.net Apprentice
 
Posts: 32
Joined: Thu Sep 14, 2006 3:20 pm

Introducing ArmorySync

Postby jungzandvliet » Thu Mar 22, 2007 10:25 pm

Code: Select all
Warning: fsockopen(): unable to connect to armory.worldofwarcraft.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Wuq synched: 0 seconds. Total runtime: 1 seconds.

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7


i get that...
jungzandvliet
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Aug 05, 2006 8:17 pm

Re: Introducing ArmorySync

Postby DopeFish » Fri Mar 23, 2007 1:09 am

jungzandvliet wrote:
Code: Select all
Warning: fsockopen(): unable to connect to armory.worldofwarcraft.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Wuq synched: 0 seconds. Total runtime: 1 seconds.

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7


i get that...


your server can't resolve the dns address
DopeFish
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Thu Jul 06, 2006 2:44 am

Re: Introducing ArmorySync

Postby Tazochai » Fri Mar 23, 2007 1:14 am

My issue maybe due to godaddy, looking at moving but my RL priority's need to come first. This is a great idea and will continue to tinker with it. :)


2 thing is how to I set a password on the addon, should I take the code from siggen like it has been suggested or just wait :)
Last edited by Tazochai on Fri Mar 23, 2007 3:34 am, edited 1 time in total.
Tazochai
WR.net Apprentice
WR.net Apprentice
 
Posts: 17
Joined: Mon Aug 07, 2006 9:24 am

Introducing ArmorySync

Postby Samadhi » Fri Mar 23, 2007 2:18 am

This is spiffy!

[Removed a couple questions which I see were already covered. Sorry!]
Last edited by Samadhi on Fri Mar 23, 2007 3:11 am, edited 2 times in total.
Image
User avatar
Samadhi
Roster AddOn Dev
Roster AddOn Dev
 
Posts: 114
Joined: Mon Jul 17, 2006 10:38 pm
Location: NJ, USA

Re: Introducing ArmorySync

Postby jungzandvliet » Fri Mar 23, 2007 2:33 am

DopeFish wrote:
jungzandvliet wrote:
Code: Select all
Warning: fsockopen(): unable to connect to armory.worldofwarcraft.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Wuq synched: 0 seconds. Total runtime: 1 seconds.

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7

and how can i fix it ^^?
i get that...


your server can't resolve the dns address
jungzandvliet
WR.net Apprentice
WR.net Apprentice
 
Posts: 10
Joined: Sat Aug 05, 2006 8:17 pm

Introducing ArmorySync

Postby Bajah » Fri Mar 23, 2007 5:04 am

I must be stupid. I see in the first post that it says "You must edit your index.php" but I don't see anything anywhere about what inside that php I should be editing and there's (as mentioned) no documention.

I can't even get it to activate. I put the "&Activate=true" as instructed, but it doesn't do anything. I've tried Firefox and IE both. In IE it gives me the new IE7 version of a 404 and in Firefox, it just gives a blank white screen.

And then still says I need to activate it.

Did I miss something really easy? Prove me stupid, please.

http://sok.bajah.com/roster

(I created a fresh new roster and started from there for testing, so it's just a guild with no player updates)
<img src="http://sok.bajah.com/rosteraddons/siggen/sig.php?member=Bajah ">
User avatar
Bajah
WR.net Apprentice
WR.net Apprentice
 
Posts: 38
Joined: Mon Aug 14, 2006 7:08 pm

Re: Introducing ArmorySync

Postby jkibbles » Fri Mar 23, 2007 8:47 am

DopeFish wrote:
jungzandvliet wrote:
Code: Select all
Warning: fsockopen(): unable to connect to armory.worldofwarcraft.com:80 in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7
CRITICAL ERROR - socket not connectedCRITICAL ERROR: Empty Content for Player.
Wuq synched: 0 seconds. Total runtime: 1 seconds.

Warning: fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/jungpiet/domains/twinkmyride.servegame.com/public_html/roster/addons/ArmorySynch/functions.general.php on line 7


i get that...


your server can't resolve the dns address


Couldn't this be worked around by using a Curl script to grab the data?
User avatar
jkibbles
WR.net Apprentice
WR.net Apprentice
 
Posts: 20
Joined: Wed Feb 21, 2007 7:05 am

Re: Introducing ArmorySync

Postby Amannim » Fri Mar 23, 2007 9:55 am

OK! I have some fixes!!!

2 things...

People who get the:
1) "CRITICAL ERROR - socket not connected"

Make sure you only have armory.worldofwarcraft.com, DO NOT add http://.

2) CRITICAL ERROR - no root XML node found
You only need Content-Length if you are doing a POST. In functions.general.php change the following:
Code: Select all
      $headers =
         "GET $request HTTP/1.0\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         "Connection: close\r\n".
         "Content-Length: " . strlen($request) . "\r\n" .
         "\r\n" .
         $request;
      


to:

Code: Select all
      $headers =
         "GET $request HTTP/1.1\r\n" .
         "Host: $host\r\n".
         (($sendAsBrowser) ? "User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.2) Gecko/20070219 Firefox/2.0.0.2\r\n" : "") .
         //"Content-Length: " . strlen($request) . "\r\n" .
         "Connection: close\r\n".
         "\r\n";


and it should work. YAY!
Amannim
WR.net Apprentice
WR.net Apprentice
 
Posts: 5
Joined: Fri Jul 28, 2006 11:11 pm

PreviousNext

Return to ArmorySync - Depreciated

Who is online

Users browsing this forum: No registered users and 0 guests

cron