Skip to content
TORNLIFE More

API errors - 520 and 400

Started by RedLobster [2244084] on in Bugs & Issues.

13 replies · 133 views · thread synced · 3 days ago · View on torn.com
About this thread

Posts archived: 14 / 14 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
14
Discussion span
→
People posting
5
Likes on archived posts
1
Posts by staff, officers and moderators
6
Authority score
59 / 100
Historical score
30 / 100
Story score
38 / 100
Engagement score
52 / 100
RedLobster [2244084]
I've made a little website for my faction that counts respect gain/loss. Everything was working great (except for that front page in response, but that seem fixed), until like two weeks ago.

[image: i.ibb.co]

[image: i.ibb.co]

Thoes 2 errors came in one after another (2 api calls, around 30 seconds apart).

My page is working for some time (sometimes 3h, sometimes 3 days), then this thing appears and it's not working untill i rebuild the whole page (but it should :/).

I've been searching the forum for some time, but i can find only the front page fetching error reports.
Wieardest thing is, that i had it too and page worked great when it appeared, just not fetching anything in that particular API call. Now i need to keep checking all the time if it's still working, so i don't lose any data...

Anyone had that problem?
RedLobster [2244084]
Nope. I was checking for readyState === 4, it's basicly the same.

Problem is:
When i get that error once, claudflair won't let me fetch anything until i rebuild my page.
Everything was working for over a year, this started around 2 weeks ago.
CloudJumper [1636201]Staff
I am not much into scripting, so I will just pass this along to Pavel. He can perhaps provide you a better answer. Thanks!
Chedburn [1] Admin Developer
Wasn't this just a temporary service issue with Cloudflare that's no longer a problem? I know it caused a disruption for those in Ukraine last night, perhaps you're nearby.
RedLobster [2244084]
I have temporarily removed chain data API call and i'll try to send calls less often. Maybe it will help at least a little.
Thanks for Your time anyway :)
RedLobster [2244084]
I did change that after your first comment, we'll see if it makes any difference.
Still, it shouldn't make the other calls fail until the page is restarted. Wierdest thing is, that i didn't change anything and it just stopped working properly :/