-
Notifications
You must be signed in to change notification settings - Fork 4
first commit TouchRecorder for Android #5
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
base: master
Are you sure you want to change the base?
Conversation
Nice! Da ist ja schon gut was an Code zusammengekommen. Kannst du bitte prüfen ob du mit dem Elixir Backend arbeiten kannst. |
https://sheltered-fjord-46378.herokuapp.com/api/challenges
ist implementiert.
bei POST auf
https://sheltered-fjord-46378.herokuapp.com/api/submissions
bekomme ich 400 Bad Request mit "Internal server error"
Hab dies auch mit dem Chrome Advanced REST Plugin getestet, also kein Androidproblem.
Ich schaue es mir morgen nochmal an.
Gruß Reiko
|
One thing to notice is that Phoenix requires a content-type. req.setRequestHeader("Content-Type", "application/json"); |
Mein JSON sieht gekürzt so aus: {"submission":{
"archive":[
{"client":"Qt Recorder","description":"Draw: 1","strokes":[
[{"p":-1,"t":440,"x":124,"y":108},...,{"p":-1,"t":759,"x":200,"y":262}]
]},{"client":"Qt Recorder","description":"Draw: 2","strokes":[
[{"p":-1,"t":421,"x":60,"y":55},...,{"p":-1,"t":881,"x":219,"y":188}]
]},{"client":"Qt Recorder","description":"Draw: 3","strokes":[
[{"p":-1,"t":405,"x":80,"y":72},...,{"p":-1,"t":1050,"x":59,"y":262}]
]},{"client":"Qt Recorder","description":"Draw: 4","strokes":[
[{"p":-1,"t":423,"x":118,"y":62},...,{"p":-1,"t":1183,"x":184,"y":181}]
]},{"client":"Qt Recorder","description":"Draw: 5","strokes":[
[{"p":-1,"t":541,"x":134,"y":41},...,{"p":-1,"t":1164,"x":96,"y":204}],
[{"p":-1,"t":1608,"x":130,"y":37},...,{"p":-1,"t":1798,"x":280,"y":49}]
]},{"client":"Qt Recorder","description":"Draw: 6","strokes":[
[{"p":-1,"t":517,"x":148,"y":60},...,{"p":-1,"t":998,"x":72,"y":144}]
]},{"client":"Qt Recorder","description":"Draw: 7","strokes":[
[{"p":-1,"t":413,"x":113,"y":67},...,{"p":-1,"t":706,"x":103,"y":204}],
[{"p":-1,"t":1069,"x":149,"y":142},...,{"p":-1,"t":1220,"x":267,"y":142}]
]},{"client":"Qt Recorder","description":"Draw: 8","strokes":[
[{"p":-1,"t":472,"x":156,"y":67},...,{"p":-1,"t":1271,"x":114,"y":50}]
]},{"client":"Qt Recorder","description":"Draw: 9","strokes":[
[{"p":-1,"t":483,"x":151,"y":38},...,{"p":-1,"t":1350,"x":55,"y":137}]
]}
],
"author":"Rebuilder",
"challenge_id":1
}
} |
hab JSON angepasst und funktioniert jetzt. |
Ich hab die Heroku app umbenannt, damit man sich den Namen auch merken kann. |
No description provided.