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

Synch fails synchronizing files with problematic filenames. #607

Open
minguo33 opened this issue Aug 16, 2024 · 0 comments
Open

Synch fails synchronizing files with problematic filenames. #607

minguo33 opened this issue Aug 16, 2024 · 0 comments

Comments

@minguo33
Copy link

An entire synchronization crashes when trying to 1 synch file with a problematic name. Deleting the file on the server side allowed the merge to finish.

Filename was generated by the App using dynamic file names. (Field worker presumably entered data into the wrong field with question marks included)

Traceback (most recent call last):

  File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\mergin_official/python/plugins\Mergin\sync_dialog.py", line 275, in pull_timer_tick
    is_running = pull_project_is_running(self.job)

  File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\mergin_official/python/plugins\Mergin\mergin\client_pull.py", line 527, in pull_project_is_running
    raise future.exception()

  File "C:\PROGRA~1\QGIS32~1.11\apps\Python39\lib\concurrent\futures\thread.py", line 52, in run
    result = self.fn(*self.args, **self.kwargs)

  File "C:\Users/bfulcher/AppData/Roaming/QGIS/QGIS3\profiles\mergin_official/python/plugins\Mergin\mergin\client_pull.py", line 95, in _do_download
    item.download_blocking(mc, mp, project_path)

  File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\mergin_official/python/plugins\Mergin\mergin\client_pull.py", line 324, in download_blocking
    save_to_file(resp, self.download_file_path)

  File "C:\Users//AppData/Roaming/QGIS/QGIS3\profiles\mergin_official/python/plugins\Mergin\mergin\utils.py", line 39, in save_to_file
    with open(path, "wb") as output:

OSError: [Errno 22] Invalid argument: 'G:\\GIS Data\\QGIS\\Mergin\\Projects\\Mergin_Cloud\\Pole_Audit\\.mergin\\fetch_v90-v93\\pole_CA? CC? Install E3-10. _eister_T1_03_2024-08-14.jpg.0'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant