-
Notifications
You must be signed in to change notification settings - Fork 27
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
Survey Incremental Validation #35
Comments
@etosch - I have cloned and built |
runner.jar handles communication with backends; @jfoley threw together a
Send the request as json to On 7/19/15 12:18 PM, Prakhar Srivastav wrote:
|
Hi @etosch So I pulled in the Surveyman code and was able to build the package too. However, I'm unable to start the server. Can you tell me what's wrong? PS: Not quite well-versed with the java stack 😬
|
Run command - So I was able to run the server and hit the Here's the curl request that I'm making
|
With the latest build the server is working now. Here's what I get when I run the <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
<title>Error 400 SurveyException: A survey must have at least one question.</title>
</head>
<body>
<h2>HTTP ERROR: 400</h2>
<p>Problem accessing /analyze. Reason:
<pre> SurveyException: A survey must have at least one question.</pre></p> So then I added a single question (as shown below) but now I keep getting a 501 Unimplemented error. {"survey": [
{
"id": "b_10101",
"randomize": true,
"questions": [
{
"id": "q_5847",
"qtext": "First question",
"options": [
{
"id": "o_97512",
"otext": "first"
},
{
"id": "o_57705",
"otext": "second"
},
{
"id": "o_32878",
"otext": "third"
}
],
"ordering": false,
"freetext": false,
"exclusive": true
}
],
"subblocks": []
}
]} |
s/ordering/ordered |
Tried. Same error 😢 |
It's failing when trying to assign breakoff (not finding the permitBreakoff tag). This isn't required, though, and the assignment for that value does check to see if the tag is present in the JSON node. More on this in a minute. |
@etosch: I just noticed that the server response is missing access-control headers because of which I'm unable to make requests to it via the react-surveyman app. |
@jjfiv merged; try out and confirm. Emma Tosch On Fri, Aug 14, 2015, at 02:13 AM, Prakhar Srivastav wrote:
Links: |
I downloaded the latest build and tried running the server - but I still can't see the new headers.
|
I see the new access control header when running locally; will upload my jar. |
Add support for incrementally validating survey by making a ajax call to runner.jar.
The text was updated successfully, but these errors were encountered: