Code Monkey home page Code Monkey logo

Comments (4)

 avatar commented on July 18, 2024

Check if 8caa55c1688e48c28cdf1f8a5e88bd1f' sits in your~/.tipboard/settings-local.py` as API_KEY

Did you try by curl?

curl http://192.168.0.116:8080/api/v0.1/8caa55c1688e48c28cdf1f8a5e88bd1f/push -X POST -d "tile=text" -d "key=id_1" -d 'data={"text": "Hello World!"}'

Try both and provide answers, please.

from tipboard.

YSmetana avatar YSmetana commented on July 18, 2024

I have copied wrong key. So sorry...

Works now. Works with curl. httpie need the following syntax:

 lufa@lufa-work:~$ http --form POST http://192.168.0.116:8080/api/v0.1/8caa55c1688e48c28cdf1f8a5e88bdff/push tile=text key=id_1 data='{"text":"Hello World"}'
HTTP/1.1 200 OK
Content-Length: 33
Content-Type: text/html; charset=UTF-8
Date: Fri, 25 Sep 2015 13:22:47 GMT
Server: TornadoServer/3.0.1

Tile's data pushed successfully.

Thank you!

P.S.
Shouldn't I receive 401 Unauthorized or similar in such cases?

from tipboard.

xor-xor avatar xor-xor commented on July 18, 2024

Yes, you are absolutely right - Tipboard should return 401 instead of 404 in such case.

from tipboard.

sushmabn avatar sushmabn commented on July 18, 2024

[root@localhost .tipboard]# curl http://10.0.0.0:7272/api/v0.1/apikey/push -X POST -d "tile=text" -d "key=01" -d 'data={"text": "Hello World!"}'

<title>504 Gateway Timeout</title>

Gateway Timeout

Server error - server 10.0.0.0 is unreachable at this moment.

Please retry the request or contact your administrator.

How to solve this

from tipboard.

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.