Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to Extract local changes in the QGIS plugin #589

Open
PatrikMizera opened this issue Jun 14, 2024 · 1 comment
Open

unable to Extract local changes in the QGIS plugin #589

PatrikMizera opened this issue Jun 14, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@PatrikMizera
Copy link

PatrikMizera commented Jun 14, 2024

  1. I have created a simple project with 1 survey layer
  2. synchronized new version V2. in which I have added 3 new points
  3. I have updated 1 point (from the previous version), deleted 1 point (from the previous version), added 1 new point, after that I have saved the project and did not sync
  4. I tried to extract local changes as described in this test
image image

After I hit "run" I got this error:
image

Here is the error in text form:
Traceback (most recent call last):
File "/Users/patrikmizera/Library/Application Support/QGIS/QGIS3/profiles/test01/python/plugins/Mergin/processing/algs/extract_local_changes.py", line 118, in processAlgorithm
features = diff_table_to_features(diff[table_name], db_schema[table_name], fields, fields_mapping, db_conn)
File "/Users/patrikmizera/Library/Application Support/QGIS/QGIS3/profiles/test01/python/plugins/Mergin/diff.py", line 231, in diff_table_to_features
wkb_with_gpkg_hdr = base64.decodebytes(value.encode("ascii"))
AttributeError: 'NoneType' object has no attribute 'encode'

Execution failed after 0.09 seconds

Present in:
dev plugin with dev server
production plugin with production server

Mergin plugin artefact: https://github.com/MerginMaps/qgis-plugin/actions/runs/9482639845
Tested on MAC against app.dev (2024.4.0.)

@MarcelGeo MarcelGeo added the bug Something isn't working label Jun 14, 2024
@MarcelGeo
Copy link

Issue is occuring also on currently released plugin. Therefore, this is not related to editor implementations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants