Integrate with enketo: error obtaining the webform

Dear all,

I just secured enketo with nginx and it now runs on https with self-signed certificate.

Then I updated in ODK aggregate the enketo configuration with the new URl (https now). Actually the previous enketo url to a ODK aggregate table still works, which can open and submit data successfully.

But now when I click enketo in ODK aggregate I got the following error message:
"There was an error obtaining the webform. (message:Please verify the Enketo Webform Integration settings on the Preferences tab and try again.)"

Please advise. Thanks.

Hi Bowen,

Try making an API call to the /survey endpoint manually, e.g like this:

curl --user YOURAPIKEY: -d "server_url=https://YOURAGGREGATE.appspot.com&form_id=test"
https://YOURENKETODOMAIN/api/v1/survey

Does that work? If not, what's the error message?

You may also want to check the ODK Aggregate logs directly after clicking
the Enketo button to see what the response is.

Cheers,
Martijn

ยทยทยท On Sunday, April 19, 2015 at 4:21:52 PM UTC-6, bowe...@gmail.com wrote: > > Dear all, > > I just secured enketo with nginx and it now runs on https with self-signed > certificate. > > Then I updated in ODK aggregate the enketo configuration with the new URl > (https now). Actually the previous enketo url to a ODK aggregate table > still works, which can open and submit data successfully. > > But now when I click enketo in ODK aggregate I got the following error > message: > "There was an error obtaining the webform. (message:Please verify the > Enketo Webform Integration settings on the Preferences tab and try again.)" > > Please advise. Thanks. >

--

Revolutionizing data collection since 2012.

Enketo https://enketo.org/ | LinkedIn
http://www.linkedin.com/company/enketo-llc | GitHub
https://github.com/enketo | Twitter https://twitter.com/enketo
| Blog http://blog.enketo.org/

Hi Martjin,

Thank you very much.
Before changing enketo config.json:
{
"code": 403,
"message": "Forbidden. This server is not linked with Enketo"
}
After:
{
"url": "http://IPADDRESS:8005/_/#YYYU",
"code": 200
}

The enketo form is working now. I think it is likely due to my mistake
in enketo config.json. I changed to default config.json and it works again.

{
"offline enabled": true,
"linked form and data server": {
"name": "OpenRosa Server",
"server url": ""
}
}

Now I use the enketo server for two different ODKAggregate setup, one
runs on http and the other one on https. With NGINX running on the same
enketo server, and port 80 is redirected to https and port 8005 is for
http access. So I use two different eketo API url in ODKAggregate
https://IPADDRESS/api/v1 and http://IPADDRESS:8005/api/v1

ยทยทยท On 20/04/2015 23:04, Martijn van de Rijdt wrote: > Hi Bowen, > > Try making an API call to the /survey endpoint manually, e.g like this: > > curl --user YOURAPIKEY: -d > "server_url=https://YOURAGGREGATE.appspot.com&form_id=test" > https://YOURENKETODOMAIN/api/v1/survey > > Does that work? If not, what's the error message? > > You may also want to check the ODK Aggregate logs directly after > clicking the Enketo button to see what the response is. > > Cheers, > Martijn > > On Sunday, April 19, 2015 at 4:21:52 PM UTC-6, bowe...@gmail.com wrote: > > Dear all, > > I just secured enketo with nginx and it now runs on https with > self-signed certificate. > > Then I updated in ODK aggregate the enketo configuration with the > new URl (https now). Actually the previous enketo url to a ODK > aggregate table still works, which can open and submit data > successfully. > > But now when I click enketo in ODK aggregate I got the following > error message: > "There was an error obtaining the webform. (message:Please verify > the Enketo Webform Integration settings on the Preferences tab and > try again.)" > > Please advise. Thanks. > > > -- > /Revolutionizing data collection since 2012./ > > Enketo | LinkedIn > | GitHub > | Twitter > | Blog

--
Sincerely,
LI Bowen

Hi Bowen,

I also secured enketo with nginx with self signed certificate.
But for me its giving error:
There was an error obtaining the webform. (message:Please verify the Enketo Webform Integration settings on the Preferences tab and try again.)

I am using default config.json

{
"app name":Enketo Smart Paper
"port":8005
"offline enabled": true,
"linked form and data server": {
"name": "OpenRosa Server",
"server url": ""
}
}

please help me out on this

Hi Anant,

Did you try making the API call manually as I posted above? If that works, the issue is likely with your Aggregate settings. Please verify the Enketo API token and API url, to see if they match your Enketo config. It looks like you kept the default password (see default-config.json).

If the Enketo Express installation is not functioning properly (which you test the with API call above, and then going to the webform URL a successful call returns), see here for troubleshooting tips.

1 Like