SolidLabResearch / LDES-in-SOLID-Semantic-Observations-Replay

1 stars 2 forks source link

Submit all observations button fails and crashes engine if you have not pressed the submit next observations #17

Open argahsuknesib opened 1 year ago

argahsuknesib commented 1 year ago

When loading a dataset file into the solid pod, the user is expected to get the observation subjects, sort them and submit the next observation. However, if the user doesn't submit the next observation and rather wishes to submit all of the observations at once for publishing it into the pod, the engine crashes with the log,

node:internal/deps/undici/undici:11118
    Error.captureStackTrace(err, this);
          ^

TypeError: fetch failed
    at Object.fetch (node:internal/deps/undici/undici:11118:11) {
  cause: Error: read ECONNRESET
      at TCP.onStreamRead (node:internal/stream_base_commons:217:20) {
    errno: -54,
    code: 'ECONNRESET',
    syscall: 'read'
  }
}

Node.js v18.12.1

This issue has been faced in the demonstration of the Solid Stream Aggregator. https://github.com/argahsuknesib/ssa-demo/issues/2

svrstich commented 1 year ago

Hi Kush, can you provide me with some more details? I'm unable to replicate this behaviour ...

argahsuknesib commented 1 year ago

Hello @svrstich ,

The normal flow for putting data into the pod with this library is,

But incase, if I try to press the 'submit remaining observations' directly after the 'sort observation subjects', I get this error. In case, the user wants to submit ALL observations at once, without submitting some events first, this error happens. My guess would be that, once you submit one observation, the counter is used by the submit remaining observations button?

svrstich commented 1 year ago

Hmm, are you in tomorrow Kush? I tried exactly what you desribe here, and have no issues ...

svrstich commented 1 year ago

Hmm, are you in tomorrow Kush? I tried exactly what you describe here, and have no issues ...

svrstich commented 1 year ago

Hmm, are you in tomorrow Kush? I tried exactly what you describe here, and have no issues ...

argahsuknesib commented 1 year ago

Hello stijn, I won't be there tommorrow. I will try to send a screencast to you.