Cadasta / cadasta-qgis-plugin

[DEPRECATED] QGIS plugin to create, edit, upload and download Cadasta projects
GNU General Public License v3.0
4 stars 7 forks source link

Unable to login on staging with proper username and password #202

Closed SteadyCadence closed 7 years ago

SteadyCadence commented 7 years ago

Not sure what's going on, but the "Clear" button isnt activating and I can't log into any of the accounts.

When I click on the "User Settings", the "https://platform.cadasta.org" url is filled in. Nothing else. I changed the url to "https://platform-staging.cadasta.org" and then fill out my user name and pw. Click "Test Connection" and it fails.

The "Clear" button is never activated-- always greyed out.

SteadyCadence commented 7 years ago

Finally got demo to work, but not platform or staging

SteadyCadence commented 7 years ago

Either way there are no error messages or ways to clear out what the issue is... really frustrating.

dimasciput commented 7 years ago

I think this is because the api from the server has changed, did you test the latest build that has @alukach commits?

dimasciput commented 7 years ago

@SteadyCadence this is the PR → https://github.com/Cadasta/cadasta-qgis-plugin/pull/154

alukach commented 7 years ago

@steadycadence, @dimasciput, We've deployed pagination to all Cadasta API list endpoints on the staging server. This effectively broke the QGIS plugin, requiring us to merge PR #154. Currently pagination is not deployed to platform or demo. You should be able to still use the old version of the plugin with those systems. To use staging, you will need to install the plugin from the develop branch of this repo.

With that said, I'm not certain as to how pagination would break login, as that is not a list-endpoint. Can you please post the error logs?

dimasciput commented 7 years ago

@alukach the login itself is fine, but in the plugin after user login and save the token there is a process that fetch the organization of the user and save it locally.

SteadyCadence commented 7 years ago

I created a new user account, restarted QGIS and finally was able to log in.

I did get this error message:

File "/Users/katrinaengelsted/.qgis2/python/plugins/cadasta-qgis-plugin/cadasta/gui/tools/widget/options_widget.py", line 193, in save_authtoken
                self.save_organizations()
File "/Users/katrinaengelsted/.qgis2/python/plugins/cadasta-qgis-plugin/cadasta/gui/tools/widget/options_widget.py", line 209, in save_organizations
                organization.append(result['slug'])
TypeError: string indices must be integers
wonderchook commented 7 years ago

@SteadyCadence delete the plugin and reinstall or delete the pyc files in the plugin folders.