ODK Collect QR Code asking for auth

1. What is the issue? Please be detailed.

I have a project with forms and am trying to create appuser.
While using the QR in ODK Collect I am not able to download forms and use forms.
It is asking for username and passwd.

Other projects seem to be working fine.

2. What steps can we take to reproduce this issue?

3. What have you tried to fix the issue?

4. Upload any test forms or screenshots below.

Is that an unmodified screenshot from your app? I think something is going wrong with the configuration. The URL should include a token and project number - not have "undefined" in the URL.

Are you following the docs about how to create an app user? https://docs.getodk.org/central-users/#managing-app-users

1 Like

Yes, the other projects have a token and they work fine. But this project does not have a token. Wondering why this is so. Any ideas?

Prabhakar

If you create a new app user for that project, does the new QR code have the same problem?

1 Like

Yes, a new appuser created also has the same problem.
Wonder if there was something done at the creation of the project?

Something has gone wrong, but I don't know if it's with Central or Collect. What versions of each are you using? Are both stock or have they been modified.

Please you send a copy of the App User QR Code to support@getodk.org so we can investigate.

1 Like

Hi,

The issue is resolved.
We were using the odk api to get the list of appusers for the project
/v1/projects/1/app-users

We were matching the app user and get the geting the token.
and we were creating a QR Code.

Our appuser matching logic had a bug and so it was returning the token as undefined.

The issue is now resolved. Sorry and Thanks.

Prabhakar

3 Likes