This question is locked. New answers and comments are not allowed.
Hey everyone,
I'm trying to develop my first mobile app with NativeScript and am encountering an issue when trying to do an HTTP post request - the only messages I am seeing in XCode are "failed with error(4: ios/kern) invalid argument)" and "service exited due to signal: Segmentation fault: 11." Looking these up on Google didn't really help.
The code for my post request is as follows (I am trying to send an email using PostMark). Any help would be greatly appreciated!
http.request({
url: "https://api.postmarkapp.com/email",
method: "POST",
content: {
"From": **My email**,
"To": **Recipient**,
"Subject": "Test",
"HtmlBody": "<b>Hello!</b>",
"TextBody": "Hello",
"Headers": [
{
"Name": "X-Postmark-Server-Token",
"Value": **API Token**
}
]
}
}).then(function(response) {
}, function(error) {
console.log(error);
});
I'm trying to develop my first mobile app with NativeScript and am encountering an issue when trying to do an HTTP post request - the only messages I am seeing in XCode are "failed with error(4: ios/kern) invalid argument)" and "service exited due to signal: Segmentation fault: 11." Looking these up on Google didn't really help.
The code for my post request is as follows (I am trying to send an email using PostMark). Any help would be greatly appreciated!
http.request({
url: "https://api.postmarkapp.com/email",
method: "POST",
content: {
"From": **My email**,
"To": **Recipient**,
"Subject": "Test",
"HtmlBody": "<b>Hello!</b>",
"TextBody": "Hello",
"Headers": [
{
"Name": "X-Postmark-Server-Token",
"Value": **API Token**
}
]
}
}).then(function(response) {
}, function(error) {
console.log(error);
});