You wanted another bug tag...
I suspect it's something tiny about how the default pipeRequest is setting options / headers.
I'm getting the error below while trying to add a form to a project. Had the same issue last night when sharing forms with users. Wrote a shareFormWithUser function (see 'late-night-hacks' branch), that is a clone of other share functions and works fine.
{"error":"unsuccessful request","options":{"method":"POST","url":"https://nrc-kobocat.stats4sdtest.online/api/v1/projects/1/forms","headers":{"authorization":"Token 439529b2f08052c6519d690afc76476c0a96a882"}},"response":{"statusCode":400,"body":"{\"text\":\"Invalid URL format.\",\"type\":\"alert-error\"}","headers":{"server":"nginx/1.10.3 (Ubuntu)","date":"Thu, 31 May 2018 10:46:12 GMT","content-type":"application/json","transfer-encoding":"chunked","connection":"close","vary":"Accept, Accept-Language, Cookie","content-language":"en","allow":"GET, POST, HEAD, OPTIONS"},"request":{"uri":{"protocol":"https:","slashes":true,"auth":null,"host":"nrc-kobocat.stats4sdtest.online","port":443,"hostname":"nrc-kobocat.stats4sdtest.online","hash":null,"search":null,"query":null,"pathname":"/api/v1/projects/1/forms","path":"/api/v1/projects/1/forms","href":"https://nrc-kobocat.stats4sdtest.online/api/v1/projects/1/forms"},"method":"POST","headers":{"authorization":"Token 439529b2f08052c6519d690afc76476c0a96a882","content-length":0}}},"body":"{\"text\":\"Invalid URL format.\",\"type\":\"alert-error\"}"}
You wanted another bug tag...
I suspect it's something tiny about how the default pipeRequest is setting options / headers.
I'm getting the error below while trying to add a form to a project. Had the same issue last night when sharing forms with users. Wrote a
shareFormWithUserfunction (see 'late-night-hacks' branch), that is a clone of other share functions and works fine.Could also be because the pipeRequest isn't updated to async like the others?
Example:
Trying to send to
${api-url}/projects/1/formsto add new form, and getting: