Hello! Working on it... I'll update as soon as I get any information.
Catch up wih the Appery.io community on our forum. Here you'll find information on the lastest questions and issues Appery.io developers are discussing.
https://forum.appery.io/
Hello! Working on it... I'll update as soon as I get any information.
codeRequest Payload
question=&question=abc&choice1=&choice2=&choice3=&choice4=&answer=&explanation=sads+/code
you send data with x-www-form-urlencoded type, not json - it could be cause of Internal Server Error.
Data in json format should look like this:
code{"question":"","choice1":"","choice2":"","choice3":"","choice4":"","answer":"","explanation":"sads+"}/code
Hi,Marina,
I just now tried set the set the header:
code
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
/code
The network sent serialized data request in x-www-form-urlencoded type alright, but still the request failed.
What else can I do along this line of "x-www-form-urlencoded" request? or I should try other directions?
Thx!
It seems that the "Accept" parameter as shown in the network information above must have to do with the failure/ success.
What do you think?
You can use "Accept" parameter as header. You just need to send data on server in json format, not in application/x-www-form-urlencoded.
Set Content-Type:application/json, also you would need to expose data in json format
I don't get it. What do you suggest?
Sorry. I meant you can ignore Accept: / (it doesn't affect anything). All you need to do is:
1) change application/x-www-form-urlencoded' to application/json;
codexhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');/code
2) send data on server in json format
code{"question":"","choice1":"","choice2":"","choice3":"","choice4":"","answer":"","explanation":"sads+"}/code
this is not correct
codeRequest Payload
question=&question=abc&choice1=&choice2=&choice3=&choice4=&answer=&explanation=sads+/code
I see. I'd try.