the raw.html files are saving a completely different file #11

Open
opened 2020-11-20 18:55:53 +01:00 by mb · 4 comments

I am totally not following what is happening, see https://vvvvvvaria.org/etherpump/ for a non-working index.

I am totally not following what is happening, see https://vvvvvvaria.org/etherpump/ for a non-working index.
Author

Found the source of the bug: line 450 in commands/pull.py

See below a manually printed API request:

  • with the first padID added in manually by me
  • and the second being assigned to it through the code somewhere

https://pad.vvvvvvaria.org/api/1.2.9/getHTML?padID=heatwave_reviews&apikey=XXX&padID=Overkill_End_of_Physical&startRev=0

They don't match.

Found the source of the bug: line 450 in commands/pull.py See below a manually printed API request: - with the first padID added in manually by me - and the second being assigned to it through the code somewhere https://pad.vvvvvvaria.org/api/1.2.9/getHTML?padID=heatwave_reviews&apikey=XXX&padID=Overkill_End_of_Physical&startRev=0 They don't match.
Author

Solved it in a hacky way for now, see commands/pull.py line 450 and further.

Despite the hackiness, i also feel proud to be fixing my very first bug in someone else's code :---).

Solved it in a hacky way for now, see commands/pull.py line 450 and further. Despite the hackiness, i also feel proud to be fixing my very first bug in someone else's code :---).
Owner

Wonderful 💌

Seems #16 is related then!

Still needs some digging...

Wonderful 💌 Seems https://git.vvvvvvaria.org/varia/etherpump/issues/16 is related then! Still needs some digging...
Owner

Seems like this comment is the solution then. Sooo, to close this off then I guess we should somehow detect in the try/catch block if the exception is thrown because of a "Failed to download" error and then stop the execution and say that maybe you are overpowering the Etherpad installation and use a lower --connection setting. Also, we could drop the default to 10 to help avoid this.

Seems like [this comment](https://git.vvvvvvaria.org/varia/etherpump/issues/16#issuecomment-136) is the solution then. Sooo, to close this off then I guess we should somehow detect in the try/catch block if the exception is thrown because of a "Failed to download" error and then stop the execution and say that maybe you are overpowering the Etherpad installation and use a lower `--connection` setting. Also, we could drop the default to `10` to help avoid this.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: varia/etherpump#11
No description provided.