Handling reaching plan limit / account suspended

Posted about 4 years ago by crapo

Post a topic
Answered
c
crapo

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

nestor posted about 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

Sorted by
c

crapo posted about 4 years ago

Great. Thanks for the update.

0 Votes

nestor

nestor posted about 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

c

crapo posted about 4 years ago

Hi nestor, any update?

0 Votes

nestor

nestor posted about 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

crapo posted about 4 years ago

Thanks for taking a look Nestor. Weird though; I'm getting 500

image

0 Votes

nestor

nestor posted about 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

Login to post a comment