8000 http error 403 when accessing https://json-schema.org/draft/2019-09/meta/core · Issue #867 · networknt/json-schema-validator · GitHub
[go: up one dir, main page]

Skip to content
http error 403 when accessing https://json-schema.org/draft/2019-09/meta/core #867
@jeromevdl

Description

@jeromevdl

Using the validator Set<ValidationMessage> validationMessages = jsonSchema.validate(jsonNode);, we get the following error in our build on GitHub within a unit test, but not locally. No problem with other schema versions (4, 6 or 7).

com.networknt.schema.JsonSchemaException: java.io.IOException: Server returned HTTP response code: 403 for URL: https://json-schema.org/draft/2019-09/meta/core
at com.networknt.schema.JsonSchemaFactory.getSchema(JsonSchemaFactory.java:457)
at com.networknt.schema.RefValidator.getRefSchema(RefValidator.java:84)
at com.networknt.schema.RefValidator.(RefValidator.java:43)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.networknt.schema.ValidatorTypeCode.newValidator(ValidatorTypeCode.java:162)
at com.networknt.schema.JsonMetaSchema.newValidator(JsonMetaSchema.java:278)
at com.networknt.schema.ValidationContext.newValidator(ValidationContext.java:63)
at com.networknt.schema.JsonSchema.read(JsonSchema.java:295)
at com.networknt.schema.JsonSchema.getValidators(JsonSchema.java:615)
at com.networknt.schema.JsonSchema.validate(JsonSchema.java:388)
at com.networknt.schema.AllOfValidator.validate(AllOfValidator.java:58)
at com.networknt.schema.JsonSchema.validate(JsonSchema.java:393)
at com.networknt.schema.BaseJsonValidator.validate(BaseJsonValidator.java:115)
at software.amazon.lambda.powertools.validation.ValidationUtils.validate(ValidationUtils.java:209)

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

      0