When I create an "ArcGIS Server Feature Service" Reader, set its parameters (Authentification Type: Basic) and load the layer list, I get the Python Exception "Failed to retrieve feature types. Python Exception <ValueError>: No JSON object could be decoded".
I have this problem on a computer set up from scratch recently (Windows 10 build 1709) with FME 2017 (x86, build 17725). I tried different "Preferred Python Interpreter" settings in the FME options (Esri ArcGIS Desktop Python (2.7), FME Python 2.7, FME Python 3.4+) but got the same error. I also tried it on another computer with FME 2016 (x64, 16716), FME 2017 (x86, 17725) and FME 2017 (x64, 17725) and got the same result.
Is this a known bug in FME? Is there any workaround?
Greetings,
André
The log is:
Creating reader for format: Esri ArcGIS Server Feature ServiceTrying to find a PYTHON plugin for reader named `ARCGISFEATURES'Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files (x86)\FME_2017_17725\plugins/python27\arcgisonlinefeatures\__init__.pyc'Creating reader for format: Esri ArcGIS Server Feature ServiceTrying to find a PYTHON plugin for reader named `ARCGISFEATURES'Loaded Python module `arcgisonlinefeatures' from file `C:\Program Files (x86)\FME_2017_17725\plugins/python27\arcgisonlinefeatures\__init__.pyc'ArcGIS Feature Service Reader: Using authentication type 'Basic'ArcGIS Feature Service Reader: Requesting metadata for Feature Service at 'https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer'Python Exception <ValueError>: No JSON object could be decodedA fatal error has occurred. Check the logfile above for detailsFailed to obtain any schemas from reader 'ARCGISFEATURES' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading. See logfile for more informationUniversalReader -- readSchema resulted in 0 schema features being returnedReader Parameter(0) = >https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer<Reader Parameter(1) = >RETRIEVE_ALL_TABLE_NAMES<Reader Parameter(2) = >Yes<Reader Parameter(3) = >AUTH_TYPE<Reader Parameter(4) = >Basic<Reader Parameter(5) = >USER<Reader Parameter(6) = >ue83441<Reader Parameter(7) = >PASSWORD<Reader Parameter(8) = >********<Reader Parameter(9) = >TOKEN<Reader Parameter(10) = ><Reader Parameter(11) = >_MERGE_SCHEMAS<Reader Parameter(12) = >YES<Reader Parameter(13) = >RETRIEVE_ALL_TABLE_NAMES<Reader Parameter(14) = >YES<Reader Directive(0) = >RUNTIME_MACROS<Reader Directive(1) = >RETRIEVE_ALL_TABLE_NAMES,Yes,AUTH_TYPE,Basic,USER,ue83441,PASSWORD,********,TOKEN,_MERGE_SCHEMAS,YES,RETRIEVE_ALL_TABLE_NAMES,YES<Configuration object contents:FME Temporary Folder: C:\fme_temp_datamapping file Line 0: `APPLICATION' `FME_WORKBENCH'mapping file Line 1: `AUTOREG' `YES'mapping file Line 2: `LOG_ENCODING' `UTF-8'mapping file Line 3: `LOG_MAX_FEATURES' `-1'mapping file Line 4: `LOG_APPEND' `NO'mapping file Line 5: `FME_HOME' `C:\Program Files (x86)\FME_2017_17725\'mapping file Line 6: `FME_SESSION_USED' `TRUE'mapping file Line 7: `R_2_METAFILE' `ARCGISFEATURES'mapping file Line 8: `R_2_DATASET' `https://geo.sbb.ch/site/rest/services/Geobasisdienste/Grenzen_1_2_0/FeatureServer'mapping file Line 9: `R_2_RETRIEVE_ALL_TABLE_NAMES' `Yes'mapping file Line 10: `R_2_AUTH_TYPE' `Basic'mapping file Line 11: `R_2_USER' `ue83441'mapping file Line 12: `R_2_TOKEN' `'mapping file Line 13: `R_2__MERGE_SCHEMAS' `YES'mapping file Line 14: `R_2_RETRIEVE_ALL_TABLE_NAMES' `YES'mapping file Line 15: `R_2_RETRIEVE_ALL_TABLE_NAMES' `Yes'mapping file Line 16: `R_2_AUTH_TYPE' `Basic'mapping file Line 17: `R_2_USER' `ue83441'mapping file Line 18: `R_2_TOKEN' `'mapping file Line 19: `R_2__MERGE_SCHEMAS' `YES'mapping file Line 20: `R_2_MERGE_SCHEMAS' `YES'mapping file Line 21: `R_2_RETRIEVE_ALL_TABLE_NAMES' `YES'mapping file Line 22: `SCHEMA_TIME' `YES'mapping file Keyword: `LOG_ENCODING' occurs 1 time(s)mapping file Keyword: `R_2__MERGE_SCHEMAS' occurs 2 time(s)mapping file Keyword: `FME_HOME' occurs 1 time(s)mapping file Keyword: `LOG_MAX_FEATURES' occurs 1 time(s)mapping file Keyword: `R_2_MERGE_SCHEMAS' occurs 1 time(s)mapping file Keyword: `R_2_DATASET' occurs 1 time(s)mapping file Keyword: `SCHEMA_TIME' occurs 1 time(s)mapping file Keyword: `R_2_METAFILE' occurs 1 time(s)mapping file Keyword: `AUTOREG' occurs 1 time(s)mapping file Keyword: `R_2_PASSWORD' occurs 2 time(s)mapping file Keyword: `R_2_RETRIEVE_ALL_TABLE_NAMES' occurs 4 time(s)mapping file Keyword: `FME_SESSION_USED' occurs 1 time(s)mapping file Keyword: `LOG_APPEND' occurs 1 time(s)mapping file Keyword: `R_2_USER' occurs 2 time(s)mapping file Keyword: `R_2_AUTH_TYPE' occurs 2 time(s)mapping file Keyword: `APPLICATION' occurs 1 time(s)mapping file Keyword: `R_2_TOKEN' occurs 2 time(s)UniversalReader -- readSchema resulted in 0 schema features being returnedFailed to obtain any schemas from reader 'ARCGISFEATURES' from 1 datasets. This may be due to invalid datasets or format accessibility issues due to licensing, dependencies, or module loading. See logfile for more information