Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure what to use for "db-name" #3

Open
shterrett opened this issue May 6, 2015 · 0 comments
Open

Not sure what to use for "db-name" #3

shterrett opened this issue May 6, 2015 · 0 comments

Comments

@shterrett
Copy link

This curl command works:

$ curl -L "https://developer-api.nest.com/devices?auth=ACCESS_TOKEN"

But when I try to do a read, I'm not sure what to use for "db-name":

(taika/read "developer-api.nest.com" "/devices" ACCESS_TOKEN)

#=> ExceptionInfo clj-http: status 422  clj-http.client/wrap-exceptions/fn--4348 (client.clj:111)

(taika/read "https://developer-api.nest.com" "/devices" ACCESS_TOKEN)

#=> UnknownHostException https: unknown error  java.net.Inet6AddressImpl.lookupAllHostAddr (Inet6AddressImpl.java:-2)

(taika/read "firebase-apiserver06-tah01-iad01.dapi.production.nest.com" "/devices" token) # after redirect

#=> ExceptionInfo clj-http: status 422  clj-http.client/wrap-exceptions/fn--4348 (client.clj:111)

(taika/read "wss://developer-api.nest.com" token) # tried because of javascript documentation

#=> UnknownHostException wss: unknown error  java.net.Inet6AddressImpl.lookupAllHostAddr (Inet6AddressImpl.java:-2)

The 422s imply that I'm hitting an (the?) endpoint, but with invalid data. I'd appreciate any suggestions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant