Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CodeChef 'website could not be analyzed', not found '#edit-language' #21

Open
nadimakhtar97 opened this issue Mar 9, 2020 · 12 comments
Labels

Comments

@nadimakhtar97
Copy link

nadimakhtar97 commented Mar 9, 2020

issue

@nadimakhtar97 nadimakhtar97 changed the title Use AltF12 to automatically build, run example tests and submit if tests pass. Use AltF12 to automatically build, run example tests and submit if tests pass. Not working Mar 9, 2020
@nadimakhtar97 nadimakhtar97 changed the title Use AltF12 to automatically build, run example tests and submit if tests pass. Not working Use AltF12 to automatically build, run example tests and submit if tests pass. Not working on codechef march longchallenge 2020 Mar 9, 2020
@unneon unneon added the bug label Mar 9, 2020
@nadimakhtar97
Copy link
Author

I am getting this problem while submitting on SPOJ too.
Please solve this issue.

@unneon
Copy link
Owner

unneon commented Mar 24, 2020

I managed to come up with an idea of what may be going wrong and reproduced the problem: are you trying to submit a Division 1 problem from a Division 2 account?

The bug works like this: on CodeChef some contests have two versions for each division, so my extension automatically detects your division and redirects you to the appropriate version. However, CodeChef includes tasks from the other division on the "non scorable" list, under the normal problem list. They need to be submitted to e.g. /submit/INVXOR URL instead of a /MARCH20B/submit/INVXOR URL. Hence, the extension sends a request to the wrong URL, gets an unexpected response and shows the original error.

I will try to fix the problem soon, detecting this case should not be too bad.

@nadimakhtar97
Copy link
Author

Thanks for responding to this issue.
As you said this issue arises when the division 1 problem is submitted from a division 2 account. But this was not the case in my situation, I did try to submit a division 1 problem from a division 1 account.
Moreover, I agree with you that somewhere that the extension is sending a request to a wrong URL.

@unneon
Copy link
Owner

unneon commented Mar 30, 2020

I have noticed that the problem also happens when submitting to contests that ended. Was that the case? I pushed 0.7.7 with an attempted fix for both situations, so feel free to check and tell whether it worked.

@nadimakhtar97
Copy link
Author

I tried your update(0.7.7) on April Challenge 2020 Division 2 on question COVID Pandemic and Long Queue. But it seems like it is still unable to parse the language from list of available language.
Screenshot from 2020-04-03 19-19-48

@unneon
Copy link
Owner

unneon commented Apr 3, 2020

Submitting this problem from my account works, and the only difference I know of are our divisions. You said you're div1, and you're trying to submit to the div2 contest. Does the problem still exist if you submit to the same task on div1 contest? If you try manually submitting through this link, do you get a "You do not belong to this division" error?

@nadimakhtar97
Copy link
Author

Sorry for the misinformation above, I actually belong to div2 and I am submitting div2 problem i.e April Challenge 2020 Division 2 on question COVID Pandemic and Long Queue.

@nadimakhtar97
Copy link
Author

Each time I submit a solution a warning appears on CodeChef (You have been logged out since we have a session limit of 1 per user).
Screenshot from 2020-04-08 20-47-05
Screenshot from 2020-04-08 20-50-13

@unneon
Copy link
Owner

unneon commented Apr 8, 2020

Yeah, that's unfortunately just how CodeChef works. It doesn't allow logins from two browsers at once (e.g. chrome and firefox, or chrome and icie). This isn't the cause of the error though, the extension detects this and logs in again correctly.

As for fixing this, in the next few days I will add more logging and some kind of manual extended error reports. This should hopefully let me see what's going wrong, I'll write here when it's ready.

@Imperial-lord
Copy link

I'm facing the same issue with CodeChef March CookOff (as a practice contest). The test cases are not being shown and neither I'm I able to submit. I hope it gets fixed soon!

@unneon unneon changed the title Use AltF12 to automatically build, run example tests and submit if tests pass. Not working on codechef march longchallenge 2020 CodeChef 'website could not be analyzed', not found '#edit-language' Apr 18, 2020
@unneon
Copy link
Owner

unneon commented Apr 18, 2020

I've released 0.7.13 with the manual error reports I mentioned. Could you try to reproduce the error again and collect the details (just press "Report this" and the extension will display more info)?

@krsinghshubham
Copy link

I also got this same problem while trying to submit a problem .
This problem was not part of any present contests.
error: website could not be analyzed; not found '#edit-language';
report issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants