Giter Site home page Giter Site logo

Comments (30)

elbowz avatar elbowz commented on July 4, 2024

Shit! ;)

You are always too speedy ;P

You have an exception when service run, and I have forgotten a type cast..ehmm, sorry

I have just commit a new version:

  • re-download
  • uninstall
  • try to remove userdata/addon_data/service.pushbullet/settings.xml
  • re-install
  • enable kodi debug
  • re-config setting
  • and post xbmc.log on pastebin ;)

What Kodi version do you have? I'm testing on XBMC 13.2 (Linux machine)

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Have several systems running OpenELEC 4.0.7 (13.2) and some android devices. 1 of them is Helix.

Did a clean install on a windows machine running 13.2
http://pastebin.com/zDea3c4B

Latest commit used 51d5373

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

ok, no more 'encode' issue for what I see...It's just a progress ;)

ehm...Can be strange, but close and restart xbmc ;)

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Restarted XBMC, still the same error

http://pastebin.com/Wv7xY7tG

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

Post the whole log...I have to see If you have service restarting

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Here it is http://xbmclogs.com/show.php?id=305154

edit:
I'll try it in OpenELEC now

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

sorry schumi2004 for this tedious work...

I had do another commit: b08f25a

Try this one...and post log

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Before that commit it returned the same error code 5 in OpenELEC
Then I did a clean install with fake token which returned 30, updated token and installed latest commit, now it's broken.

http://pastebin.com/JpWURMWS

In windows 8
http://pastebin.com/tRL69MDw

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

remember to enable xbmc debug mode...

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

I don't understand what kind of error is '5'...

If you have time, try latest: aa8d7c0

I hope to have more details on exception

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

I installed latest commit and error 5 returned, error 5 is Access denied
I also can't edit Device Info so I edited settings.xml and restarted Kodi, still access denied (error 5)
I grabbed the token from my account settings at pushbullet.com

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

mmhhh...wait

HTTP Status Code Meanings
200 OK - Everything worked as expected.
400 Bad Request - Usually this results from missing a required parameter.
401 Unauthorized - No valid access token provided.
403 Forbidden - The access token is not valid for that request.
404 Not Found - The requested item doesn't exist.
5XX Server Error - Something went wrong on Pushbullet's side.

I think your error code come from httplib2, but I would get something more human readable.

Device info is disabled, my add-on create a new device on first start, with "xbmc device name"...you have only insert access token.

In the setting: device iden, name and model are set by addon

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

In your pushbullet device list, do you have a new device created by my add-on?

edit:
in linux you can try:
curl -u access_token: https://api.pushbullet.com/v2/users/me
or
curl -u acces_token: https://api.pushbullet.com/v2/devices

In windows you can use something like this: http://curl.haxx.se/dlwiz/?type=bin&os=Win64

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

No new device created

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

another thing that can you try is see in addon/service.pushbullet/.cache if there is a file, and open it

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

curl commands from cli work, no cache folder found,

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

Please post your latest xbmc.log with debug activate, and your userdata/addon_data/service.pushbullet/settings.xml (hide your acceess token)

edit: use this latest commit: 22ab4b0

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Did a clean install since this is a test PC. Installed PB addon, configured token and left the rest default. And received a new entry in PB devices.
I deleted for example device from PB page since I had 2 of them (from ruuk's addon) and wanted to start clean. Then it brakes, error 5 (and now it's 13)
Reinstalled XBMC and installed addon again and it works, at least no errors.

Installed Youtube and started item, xbmc crashed so i needed to restart, PB broken again.

Can't you change to Oauth like ruuk did?

/edit
Resetting access token didn't help either.

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

Installed Youtube and started item, xbmc crashed so i needed to restart, PB broken again.

this is strange!

I don't know how ruuk's Oauth works...In my addon you only have to add the access_token.

If addon don't finds a client iden (pb_client_iden in settings.xml) it creates a new one and set/save the client iden. It's simple, isn't it? :)

I think, if I understand, is the old installation of ruuk addon to do issue...and also this is quite strange...

At the end, you don't have to unistall, reinstall, clean, etc... if you want "reset" my addon (create a new PB client) you have to erase pb_client_iden in settings.xml (userdata/addon_data/service.pushbullet/) and at the next xbmc start a new device will be created.

you can rename the device on pusbullet web page, you'll see reflection on addon settings, at the next xbmc start.

You could see xbmc.log with debug mode enabled, you'll see what happen :)

if do you have a time, could you test my add-on on your different kind of hardware and xbmc version? Thanks!

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

In the next release I'll add a check for test device existence on PB...and all should works good

Now I see, It's already in...

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

For my understanding, were is the .cache folder located?
It isn't in addons/service.pushbullet.

My mobile complains about read only (error 30) when booting.
Couldn't find .cache folder on other systems either and saw cache errors there also.

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

yeah, should be in addons/service.pushbullet.

It's managed by httplib2, and created when needed (if web server support cache).

if there is not the folder don't care.

instead post this "read only" and "cache" errors

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Cache error windows 8
http://pastebin.com/tjQSCBWi

Read only Android mobile
http://pastebin.com/yF8tqisU

Imo there is something wrong with .cache folder

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

You are obviously a smarty user...

try to change:
self._h = httplib2.Http(".cache") => self._h = httplib2.Http()
row 39 of lib/pushbullet.py

I hope httplib2 don't use cache, with this init

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

if not we should set addonprofile path as .cache...and hope it's writable

In my machine, addon/service.pushbullet is writable ....

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

Changing line 39 didn't help. Need to think how i could solve this. Python isn't my best thing

self._h = httplib2.Http(".cache") => self._h = httplib2.Http()
^ is under > in line 39 =>
SyntaxError: invalid syntax

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

ehehe... you are not a smarty user ;P

Indentation error...or you have to substitute whole string:
/self._h = httplib2.Http(".cache")/self._h = httplib2.Http()/

btw, try latest commit: 53f44da

from xbmc.service.pushbullet.

schumi2004 avatar schumi2004 commented on July 4, 2024

I agree that i'm not a Python expert but i can handle it.
It wasn't a ident error anyway.

So far your latest commit works, device is registered and doing some tests now.

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

I joke ;)

Thanks for your patience! But do remote debugging is quite hard :)

...and you have all kind of platforms supported by xbmc 👍

I'm glad that it's works now...keep me updated

from xbmc.service.pushbullet.

elbowz avatar elbowz commented on July 4, 2024

I close this issue...it's become too long. Feel free to open a new one for next trouble

from xbmc.service.pushbullet.

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.