cyberkitsune / PSO2Proxy

A protocol proxy for PSO2
GNU Affero General Public License v3.0
46 stars 42 forks source link

[EQ Alert] Bad API response, 'ascii' codec can't encode character u'\xf1' in position 175149: ordinal not in range(128) #204

Closed WindyPrimnoia closed 7 years ago

WindyPrimnoia commented 7 years ago
[EQ Alert Debug] HTTP Status: 200
[EQ Alert Debug] Checking URL Headers...
[EQ Alert Debug] [('Set-Cookie',
  ['visitor=vid=e12fcc09-cb97-4b47-8665-0970d9246d9f; domain=godaddy.com; expires=Sat, 09-Dec-2017 10:23:53 GMT; path=/',
   'fb_sessiontraffic=S_TOUCH=12/09/2016%2010:23:53.805&pathway=e12fcc09-cb97-4b47-8665-0970d9246d9f&V_DATE=12/09/2016%2003:23:53.805&pc=0; domain=godaddy.com; path=/',
   'pathway=e12fcc09-cb97-4b47-8665-0970d9246d9f; domain=godaddy.com; path=/',
   'currency=GBP; domain=godaddy.com; expires=Sat, 09-Dec-2017 10:23:53 GMT; path=/',
   'ASP.NET_SessionId=q5kzcv5ubxzi0iuc2j3mjp3k; path=/; HttpOnly',
   'godaddy#lang=en; path=/',
   'market=en-GB; expires=Sat, 09-Dec-2017 10:23:53 GMT; path=/; domain=.godaddy.com']),
 ('Expires', ['-1']),
 ('X-Arc', ['6']),
 ('X-Scproxy', ['1']),
 ('Pragma', ['no-cache']),
 ('Cache-Control', ['no-cache, no-store, must-revalidate']),
 ('Date', ['Fri, 09 Dec 2016 10:23:53 GMT']),
 ('Content-Type', ['text/html; charset=utf-8'])]
[EQ Alert] Bad API response, 'ascii' codec can't encode character u'\xf1' in position 175149: ordinal not in range(128)

This errors happens around after Dec 3, 2016. Works fine before mentioned date.

alama commented 7 years ago

Which EQ plugin? And the config file?

WindyPrimnoia commented 7 years ago

Latest modified EQ Alert. Default config file. Happened to unmodified one as well.

The problem doesn't occur anymore... Maybe its the API that has the problem and fixed itself.

alama commented 7 years ago

Are you sure?, the cookie details show that the plugin trying to go to a GoDaddy domain, WHY?

please paste your cfg/EQ_Alert.config.yml file

WindyPrimnoia commented 7 years ago

Yeah I noticed that. The problem is solved now though. This is the normal cookie that should be received.

[('Set-Cookie',
  ['__cfduid=dd3da53df59f2cbbe3f69865a346649b51481387412; expires=Sun, 10-Dec-17 16:30:12 GMT; path=/; domain=.acf.me.uk; HttpOnly']),
 ('Accept-Ranges', ['bytes']),
 ('Server', ['cloudflare-nginx']),
 ('Last-Modified', ['Sat, 10 Dec 2016 16:05:37 GMT']),
 ('Date', ['Sat, 10 Dec 2016 16:30:13 GMT']),
 ('Cf-Ray', ['30f2148043ca3415-HKG']),
 ('Content-Type', ['application/json'])]

Config is unmodified/default. cfg/EQ_Alert.config.yml

{'0': true, '1': true, '2': true, '3': true, '4': true, '5': true, '6': true, '7': true,
  '8': true, '9': true, api: 'http://pso2.acf.me.uk/api/eq.json', debug: true, enabled: true,
  ircShip: 1, timer: 80}
alama commented 7 years ago

So, so, I am betting pso2.acf.me.uk was under renewing review (Explain why BASICDev was give issues for EQ notices as well), so, this issue is closed?

WindyPrimnoia commented 7 years ago

Closed, I guess.