openambitproject / openambit

openambit
281 stars 82 forks source link

openambit doesn't sync with movescount #253

Closed mklopotnuk closed 3 years ago

mklopotnuk commented 4 years ago

Hello! I've updated Qt few days ago - from 5.14.2-3 to 5.15.0. Perhaps after that openambit doesn't sync with movescount. Error: Failed to upload log (err code: QNetworkReply::ProtocolInvalidOperationError ), movescount.com replied with " "" "

OS Archlinux, Openambit-cli 0.5

mklopotnuk commented 4 years ago

Today i've downgraded qt and icu. Now openambit can sync with movescount. But now i cant upgrade qt.

centic9 commented 4 years ago

Which distribution are you using for getting this version of Qt?

Debian/Ubuntu does not seem to have it available yet in the latest unstable versions.

mklopotnuk commented 4 years ago

I've written that in the first message: "OS Archlinux, Openambit-cli 0.5"

centic9 commented 4 years ago

This is a regression in QT 5.15, see item 2.) in https://bugreports.qt.io/browse/QTBUG-85264 or https://bugreports.qt.io/browse/QTBUG-84495

Both got closed as "will not be changed again" :(

There is now some "auto-conversion to base64 happening which means Openambit/Qt actually encodes the data twice now due to this and as a consequence uploading to Movescount fails with an error.

zander commented 4 years ago

check https://bugreports.qt.io/browse/QTBUG-84739

which is open P1 (meaning its a showstopper for 5.15.1)

miir01 commented 4 years ago

Hi,

I get this error: Upload error: "Invalid CompressedValues: Invalid length for a Base-64 char array or string." Is this what you are talking about? Will there be a solution for that?

centic9 commented 4 years ago

Hopefully it will be fixed in the next bugfix version of Qt, the issue is still set to revert to the previous behavior in Qt 5.15.1.

PrzemekRychter commented 4 years ago

Hi, i followed readme in order to install openAmbit and synch with movescount, but it doesn't work (It is not syncing but openAmbit see the watch and sync, but i cannot sync with site) I tried to change qt version but i dont know how exacly.

$ qmake --version
QMake version 3.1
Using Qt version 5.12.8 in /usr/lib/x86_64-linux-gnu

How do I change 5.12.8 to other ?

EDIT: somhow I managed to change qt version : https://askubuntu.com/questions/1062046/how-to-update-qt-from-5-5-1-to-5-9-5-on-ubuntu-16-04

$ qmake -v
QMake version 3.1
Using Qt version 5.14.2 in /opt/qt514/lib

but still after syncing with openambit my watch cant sync with moveslink site

strawpants commented 4 years ago

Hi all, I faced the same issue on a Arch linux installation with qt 5.15.0, but I can confirm the movescount sync works again with qt version 5.15.1-1 (which just arrived in the Arch repositories).

So the moral of the story is indeed: don't install qt 5.15.0 (downgrade or wait for 5.15.1)

centic9 commented 3 years ago

So I think we can close this one as it was fixed in Qt itself since some time now.

Please note that movescount recently stopped accepting connections with the current "APPKEY", see the discussion at #216, there seems to be some way to continue to use it, but it is not yet fully analysed yet.