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

Application Error When using REST #66

Open
alyeldegwy opened this issue Oct 9, 2016 · 4 comments
Open

Application Error When using REST #66

alyeldegwy opened this issue Oct 9, 2016 · 4 comments

Comments

@alyeldegwy
Copy link

Hi,
Was trying your public Server and got this error when trying to post data via rest

curl http://public.lightning-viz.org/sessib-ece5-4168-a55b-b61fdc0d54b5/visualizations -d type="line" -d data='{"series": [1, 2, 3, 4, 5]}'

and got this

`

<html>
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <style type="text/css">
    html, body, iframe { margin: 0; padding: 0; height: 100%; }
    iframe { display: block; width: 100%; border: none; }
  </style>
<title>Application Error</title>
</head>
<body>
  <iframe src="//s3.amazonaws.com/heroku_pages/error.html">
    <p>Application Error</p>
  </iframe>
</body>
</html>

`

if i'm doing somthing wrong please lead me , and if not please fix :D

Thanks

@mathisonian
Copy link
Member

Hey @alyeldegwy,

It looks like you may have a typo in your URL. It should look like

http://public.lightning-viz.org/sessions/<session-id>/visualizations

(where <session-id> is a random string of numbers and letters)

@alyeldegwy
Copy link
Author

Thanks for your fast reply .. but i got the same Error again when trying

curl http://public.lightning-viz.org/sessions/14a1a495-fc15-4f68-a7b4-c32558e4aaa1/visualizations -d type="line" -d data='{"series": [1, 2, 3, 4, 5]}'

and got

<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style type="text/css"> html, body, iframe { margin: 0; padding: 0; height: 100%; } iframe { display: block; width: 100%; border: none; } </style> <title>Application Error</title> </head> <body> <iframe src="//s3.amazonaws.com/heroku_pages/error.html"> <p>Application Error</p> </iframe> </body> </html>

@mathisonian
Copy link
Member

mathisonian commented Oct 15, 2016

If you remove the /visualizations from the URL it works

curl http://public.lightning-viz.org/sessions/14a1a495-fc15-4f68-a7b4-c32558e4aaa1/ -d type="line" -d data='{"series": [1, 2, 3, 4, 5]}'

see http://lightning-viz.org/usage/ for more example usage

@sagartoms
Copy link

same issue..

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

3 participants