Engineering-Research-and-Development / true-connector-basic_data_app

GNU Affero General Public License v3.0
2 stars 9 forks source link

Error in the curl comman in the "Testing DataApp Provider endoint" section of the readme #107

Closed ludilorenz closed 11 months ago

ludilorenz commented 12 months ago

The curl call mentioned in the documentation, triggers a parsing error. Below I indicate where the backslash symbol is located that causes the error:

curl --location --request POST 'https://localhost:8183/data' \ --header 'Authorization: Basic aWRzVXNlcjpwYXNzd29yZA==' \ --form 'header={ "@context" : { "ids" : "https://w3id.org/idsa/core/", "idsc" : "https://w3id.org/idsa/code/" }, "@type" : "ids:ArtifactRequestMessage\", THE ERROR IS THE "\" HERE "@id" : "https://w3id.org/idsa/autogen/artifactRequestMessage/a55ed1d5-576d-4a90-b7b2-2606d5a7905c", "ids:requestedArtifact" : { "@id" : "http://w3id.org/engrd/connector/artifact/1" }, "ids:modelVersion" : "4.2.7", "ids:issued" : { "@value" : "2022-11-02T14:22:06.935Z", "@type" : "http://www.w3.org/2001/XMLSchema#dateTimeStamp" }, "ids:issuerConnector" : { "@id" : "http://w3id.org/engrd/connector/consumer" }, "ids:recipientConnector" : [ ], "ids:senderAgent" : { "@id" : "http://sender.agent/sender" }, "ids:recipientAgent" : [ ], "ids:securityToken" : { "@type" : "ids:DynamicAttributeToken", "@id" : "https://w3id.org/idsa/autogen/dynamicAttributeToken/b49b7382-73a7-4838-a3d0-ad8d2ee2c5a4", "ids:tokenValue" : "DummyTokenValue", "ids:tokenFormat" : { "@id" : "https://w3id.org/idsa/code/JWT" } }, "ids:transferContract" : { "@id" : "https://w3id.org/idsa/autogen/contractAgreement/155b87e3-5d4b-48ee-bcb2-24a1be346bbe" } }' \ --form 'payload=ABC'

davidjovanovic commented 11 months ago

Thank you for pointing this out, it will be fixed in the new release.