-
Notifications
You must be signed in to change notification settings - Fork 42
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
Failed: HTTP response code said error(22) #170
Comments
I have the same problem here, same conditions. Did you notice that it fails while tying to fetch something on localhost? |
yes, probably there should be some service running, it also needs a reboot so I assume this is installed as a daemon, or not, in our case |
Yeahr cloud be. I reinstalled and rebooted it many times and nothing changes there. Sounds a bit like broken installation. |
Openelec 8 so that is Kodi 17.1 |
Hi, |
Hi, |
Hi, In order to overcome this problem until the author fix the root cause, it's necessary to comment some lines of the _check_request function. My patched function looks like this: def _check_request(self):
method = cherrypy.request.method.upper()
headers = cherrypy.request.headers
#Fail for other methods than get or head
if method not in ("GET", "HEAD"):
raise cherrypy.HTTPError(405)
#Error if no token or user agent are provided
# -- Steve19802: Start --
#if 'User-Agent' not in headers or 'X-Spotify-Token' not in headers:
# raise cherrypy.HTTPError(403)
# -- Steve19802: End --
#Error if the requester is not allowed
if headers['Remote-Addr'] not in self.__allowed_ips:
raise cherrypy.HTTPError(403)
#Check that the supplied token is correct
# -- Steve19802: Start --
#user_token = headers['X-Spotify-Token']
#user_agent = headers['User-Agent']
#correct_token = create_user_token(self.__base_token, user_agent)
#if user_token != correct_token:
# raise cherrypy.HTTPError(403)
# -- Steve19802: End --
return method |
Running the latest OpenElec, I cannot use the app anymore. When I start a song it erorrs.
Linux datKassie 4.9.21 #1 SMP Fri Apr 14 21:26:30 CEST 2017 armv7l GNU/Linux
RPi 2
Latest (beta5) from SuperRepo
The text was updated successfully, but these errors were encountered: