{"action":"created","issue":{"url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/21","repository_url":"https://api.github.com/repos/stats4sd/kobo-api-app","labels_url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/21/comments","events_url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/21/events","html_url":"https://github.com/stats4sd/kobo-api-app/issues/21","id":328092313,"node_id":"MDU6SXNzdWUzMjgwOTIzMTM=","number":21,"title":"Calls to the non-customised Kobo API giving 400 error","user":{"login":"dave-mills","id":5711101,"node_id":"MDQ6VXNlcjU3MTExMDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5711101?v=4","gravatar_id":"","url":"https://api.github.com/users/dave-mills","html_url":"https://github.com/dave-mills","followers_url":"https://api.github.com/users/dave-mills/followers","following_url":"https://api.github.com/users/dave-mills/following{/other_user}","gists_url":"https://api.github.com/users/dave-mills/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-mills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-mills/subscriptions","organizations_url":"https://api.github.com/users/dave-mills/orgs","repos_url":"https://api.github.com/users/dave-mills/repos","events_url":"https://api.github.com/users/dave-mills/events{/privacy}","received_events_url":"https://api.github.com/users/dave-mills/received_events","type":"User","site_admin":false},"labels":[{"id":944008471,"node_id":"MDU6TGFiZWw5NDQwMDg0NzE=","url":"https://api.github.com/repos/stats4sd/kobo-api-app/labels/Type:%20Bug%20%F0%9F%90%9B","name":"Type: Bug 🐛","color":"E11D21","default":false},{"id":945394876,"node_id":"MDU6TGFiZWw5NDUzOTQ4NzY=","url":"https://api.github.com/repos/stats4sd/kobo-api-app/labels/waffle:backlog","name":"waffle:backlog","color":"e6e6e6","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-31T10:57:50Z","updated_at":"2018-05-31T11:02:34Z","closed_at":null,"author_association":"MEMBER","body":"You wanted another bug tag... \n\nI suspect it's something tiny about how the default pipeRequest is setting options / headers. \n\nI'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. \n\nCould also be because the pipeRequest isn't updated to async like the others?\n\n\n--- \nExample:\n---\nTrying to send to `${api-url}/projects/1/forms` to add new form, and getting: \n```\n{\"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\\\"}\"}\n```"},"comment":{"url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/comments/393495033","html_url":"https://github.com/stats4sd/kobo-api-app/issues/21#issuecomment-393495033","issue_url":"https://api.github.com/repos/stats4sd/kobo-api-app/issues/21","id":393495033,"node_id":"MDEyOklzc3VlQ29tbWVudDM5MzQ5NTAzMw==","user":{"login":"dave-mills","id":5711101,"node_id":"MDQ6VXNlcjU3MTExMDE=","avatar_url":"https://avatars1.githubusercontent.com/u/5711101?v=4","gravatar_id":"","url":"https://api.github.com/users/dave-mills","html_url":"https://github.com/dave-mills","followers_url":"https://api.github.com/users/dave-mills/followers","following_url":"https://api.github.com/users/dave-mills/following{/other_user}","gists_url":"https://api.github.com/users/dave-mills/gists{/gist_id}","starred_url":"https://api.github.com/users/dave-mills/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dave-mills/subscriptions","organizations_url":"https://api.github.com/users/dave-mills/orgs","repos_url":"https://api.github.com/users/dave-mills/repos","events_url":"https://api.github.com/users/dave-mills/events{/privacy}","received_events_url":"https://api.github.com/users/dave-mills/received_events","type":"User","site_admin":false},"created_at":"2018-05-31T11:02:33Z","updated_at":"2018-05-31T11:02:33Z","author_association":"MEMBER","body":"(Not marked as urgent, as it's working, stable and fast for me to add a couple of (technically un-needed) endpoints for the things that should be vanilla API calls. )\n\nI'm going to keep these extra ones on the hacking branch to make it easier to kill them later :-)"}}
{"actor":{"display_login":"dave-mills"}}