Comments (10)
Could you try it again now? We had a small amount of downtime early today in the timeline infrastructure that might have cause your error.
from hello-timeline.
I'm getting an error which seems to be related:
Error getting timeline token: No token available for this app and user.
from hello-timeline.
@matthewtole No, it wasn't that.
from hello-timeline.
@amamut Your error is probably because you haven't registered your app on the Pebble Developer Portal. We're going to update the README on this example to make it more explicit, but for now you can check out our guide: https://developer.getpebble.com/guides/timeline/timeline-enabling/
@craftbyte I am looking into your error.
from hello-timeline.
@craftbyte Could you try running the emulator in debug mode so I can see the log messages? You will need to kill the emulator and then run:
pebble install --debug --logs
from hello-timeline.
/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/packages/urllib3/connection.py:251: SecurityWarning: Certificate has no `subjectAltName`, falling back to check for a `commonName` for now. This feature is being removed by major browsers and deprecated by RFC 2818. (See https://github.com/shazow/urllib3/issues/497 for details.)
SecurityWarning
Traceback (most recent call last):
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/Pebble/common/phonesim/javascript/pebble.py", line 224, in go
token = self._get_timeline_token()
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/Pebble/common/phonesim/javascript/pebble.py", line 213, in _get_timeline_token
headers={'Authorization': 'Bearer %s' % self.runtime.runner.oauth_token})
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/api.py", line 65, in get
return request('get', url, **kwargs)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/api.py", line 49, in request
response = session.request(method=method, url=url, **kwargs)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/sessions.py", line 461, in request
resp = self.send(prep, **send_kwargs)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/sessions.py", line 573, in send
r = adapter.send(request, **kwargs)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/adapters.py", line 370, in send
timeout=timeout
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 518, in urlopen
body=body, headers=headers)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 322, in _make_request
self._validate_conn(conn)
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/packages/urllib3/connectionpool.py", line 727, in _validate_conn
conn.connect()
File "/Users/anze/pebble-dev/PebbleSDK-3.0-dp4/.env/lib/python2.7/site-packages/requests/packages/urllib3/connection.py", line 253, in connect
match_hostname(cert, self.assert_hostname or hostname)
File "/usr/local/Cellar/python/2.7.9/Frameworks/Python.framework/Versions/2.7/lib/python2.7/ssl.py", line 245, in match_hostname
raise ValueError("empty or no certificate, match_hostname needs a "
ValueError: empty or no certificate, match_hostname needs a SSL socket or SSL context with either CERT_OPTIONAL or CERT_REQUIRED
from hello-timeline.
@craftbyte There's currently an issue using Python 2.7.8+ with the timeline API. You can either downgrade your Python installation (you should be able to do brew uninstall python
) or you can use our amazing online IDE, CloudPebble, to work with the timeline API.
from hello-timeline.
@matthewtole when can we expect a fix?
from hello-timeline.
@matthewtole if we use CloudPebble do we then need to find some place where we can run the node app exposed to the internet, or will CloudPebble also run that somehow?
from hello-timeline.
@mfollett Yes. You will need to host the app somewhere if you want to use CloudPebble. I recommend Heroku, you can create an app for free!
from hello-timeline.
Related Issues (4)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hello-timeline.