cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Fiori Tools: error loading webview

htammen
Active Contributor
0 Likes
2,922

I've installed Fiori Tools in my local VS Code installation.
When I run "Fiori: Open Application Generator" from the Command Palette I get this error:

Error loading webview: Error: Could not register service workers: 
InvalidStateError: Failed to register a ServiceWorker:
The document is in an invalid state..

Installed Fiori Tools
version: v1.5.2
Last updated: 2022-03-17

Any suggestions?

Thanks Helmut

View Entire Topic
IanQuigley
Product and Topic Expert
Product and Topic Expert
0 Likes

Thanks Helmut,

Sorry it's not yet resolved. Can you please confirm what is happening when you launch the Application Wizard in VSCode? That is, view -> Command Palette... -> Open Template Wizard.

This should show you all the installed generators - is the Fiori generator showing up as an installed generator there?

In order to see the logs of the Application Wizard, please open VScode settings -> preferences and search for 'Wizard'. You will then be able to update the Application Wizard Logging Level to 'Debug'. After this, you will able to see any log messages in the "Output" tab under the "Application Wizard" dropdown.

Regards,

Ian

htammen
Active Contributor
0 Likes

Hi Ian,

thanks for your support.

When I "Open Template Wizard" I get the following error:

Error loading webview: Error: Could not register service workers: InvalidStateError: Failed to register a ServiceWorker: The document is in an invalid state..

The log does not give any valuable information

{ "label": "Application Wizard", "level": "info", "message": "Start Logging in Log Level: <debug>", "time": "2022-03-24T12:34:06.010Z"}{ "label": "Application Wizard", "level": "info", "message": "Full Logs can be found in the </home/helmut/.config/Code/logs/20220324T133359/exthost1/SAPOS.yeoman-ui> folder.", "time": "2022-03-24T12:34:06.012Z"}{ "label": "Application Wizard", "level": "info", "message": "SAP Web Analytics tracker was created for ApplicationWizard", "time": "2022-03-24T12:34:06.013Z"}

I also had a look at the mentioned Full logs directory and found no error. The attached file is the zipped content of the logs folder vs-code-log.txt
Please rename it to .zip and extract it for further investigation.

Thanks and best regards
Helmut