I get a 400 bad request anytime I fill in a survey. See below for sample response in the log.
Error: Error Domain=com.alamofire.error.serialization.response Code=-1011 "Request failed: bad request (400)" UserInfo={NSLocalizedDescription=Request failed: bad request (400), NSErrorFailingURLKey=https://app.satismeter.com/api/responses, com.alamofire.serialization.response.error.data={length = 47, bytes = 0x7b226572 726f7273 223a5b7b 22746974 ... 66696564 227d5d7d }, com.alamofire.serialization.response.error.response=<NSHTTPURLResponse: 0x282085b00> { URL: https://app.satismeter.com/api/responses } { Status Code: 400, Headers {
"Access-Control-Allow-Headers" = (
"Content-Type,Auth-Token"
);
"Access-Control-Allow-Methods" = (
"PUT,POST"
);
"Access-Control-Allow-Origin" = (
"*"
);
"Access-Control-Expose-Headers" = (
"Location,Auth-Token"
);
Connection = (
"keep-alive"
);
"Content-Length" = (
47
);
"Content-Type" = (
"application/json; charset=utf-8"
);
Date = (
"Thu, 20 Feb 2020 21:53:15 GMT"
);
Etag = (
"W/\"2f-j2bd44CrSw0K37KdSWGeWzQmJcc\""
);
Server = (
Cowboy
);
"Strict-Transport-Security" = (
"max-age=15552000; includeSubDomains"
);
Vary = (
"Accept-Encoding"
);
Via = (
"1.1 vegur"
);
"X-Powered-By" = (
Express
);
"X-Request-Id" = (
"1f30905a-64e6-4262-8380-30fed0c7e6b0"
);
} }}, <NSHTTPURLResponse: 0x282085b00> { URL: https://app.satismeter.com/api/responses } { Status Code: 400, Headers {
"Access-Control-Allow-Headers" = (
"Content-Type,Auth-Token"
);
"Access-Control-Allow-Methods" = (
"PUT,POST"
);
"Access-Control-Allow-Origin" = (
"*"
);
"Access-Control-Expose-Headers" = (
"Location,Auth-Token"
);
Connection = (
"keep-alive"
);
"Content-Length" = (
47
);
"Content-Type" = (
"application/json; charset=utf-8"
);
Date = (
"Thu, 20 Feb 2020 21:53:15 GMT"
);
Etag = (
"W/\"2f-j2bd44CrSw0K37KdSWGeWzQmJcc\""
);
Server = (
Cowboy
);
"Strict-Transport-Security" = (
"max-age=15552000; includeSubDomains"
);
Vary = (
"Accept-Encoding"
);
Via = (
"1.1 vegur"
);
"X-Powered-By" = (
Express
);
"X-Request-Id" = (
"1f30905a-64e6-4262-8380-30fed0c7e6b0"
);
} }, {
errors = (
{
title = "Campaign not specified";
}
);
}