Giter Club home page Giter Club logo

Comments (4)

 avatar commented on August 18, 2024

You should have received a 401 not authorized response since you didn't pass the token on the request. Looking into this now...

from meshblu.

 avatar commented on August 18, 2024

It looks like it works if you include your token:

curl -X PUT -d "awesome=sauce&token=gquid3fv7uys0pb981h8tewitumu0udi" http://skynet.im/devices/eccce711-99a2-11e3-ae08-ff6ac0f6a82e

{"uuid":"eccce711-99a2-11e3-ae08-ff6ac0f6a82e","awesome":"sauce","timestamp":1392841973780,"eventCode":401,"_id":"530514f5e11d49b2330000e4"}

curl http://skynet.im/devices/eccce711-99a2-11e3-ae08-ff6ac0f6a82e

{"_id":"53051176e11d49b23300003d","appName":"skynetDemo","awesome":"sauce","channel":"main","online":false,"socketId":"JIn2CPl0iJG5hJX6yTTh","timestamp":1392841973780,"uuid":"eccce711-99a2-11e3-ae08-ff6ac0f6a82e","eventCode":500}p

from meshblu.

 avatar commented on August 18, 2024

I also received an error on my call without a token but it was a 404 instead of a 401:

curl -X PUT -d "awesome=nada" http://skynet.im/devices/eccce711-99a2-11e3-ae08-ff6ac0f6a82e

{"error":{"message":"Device not found or token not valid","code":404},"timestamp":1392842098764,"eventCode":401,"_id":"53051572e11d49b2330000e5"}

from meshblu.

 avatar commented on August 18, 2024

Token is required to update device.

from meshblu.

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.