[Bug 1650046] Re: application doesn't sync, it needs to be updated.

2017-02-02 Thread ayito
Hi,
I can confirm also that it works with Fitbit Charge HR, it connects to the 
server.
Also I have checked the file "main.py" and the GalileoClient has the parameter 
on 'client.fitbit.com' as it should.

So I think it's ok now.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1650046

Title:
  application doesn't sync, it needs to be updated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/galileo/+bug/1650046/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1650046] Re: application doesn't sync, it needs to be updated.

2016-12-18 Thread ayito
Hi again,

Thanks for the advice on installing 0.5.1-4, though I haven't done it
since the fix I applied solved my problem and it is just good enough for
me for the time being.

Anyway, since I also reported the bug to the developer, I also got
answers to it over there, so I invite you to go back there and read the
newer posts. They recommend me to ask for a SRU (Stable Release Update),
and will back me up in doing so, which I will be grateful if they do.
Though I am a first timer doing this and have no clue how to do it.

The link seems to be this:
https://wiki.ubuntu.com/StableReleaseUpdates

and the proposed fix is this:
https://bitbucket.org/benallard/galileo/issues/attachments/311/benallard/galileo/1481921710.25/311/0001-Fix-fitbit-server-url.patch
 

As stated in the thread:
https://bitbucket.org/benallard/galileo/issues/311/a-serious-error-happened-which-is-probably

So please, do the stable release update for Yakkety Yak. I guess this is
kind of a mess of bug report, not really well formatted, but I think you
understood the problem and also can check the other thread for further
explanantions. Me being a first timer in bug reporting, next time I'll
try to adhere to the explanations mentioned in Stable Release Updates
link.

Thanks again!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1650046

Title:
  application doesn't sync, it needs to be updated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/hep-galileo/+bug/1650046/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1650046] [NEW] application doesn't sync, it needs to be updated.

2016-12-14 Thread ayito
Public bug reported:

I did report the bug to the developer, you can read it here:

https://bitbucket.org/benallard/galileo/issues/311/a-serious-error-
happened-which-is-probably

Now I copy the information of the link above, here:



$ sudo galileo
2016-12-14 11:24:29,259:CRITICAL: # A serious error happened, which is probably 
due to a
2016-12-14 11:24:29,260:CRITICAL: # programming error. Please open a new issue 
with the following
2016-12-14 11:24:29,260:CRITICAL: # information on the galileo bug tracker:
2016-12-14 11:24:29,260:CRITICAL: #
https://bitbucket.org/benallard/galileo/issues/new
2016-12-14 11:24:29,262:CRITICAL: # /usr/bin/galileo: 0.5
# Python: 3.5.2+ (default, Sep 22 2016, 12:18:14) [GCC 6.2.0 20160927]
# Platform: Linux willy 4.8.0-31-generic #33-Ubuntu SMP Wed Dec 7 15:14:02 UTC 
2016 x86_64 x86_64
# pyusb: 1.0.0
# requests: 2.10.0
# yaml: 3.11 (with libyaml)
2016-12-14 11:24:29,263:CRITICAL: # Last communications:
2016-12-14 11:24:29,263:CRITICAL: # < 20 01 54 65 72 6D 69 6E 61 74 65 4C 69 6E 
6B 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: # < 
2016-12-14 11:24:29,263:CRITICAL: # > 02 01
2016-12-14 11:24:29,263:CRITICAL: # < 16 08 02 05 65 9E A6 84 BE C4 74 04 00 20 
00 00 FF E7 01 00 02 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: # > 1A 04 BA 56 89 A6 FA BF A2 BD 01 46 7D 6E 
00 00 AB AD 00 FB 01 FB 02 FB A0 0F
2016-12-14 11:24:29,263:CRITICAL: # < 20 01 53 74 61 72 74 44 69 73 63 6F 76 65 
72 79 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: # < 13 03 B4 37 13 FE 7D F5 01 D5 06 12 04 CD 
92 00 00 00 FB 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: # < 03 02 01 00 00 00 00 00 00 00 00 00 00 00 
00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: # > 02 05
2016-12-14 11:24:29,263:CRITICAL: # < 20 01 43 61 6E 63 65 6C 44 69 73 63 6F 76 
65 72 79 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
2016-12-14 11:24:29,263:CRITICAL: #
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/galileo/main.py", line 288, in main
}[config.mode](config)
  File "/usr/lib/python3/dist-packages/galileo/main.py", line 193, in sync
for tracker in syncAllTrackers(config):
  File "/usr/lib/python3/dist-packages/galileo/main.py", line 71, in 
syncAllTrackers
if not galileo.requestStatus(not config.httpsOnly):
  File "/usr/lib/python3/dist-packages/galileo/net.py", line 187, in 
requestStatus
self.post('status')
  File "/usr/lib/python3/dist-packages/galileo/net.py", line 134, in post
r.raise_for_status()
  File "/usr/lib/python3/dist-packages/requests/models.py", line 844, in 
raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: 
https://api.fitbit.com:443/tracker/client/message




The response for the developer BenoƮt Allard is:

I see you are using an older version with a wrong url builtin to connect
to the fitbit server. The url should be corrected to client.fitbit.com.
Either use a newer version (0.5.1) or modify the url in the code.

-

I followed his instructions and now I can sync the device.
--
Thank you very much, now it is working. This is what I did, step by step:

$ cd /usr/lib/python3/dist-packages/galileo/
$ sudo grep -rl "api.fitbit.com" ./
./main.py
./__pycache__/main.cpython-35.pyc
$ sudo vim main.py

on line 37:
galileo = GalileoClient('https', 'api.fitbit.com',
'tracker/client/message')

I made the suggested change, so now it is:
galileo = GalileoClient('https', 'client.fitbit.com',
'tracker/client/message')

The saved the file.
--

So, please, could you check on this and update the package to its latest
version, so everyone can benefit.

Thank you very much.

Eduardo

** Affects: galileo (Ubuntu)
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1650046

Title:
  application doesn't sync, it needs to be updated.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/galileo/+bug/1650046/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs