Skip to content

QGIS 3.2.1 - saving project file creates error when javascript api based layer is loaded #59

Description

@dtvkoe

If the project contains a layer that is based on a javascript API, saving the QGIS project file is not possible anymore.

While pressing on the save button the following python error occurs:

An error has occurred while executing Python code: 

TypeError: writeXml() takes 3 positional arguments but 4 were given 
TypeError: writeXml() takes 3 positional arguments but 4 were given


Python version: 3.6.0 (v3.6.0:41df79263a11, Dec 23 2016, 08:06:12) [MSC v.1900 64 bit (AMD64)] 
QGIS version: 3.2.1-Bonn Bonn, 1edf372fb8 

Python Path:
C:/OSGEO4~1/apps/qgis/./python
C:/Users/MYUSER/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:/Users/MYUSER/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins
C:/OSGEO4~1/apps/qgis/./python/plugins
C:\OSGeo4W64\bin\python36.zip
C:\OSGEO4~1\apps\Python36\DLLs
C:\OSGEO4~1\apps\Python36\lib
C:\OSGeo4W64\bin
C:\OSGEO4~1\apps\Python36
C:\OSGEO4~1\apps\Python36\lib\site-packages
C:\OSGEO4~1\apps\Python36\lib\site-packages\win32
C:\OSGEO4~1\apps\Python36\lib\site-packages\win32\lib
C:\OSGEO4~1\apps\Python36\lib\site-packages\Pythonwin
C:/Users/MYUSER/AppData/Roaming/QGIS/QGIS3\profiles\default/python
C:\Users\MYUSER\AppData\Roaming\QGIS\QGIS3\profiles\default\python\plugins
D:/Daten/QGIS

QGIS remembers the project file as saved but after opening the project file again a javascript api based layer is gone.

I've encountered this problem when loading "Google Streets" and "Bing Roads" layer.

This problem doesn't occur when adding layers like "OpenStreetMap" which are not javascript base.

I also don't have this problem when using QGIS 2.18.22.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions