I tried the REST service
https://support.kobotoolbox.org/en/articles/592398-rest-services to beeceptor.
During submission, I get the error “CSRF token missing”. This has been reported several times during the last year in the community, but all but one old thread never had an answer.
CSRF token missing is a fairly generic error that can crop up in a lot of places. I’m searching the forum for other examples, but I can only find one right now:
My colleague is having trouble when designing their form. When they try to deploy, they get an error notice that says: "CSRF Failed: CSRF token missing or incorrect’.
However, if they close their computer and then restart later, the form will deploy. But then the same error message will happen again later.
They are also getting an ‘error saving form’ notice saying that the internet connection may be to blame, even though they have good internet connection. Both of these errors have been happen…
That’s not related to REST Services, unfortunately.
When you say “During submission”, do you mean when you attempt to add the new REST service, or when you attempt to submit data via Enketo or the Collect Android app? Detailed steps to reproduce the problem would be helpful.
“During submission”: I copied the example in the video exactly, with beeceptor tested separately for a working endpoint. It hangs in Submission, and you can reproduce it by clicking on (i).
I remember that I got this to work before, so I suspect it has to do with the recent update.
Well, not during the last year, I admit…
Hello I’m trying to import data into kobo using the REST api but I keep getting an error.
What I want to do
We have data we’ve already collected on kobo but want to migrate it to a new form.
What I have tried
I have tried using the kobo REST api to achieve this using both the csv and JSON api endpoints. The documentation is found here:
https://kc.kobotoolbox.org/api/v1/submissions. None of them worked, With the json, I get a missing CSRF token error while with the csv import I get you do no…
Thanks lobo – please do send the solution / issue.
Support for custom deployment is not as quick as we would like, but we are working on it. We initially thought most use would be through the hosted solutions…
···this issue has been resolved by the team. We’ll send an update in a few hours
On Wednesday, August 31, 2016 at 7:41:10 AM UTC-7, Donald Lobo wrote:
any chance someone can take a look at this and advise us please. This issue is blocking the rollout on…
I have setup kobotoolbox using the kobo-docker(Followed steps specified in
https://github.com/kobotoolbox/kobo-docker). I have created multiple forms and uploaded data using the kobo-collect app. I have also migrated some data fom the old system to kobotoolbox. Recently I started facing this issue where I am not able to create form using the KPI application but I could create it using the upload functionality where we can give xls file. Even after creating the form using upload xls …
I recreated the REST service today, and it works nicely. Looks like it is an intermittent problem, as one of the previous post on the subject mentioned.
Fair enough: searching for CSRF instead of the exact phrase returns more threads
They’re referencing different parts of the application, though
Thanks for providing detailed steps. Do you recall if you logged out and back in again between seeing the failure and having success? Thanks again for helping us debug.
Logged out: Yes, several time, I am a strong believer in rebooting. I did not follow up though, because I gave up using this approach because the submitted data were incomplete - mainly on repeats.
Right, right: a good belief to have, but I asked only because the CSRF token error can be caused (or fixed) specifically by logging in/out, often in different tabs. We did just deploy a release that should avoid it in certain—hopefully most—scenarios.
That doesn’t sound good. You’re saying that the JSON (or XML?) posted by KoBo to your external server didn’t include all responses within repeating groups?