I had written it so that my code exited when getting a 403 error or the message contained forbidden but now it seems that 500 errors "Response status code does not indicate success: 500 (Internal Server Error)." are being generated which are too broad. Is there a simple way of determining if the plan limit has been reached and/or the account suspended so I don't keep sending requests?
Thanks
0 Votes
nestor posted
over 4 years ago
AdminBest Answer
401 would be the correct way, aside from looking at your dashboard. Once you reach your limit, the account gets suspended and returns 401, no other code. I've had a look at your logs and don't see any 500s.
0 Votes
6 Comments
Sorted by
nestorposted
over 4 years ago
AdminAnswer
401 would be the correct way, aside from looking at your dashboard. Once you reach your limit, the account gets suspended and returns 401, no other code. I've had a look at your logs and don't see any 500s.
0 Votes
c
crapoposted
over 4 years ago
Thanks for taking a look Nestor. Weird though; I'm getting 500
0 Votes
nestorposted
over 4 years ago
Admin
Yes, you're right. I was able to reproduce it. Let me check and get back to you on that.
By the way, it should be 401 not 403. I'll edit my previous message to prevent confusion.
1 Votes
c
crapoposted
over 4 years ago
Hi nestor, any update?
0 Votes
nestorposted
over 4 years ago
Admin
Yes, we do have a permanent fix but it's not released yet. I don't have an ETA, but it will possibly be next week. I'll post here when I have an update on the release date, but you can also subscribe to our status page https://status.scrapinghub.com/ since we'll post it there too.
I had written it so that my code exited when getting a 403 error or the message contained forbidden but now it seems that 500 errors "Response status code does not indicate success: 500 (Internal Server Error)." are being generated which are too broad. Is there a simple way of determining if the plan limit has been reached and/or the account suspended so I don't keep sending requests?
Thanks
0 Votes
nestor posted over 4 years ago Admin Best Answer
401 would be the correct way, aside from looking at your dashboard. Once you reach your limit, the account gets suspended and returns 401, no other code. I've had a look at your logs and don't see any 500s.
0 Votes
6 Comments
nestor posted over 4 years ago Admin Answer
401 would be the correct way, aside from looking at your dashboard. Once you reach your limit, the account gets suspended and returns 401, no other code. I've had a look at your logs and don't see any 500s.
0 Votes
crapo posted over 4 years ago
Thanks for taking a look Nestor. Weird though; I'm getting 500
0 Votes
nestor posted over 4 years ago Admin
Yes, you're right. I was able to reproduce it. Let me check and get back to you on that.
By the way, it should be 401 not 403. I'll edit my previous message to prevent confusion.
1 Votes
crapo posted over 4 years ago
Hi nestor, any update?
0 Votes
nestor posted over 4 years ago Admin
Yes, we do have a permanent fix but it's not released yet. I don't have an ETA, but it will possibly be next week. I'll post here when I have an update on the release date, but you can also subscribe to our status page https://status.scrapinghub.com/ since we'll post it there too.
1 Votes
crapo posted over 4 years ago
0 Votes
Login to post a comment