Skip to content

Caused by: com.networknt.schema.JsonSchemaException: Unknown MetaSchema: https://json-schema.org/draft-04/schema #144

Open

Description

@liuborama

Version:
id "com.microsoft.azure.azurewebapp" version "1.2.0"

Config:
azurewebapp {
subscription = 'xxxx'
resourceGroup = 'xxxxx'
appName = 'ixxxx'
runtime {
os = 'Linux'
webContainer = 'Java SE'
javaVersion = 'Java 11'
}
}

When I run 'gradle azureWebAppDeploy'. I got this error.
In the source code,It seems use the json-schema V7,Why I got this 04 error。

Caused by: java.lang.ExceptionInInitializerError
at com.microsoft.azure.toolkit.lib.common.validator.SchemaValidator.getInstance(SchemaValidator.java:67)
at com.microsoft.azure.plugin.webapps.gradle.DeployTask.validateConfiguration(DeployTask.java:78)
at com.microsoft.azure.plugin.webapps.gradle.DeployTask.validate(DeployTask.java:103)
at com.microsoft.azure.plugin.webapps.gradle.DeployTask.deploy(DeployTask.java:70)
....
Caused by: com.networknt.schema.JsonSchemaException: Unknown MetaSchema: https://json-schema.org/draft-04/schema
at com.networknt.schema.JsonSchemaFactory.findMetaSchemaForSchema(JsonSchemaFactory.java:287)
at com.networknt.schema.JsonSchemaFactory.createValidationContext(JsonSchemaFactory.java:278)
at com.networknt.schema.JsonSchemaFactory.newJsonSchema(JsonSchemaFactory.java:272)
at com.networknt.schema.JsonSchemaFactory.getSchema(JsonSchemaFactory.java:391)
at com.microsoft.azure.toolkit.lib.common.validator.SchemaValidator.registerSchema(SchemaValidator.java:74)
at com.microsoft.azure.toolkit.lib.common.validator.SchemaValidator.registerSchema(SchemaValidator.java:80)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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