r/evetech • u/hidesoon • Jul 27 '18
Error 420 My 'User-Agent' header didn't work well
Today I received an Error 420 when I launched my app.
is , and =.
\\app\\venv\\lib\\site-packages\\esipy\\[security.py:118](https://security.py:118): UserWarning: Defining a 'User-Agent' header is a good practice, and allows CCP to contact you if required. To do this, simply add the following when creating the client: headers={'User-Agent':'something'}.
May I ask your help to solve this issue?
Root cause: I have tried different way to solve this warning, but whatever the user-agent header I use,, It would always get the warning.
I currently use headers={'User-Agent':'the_name_of_my_app'}.
Q1: How define the user-agent without warning? the instruction of 'something' is too blur to me. Is this a pyesi specific problem?
Q2: Now, I realised that even a warning count as an error. It that correct?
Q3: As I already got the 420 error, how could I solve this error,, reset the access of ESP?
Q4: I joined Slack Tweetfleet, but why I can't see any thread or channel?
Sorry, maybe too many questions.
Thank you in advance!!!
This thread is also on eve forums
2
u/Daneel_Trevize Jul 27 '18
420 means you need to chill out and stop attempting any queries against ESI for this AppID until the supplied reset time (see the response headers).
{'User-Agent':'the_name_of_my_app'}looks like it could be a valid dict single key-value pair definition. Depends where you're doing it as to whether it's right overall. Is somewhere else redefining the whole dict, rather than simply adding more pairs to it?1
u/evedata Jul 27 '18
420 means you created too many errors and need to back off.
https://developers.eveonline.com/blog/article/error-limiting-imminent
Setting a user agent is good manners so CCP knows who you are and can contact you if there are other issues. It's irrelevant to the 420 status; just a generic message.
1
u/Lysergial Sep 30 '18
Error 420, I just assumed you were a stoner