I am trying to upload model JSON files to my Azure Digital Twins instance but I get:
DocumentParseError: Failed to parse input. Error: jsonld.InvalidUrl: Dereferencing a URL did not result in a valid JSON-LD object. Possible causes are an inaccessible URL perhaps due to a same-origin policy (ensure the server uses CORS if you are using client-side JavaScript), too many redirects, a non-JSON response, or more than one HTTP Link Header was provided for a remote context.
I ran everything through the DTDL validator and it's fine. I am able to upload other sample models to my instance no problem.
I tried to upload Azure Digital Twins DTDL models directly through Azure Digital Twins Explorer and I expected them to populate in the Models column. Instead, I received the above error code.