loghound / wink-token-generator

1 stars 0 forks source link

https://winkbearertoken.appspot.com should be updated to point at api.wink.com #3

Open w1ll1am23 opened 7 years ago

w1ll1am23 commented 7 years ago

https://winkapi.quirky.com/oauth2/token isn't maintained by Wink anymore it appears. The correct host is api.wink.com.

Traceback (most recent call last):
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1535, in __call__
    rv = self.handle_exception(request, response, e)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1529, in __call__
    rv = self.router.dispatch(request, response)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1278, in default_dispatcher
    return route.handler_adapter(request, response)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 1102, in __call__
    return handler.dispatch()
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 572, in dispatch
    return self.handle_exception(e, self.app.debug)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/third_party/webapp2-2.5.2/webapp2.py", line 570, in dispatch
    return method(*args, **kwargs)
  File "/base/data/home/apps/s~winkbearertoken/1.388851243393724934/main.py", line 70, in post
    headers=headers)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 293, in fetch
    return rpc.get_result()
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/apiproxy_stub_map.py", line 613, in get_result
    return self.__get_result_hook(self)
  File "/base/data/home/runtimes/python27_experiment/python27_lib/versions/1/google/appengine/api/urlfetch.py", line 449, in _get_fetch_result
    raise DNSLookupFailedError('DNS lookup failed for URL: ' + url)
DNSLookupFailedError: DNS lookup failed for URL: https://winkapi.quirky.com/oauth2/token
w1ll1am23 commented 7 years ago

It looks like this issue isn't occurring anymore, however it would probably be best to switch to the documented URL.