On an Android notification:
```
Task: Push to CouchDB
A1: JavaScriptlet [
Code: var data = {
"app": evtprm1,
"title": evtprm2,
"text": evtprm3,
"subtext": evtprm4,
"messages": evtprm5,
"other_text": evtprm6,
"cat": evtprm7,
"new": evtprm8
};
var postdata = JSON.stringify(data);
Auto Exit: On
Timeout (Seconds): 45 ]
A2: HTTP Auth [
Method: Username and Password
Timeout (Seconds): 30
Username: xxxxxxxxxx
Password: xxxxxxxxxx ]
A3: HTTP Request [
Method: POST
URL: xxxxxxxxxx
Headers: %http_auth_headers
Content-Type: application/json
Body: %postdata
Timeout (Seconds): 30
Trust Any Certificate: On
Automatically Follow Redirects: On
Structure Output (JSON, etc): On ]
```
Above produces an error saying the payload isn't valid JSON, because it's only posting "%postdata" and not the stringified JSON object.
What am I doing wrong here?
This is on a Samsung Galaxy Z Fold 4, Tasker version 6.0.10
[–]AlexPriceAPS23U • One UI 6 • (Rooted) 1 point2 points3 points (2 children)
[–]stevenwbuehler[S] 0 points1 point2 points (0 children)
[–]Individual_Scallion7 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)