Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

503 Error when importing iTunes library #3

Closed
aaearon opened this issue May 26, 2011 · 4 comments
Closed

503 Error when importing iTunes library #3

aaearon opened this issue May 26, 2011 · 4 comments

Comments

@aaearon
Copy link

aaearon commented May 26, 2011

Ubuntu with python 2.6.6

When adding importing my itunes library xml, I get this after a few seconds (this is with some artists already added through the import tool):

500 Internal Server Error

The server encountered an unexpected condition which prevented it from fulfilling the request.

Traceback (most recent call last):
File "/home/tim/headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/home/tim/headphones/cherrypy/lib/encoding.py", line 188, in call
self.body = self.oldhandler(_args, *_kwargs)
File "/home/tim/headphones/cherrypy/_cpdispatch.py", line 29, in call
return self.callable(_self.args, *_self.kwargs)
File "/home/tim/headphones/webServer.py", line 319, in importItunes
itunesimport.itunesImport(path)
File "/home/tim/headphones/itunesimport.py", line 24, in itunesImport
artistResults = ws.Query().getArtists(ws.ArtistFilter(string.replace(name, '&', '%38'), limit=1))
File "/home/tim/headphones/musicbrainz2/webservice.py", line 991, in getArtists
result = self._getFromWebService('artist', '', filter=filter)
File "/home/tim/headphones/musicbrainz2/webservice.py", line 1179, in _getFromWebService
stream = self.ws.get(entity, id, includeParams, filterParams)
File "/home/tim/headphones/musicbrainz2/webservice.py", line 285, in get
raise WebServiceError(str(e), e)
WebServiceError: HTTP Error 503:

From console log:

[26/May/2011:12:56:44] HTTP Traceback (most recent call last):
File "/home/tim/headphones/cherrypy/_cprequest.py", line 645, in respond
response.body = self.handler()
File "/home/tim/headphones/cherrypy/lib/encoding.py", line 188, in call
self.body = self.oldhandler(_args, *_kwargs)
File "/home/tim/headphones/cherrypy/_cpdispatch.py", line 29, in call
return self.callable(_self.args, *_self.kwargs)
File "/home/tim/headphones/webServer.py", line 319, in importItunes
itunesimport.itunesImport(path)
File "/home/tim/headphones/itunesimport.py", line 24, in itunesImport
artistResults = ws.Query().getArtists(ws.ArtistFilter(string.replace(name, ' &', '%38'), limit=1))
File "/home/tim/headphones/musicbrainz2/webservice.py", line 991, in getArtist s
result = self._getFromWebService('artist', '', filter=filter)
File "/home/tim/headphones/musicbrainz2/webservice.py", line 1179, in _getFrom WebService
stream = self.ws.get(entity, id, includeParams, filterParams)
File "/home/tim/headphones/musicbrainz2/webservice.py", line 285, in get
raise WebServiceError(str(e), e)
WebServiceError: HTTP Error 503:

[26/May/2011:12:56:44] HTTP
Request Headers:
REFERER: http://bleh:8181/manage
HOST: bleh:8181
CONNECTION: keep-alive
Remote-Addr: 129.xxx.xxx.xxx
ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
ACCEPT-CHARSET: ISO-8859-1,utf-8;q=0.7,*;q=0.7
USER-AGENT: Mozilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0. 1
ACCEPT-LANGUAGE: en-us,en;q=0.5
ACCEPT-ENCODING: gzip, deflate
KEEP-ALIVE: 115
129.xxx.xxx.xxx- - [26/May/2011:12:56:44] "GET /importItunes?path=%2Fhome%2Ftim% 2FiTunes+Music+Library.xml HTTP/1.1" 500 1946 "http://bleh.com:8181/manage" "Mo zilla/5.0 (Windows NT 6.1; rv:2.0.1) Gecko/20100101 Firefox/4.0.1"

@rembo10
Copy link
Owner

rembo10 commented May 26, 2011

The 503 error is from the MusicBrainz server. I've been playing around with the 'sleep' setting in-between getting releases for an album but it still throws it up randomly no matter what I have it set to. I'll get in touch with them to see exactly how long to wait between each request - but I didn't want the process to take forever. I'll set it to queue each artist so you can keep on adding artists while the previous ones get

@rembo10
Copy link
Owner

rembo10 commented May 26, 2011

sorry - while the previous ones get processed.

@aaearon
Copy link
Author

aaearon commented May 26, 2011

with the sleep timer, I haven't had any problem. It is slow, but it gets done.

@rembo10
Copy link
Owner

rembo10 commented May 26, 2011

Awesome - yeah once you click the 'Submit' button, the process runs in another thread so you don't actually have to wait for the page to load, you can click around, but it does take a while to update all the artist info, especially if you have a lot of artists. Basically 1-2 seconds per release, so it could be like a minute per artist. I gotta figure out how to speed this up.

On May 26, 2011, at 4:11 PM, aaearon wrote:

with the sleep timer, I haven't had any problem. It is slow, but it gets done.

Reply to this email directly or view it on GitHub:
#3 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants