IEEE-NITK / CodePal

A Visual Studio Code Extension for competitive programming.
https://marketplace.visualstudio.com/items?itemName=IEEE-NITK.codepal
GNU General Public License v3.0
58 stars 14 forks source link

Error when opening the problem list #86

Open qxforever opened 3 years ago

qxforever commented 3 years ago

Yesterday, I recieved Cannot read property 'length' of undefined. Is this a bug or a problem with my local settings?

adityachirania commented 3 years ago

Hi, I've encountered this before, but i cant exactly recall when. I remember that it was'nt a bug as such. It would help if you could share when exactly you recieved this message ?

qxforever commented 3 years ago

Hi, I've encountered this before, but i cant exactly recall when. I remember that it was'nt a bug as such. It would help if you could share when exactly you recieved this message ?

For example, when I click CONTESTS -> Future, then it is stuck and I receive the message Cannot read property 'length' of undefined. The Future column is still empty.

But everything is right today, I don't think I made any changes.

adityachirania commented 3 years ago

Hey so i got it. This could happen in 2 circumstances:

  1. If your internet connection is off. Then no response would be recieved from the api calls so it returns that error.
  2. The codeforces server is down. Then also no response would be recieved so this issue would be thrown. We'll improve the error message for this is upcoming release. Thanks for informing.
isther commented 2 years ago

Hello, how can I solve this problem? It can be used normally in the previous two weeks....

adityachirania commented 2 years ago

Hey i have mentioned the possible reasons above.. Are you sure you werent facing any such issue?

qxforever commented 2 years ago

Hey i have mentioned the possible reasons above.. Are you sure you werent facing any such issue?

Acutally I received this message too these days. I'm sure my internet conntection and Codeforces server works well. Is it possible that the Codeforces API was disabled?

adityachirania commented 2 years ago

Yeah i remember the problemset api wasnt working a few days ago.. Even some other apis may have stopped working temporarily.. Anyways i think this is a temporary issue and should get resolved soon