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

Error: The type initializer for 'LiquidTemplate' threw an exception.. #86

Closed
Heinzman opened this issue Jun 7, 2023 · 2 comments
Closed

Comments

@Heinzman
Copy link

Heinzman commented Jun 7, 2023

Since yesterday I'm getting an error 'The type initializer for 'LiquidTemplate' threw an exception..', so no OpenAPI class is created.

I'm using:
Visual Studio 2022
NSwag 13.19.0.0
Unchase.OpenAPI.Connectedservice 1.9.0

[07.06.2023 09:19:08.678] Warning:Failed loading the Unchase.OpenAPI.ConnectedService_Settings.xml user settings
[07.06.2023 09:20:17.350] Warning:Failed loading the Unchase.OpenAPI.ConnectedService_Settings.xml user settings
[07.06.2023 09:20:17.474] Adding Unchase OpenAPI (Swagger) Connected Service to the project.
[07.06.2023 09:20:17.475] Adding service instance for "https://ebswebsvclbeut1:55603/swagger/IndikoMasterWebServiceSpecificationCorrEmail/swagger.json"...
[07.06.2023 09:20:17.478] Adding Nuget Packages for OpenAPI (Swagger) CSharp Client...
[07.06.2023 09:20:17.481] Nuget Package "Newtonsoft.Json" for OpenAPI (Swagger) already installed.
[07.06.2023 09:20:17.484] Nuget Package "System.Net.Http" for OpenAPI (Swagger) already installed.
[07.06.2023 09:20:17.488] Nuget Package "System.ComponentModel.Annotations" for OpenAPI (Swagger) already installed.
[07.06.2023 09:20:17.490] Nuget Packages for OpenAPI (Swagger) CSharp Client were installed.
[07.06.2023 09:20:17.492] Generating NSwag-file for OpenAPI (Swagger)...
[07.06.2023 09:20:17.987] NSwag-file "OpenAPI.nswag" for OpenAPI (Swagger) was generated.
[07.06.2023 09:20:17.990] Generating Client Proxy for OpenAPI (Swagger) Client...
[07.06.2023 09:20:18.192] Warning:Error: The type initializer for 'LiquidTemplate' threw an exception..
[07.06.2023 09:20:18.199] Client Proxy for OpenAPI (Swagger) Client was generated.
[07.06.2023 09:20:18.201] Adding service instance complete!
[07.06.2023 09:20:18.410] Finished adding Unchase OpenAPI (Swagger) Connected Service to the project.

@unchase
Copy link
Owner

unchase commented Jun 7, 2023

Hi, @Heinzman

The error is likely related to the latest update of the Connected Service. Try installing the previous version of the extension.

@Heinzman
Copy link
Author

Heinzman commented Jun 9, 2023

Thank you,

with previous version it works again.

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

2 participants