Code Monkey home page Code Monkey logo

Comments (7)

cxcorp avatar cxcorp commented on July 20, 2024

Hi! If you take a look at the IntelliJ IDEA log file and search for fi.helsinki.cs.tmc, do you find any stack traces or such? If so, could you paste them here or to https://gist.github.com/, please?

IDEA -> Help -> Show Log in Explorer

from tmc-intellij.

1337tester avatar 1337tester commented on July 20, 2024

adding logs
I tried to do the minimum to simulate the situation
error_log_12_12_2016.txt
threadDump-20161212-230853.txt

  1. turn on env
  2. switch to the excercise
  3. try to upload
  4. save logs

from tmc-intellij.

cxcorp avatar cxcorp commented on July 20, 2024

Hmm, the logs don't really reveal anything at all. After you click on Submit, can you see your submission on https://tmc.mooc.fi/org/mooc/courses/173 ?

from tmc-intellij.

cxcorp avatar cxcorp commented on July 20, 2024

Weird, submitting the second exercise works fine for me. The local tests just return success immediately, that's in the other issue though.

from tmc-intellij.

1337tester avatar 1337tester commented on July 20, 2024

No, no trace there, however good to know i can try manually -> which worked

I recorded the whole process (windows step recorder)
submit_code_recording.zip

The issue is not important as i can submit the code manually, however the unknown reasons for it are puzzling

from tmc-intellij.

cxcorp avatar cxcorp commented on July 20, 2024

Found at least one issue that sounds like it could be this one: if the deadline has passed, the tmc core's submission fails with a 401 HTTP error. This throws an exception which is logged, but no message is shown to the user.

fi.helsinki.cs.tmc.core.exceptions.TmcCoreException: Failed to submit exercise
	at fi.helsinki.cs.tmc.core.commands.AbstractSubmissionCommand.submitToServer(AbstractSubmissionCommand.java:76)
	at fi.helsinki.cs.tmc.core.commands.Submit.call(Submit.java:55)
	at fi.helsinki.cs.tmc.core.commands.Submit.call(Submit.java:23)
	at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.getSubmissionResult(ExerciseUploadingService.java:110)
	at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService.access$000(ExerciseUploadingService.java:25)
	at fi.helsinki.cs.tmc.intellij.services.exercises.ExerciseUploadingService$1.run(ExerciseUploadingService.java:86)
	at com.intellij.openapi.progress.impl.CoreProgressManager$3.run(CoreProgressManager.java:179)
	at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:568)
	at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:519)
	at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:54)
	at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:164)
	at fi.helsinki.cs.tmc.intellij.services.ThreadingService$1.run(ThreadingService.java:23)
	at com.intellij.openapi.application.impl.ApplicationImpl$2.run(ApplicationImpl.java:309)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: fi.helsinki.cs.tmc.core.exceptions.FailedHttpResponseException: Response code: 401
	at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.handleResponse(HttpRequestExecutor.java:163)
	at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.executeRequest(HttpRequestExecutor.java:142)
	at fi.helsinki.cs.tmc.core.communication.http.HttpRequestExecutor.call(HttpRequestExecutor.java:84)
	at fi.helsinki.cs.tmc.core.communication.http.HttpTasks$2.call(HttpTasks.java:94)
	at fi.helsinki.cs.tmc.core.communication.http.HttpTasks$2.call(HttpTasks.java:91)
	at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory$4.call(TmcServerCommunicationTaskFactory.java:201)
	at fi.helsinki.cs.tmc.core.communication.TmcServerCommunicationTaskFactory$4.call(TmcServerCommunicationTaskFactory.java:196)
	at fi.helsinki.cs.tmc.core.commands.AbstractSubmissionCommand.submitToServer(AbstractSubmissionCommand.java:67)
	... 17 more

from tmc-intellij.

LofhJann avatar LofhJann commented on July 20, 2024

Found similar issue with my submission on mooc-2017-ohjelmointi. Seems that (at least one) culprit here is lacking response in case of false indentation. Uploading falsely indentated code in this course causes "Error while watiing for response from server" loop. Only via https://tmc.mooc.fi/org/mooc/courses/199 was I able to find culprit. Seems IntelliJ plugin could be lacking Indendation error message and throw error when server answer with "Indentation incorrect. Expected 8, but was 9.".

After fixing indentation code submitted normally. Seems 100% reproducable.

from tmc-intellij.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.