Solito C019 - Received request is not conform to the required interoperability profile
Buonasera, ho seguito l' issue #3964 convertendo il codice da JAVA in .NET, ma c'è ancora qualcosa che non va probabilmente sul DIGEST.
govway_id: 3bb68409-d549-11ee-ab83-005056ae5232 detail: Received request is not conform to the required interoperability profile type: https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html status: 400 title: InteroperabilityInvalidRequest
Cosa indica l' errore ? consigli? Se è un problema di digest, potreste dirmi che digest trasmetto e quale dovrebbe essere quello corretto ?
Grazie
L'errore infatti è: Validazione security token ModI 'INTEGRITY' della richiesta fallita: Header HTTP 'Digest' possiede un valore non corrispondente al messaggio. Ricontrollate il body
Il digest nell' header HTTP mi pare calcolato corretto SHA-256=WGM/KdL4KqnnacO8mhRC8dB86uH/3XoCOGkCXPvHX/Y= il body è questo " { "idOperazioneClient": "1", "criteriRicerca": { "codiceFiscale": "TTVSGT90A01H501H" }, "datiRichiesta": { "dataRiferimentoRichiesta": "2022-12-13", "motivoRichiesta": "1", "casoUso": "C019" } } "
Cosa c'è di errato ? Mi dia per favore qualche indicazione in più, grazie
govway_id 8533f03b-d574-11ee-95ca-005056ae1884 detail Received request is not conform to the required interoperability profile type https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html status 400 title InteroperabilityInvalidRequest
Ora l'errore è questo: Verifica ModI della richiesta fallita: Riscontrate 3 eccezioni. [Header 'Authorization'] Token non contiene il claim 'purposeId' [Header 'Authorization'] Token non contiene il claim 'digest.alg' [Header 'Authorization'] Token non contiene il claim 'digest.value'
Adesso è cambiato qualcosa ?
govway_id 47f485e7-d588-11ee-ab83-005056ae5232 detail Received request is not conform to the required interoperability profile type https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html status 400 title InteroperabilityInvalidRequest
E' possibile avere lo script in Java in una versione un pò più attuale ? (meglio ancora un esempio in .net) Grazie per la pazienza
Il client è solo un esempio che abbiamo voluto dare, potete modificarlo a vostro piacimento L'errore è dinuovo sul digest comunque: Header HTTP 'Digest' possiede un valore non corrispondente al messaggio Questo è quello che ci aspettiamo in base al payload rm3i24ZzLGuijPOdYfVWOI+yuWc+VE/+zY1pGIDs+R8= che sarebbe l'hash del payload codificato in Base64 Questo è quello che trasmettete: l6LgwbgG6JsEkQsqIPmFiZLo9LKl3JY2lSGPHxvYQL4=
Io vedo che nel token ho:
"signed_headers": [ { "digest": "SHA-256=l6LgwbgG6JsEkQsqIPmFiZLo9LKl3JY2lSGPHxvYQL4=" }, { "content-type": "application/json" } ], Header HTTP 'Digest' : SHA-256=l6LgwbgG6JsEkQsqIPmFiZLo9LKl3JY2lSGPHxvYQL4=
Dove è che sbaglio?
govway_id c712943a-d65d-11ee-8730-005056ae1884 detail Received request is not conform to the required interoperability profile type https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html status 400 title InteroperabilityInvalidRequest
Adesso come payload ci arriva questo: { "quality" : null, "charSet" : null, "parameters" : [ ], "mediaType" : "application/json" }
Il client è solo un esempio che abbiamo voluto dare, potete modificarlo a vostro piacimento L'errore è dinuovo sul digest comunque: Header HTTP 'Digest' possiede un valore non corrispondente al messaggio Questo è quello che ci aspettiamo in base al payload rm3i24ZzLGuijPOdYfVWOI+yuWc+VE/+zY1pGIDs+R8= che sarebbe l'hash del payload codificato in Base64 Questo è quello che trasmettete: l6LgwbgG6JsEkQsqIPmFiZLo9LKl3JY2lSGPHxvYQL4=
ok, ora il digest http è quello che mi avete indicato rm3i24.... ma compare ancora l' errore:
govway_id 9ac015c6-d943-11ee-825e-005056ae1884 detail Received request is not conform to the required interoperability profile type https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html status 400 title InteroperabilityInvalidRequest
L'errore relativo al govway_id fornito era questo: Verifica ModI della richiesta fallita: Riscontrate 4 eccezioni. Token non utilizzabile prima della data '2024-03-03_11:47:17.000' [Header 'Authorization'] Token non contiene il claim 'purposeId' [Header 'Authorization'] Token non contiene il claim 'digest.alg' [Header 'Authorization'] Token non contiene il claim 'digest.value'
Salve, sto cercando anch'io di integrare il servizio C019 ma dopo aver ricevuto un esito positivo per la generazione del token, l'invocazione del C019 non ne vuole sapere di andare a buon fine (400 o addirittura 404). Ho seguito i post cu C020 e C019 anche scaricando il client di esempio e replicandone i passi. Come posso avere supporto?
Grazie
Salve, sto cercando anch'io di integrare il servizio C019 ma dopo aver ricevuto un esito positivo per la generazione del token, l'invocazione del C019 non ne vuole sapere di andare a buon fine (400 o addirittura 404). Ho seguito i post cu C020 e C019 anche scaricando il client di esempio e replicandone i passi. Come posso avere supporto?
Grazie
Salve, Se ci fornite il govway_id restituito a seguito della chiamata del servizio, potremo individuare la transazione e darvi un dettaglio dell'errore
Buongiorno e grazie per il pronto riscontro. Allo stato attuale del software non ottengo un govway_id invocando il C019 (cosa che acceda in precedenza quando restituiva un 400). Inoltro la risposta ottenuta dall'ultima chiamata:
404 Not Found: "{ "type": "https://govway.org/handling-errors/404/NotFound.html", "title": "NotFound", "status": 404, "detail": "Unknown API Request", "X-Global-Transaction-ID": "3f7e3e2d65e6fc7dcae3f72d" } "
Grazie
[cid:3c779b95-8a5d-4267-87ec-24b7e9e80c15] Matteo Bruno www.soft.it/softlab-spahttps://soft.it/softlab-spa/ Softlab S.p.a. Via Mario Bianchini n. 60, 00142 Romahttps://goo.gl/maps/EB3emHRyyx2g4FXq5 [Softlab su LinkedIn]https://www.linkedin.com/company/softlab-spa-/
Da: afrontera85 @.> Inviato: martedì 5 marzo 2024 12:04 A: italia/anpr @.> Cc: Bruno Matteo @.>; Comment @.> Oggetto: Re: [italia/anpr] Solito C019 - Received request is not conform to the required interoperability profile (Issue #4431)
Salve, sto cercando anch'io di integrare il servizio C019 ma dopo aver ricevuto un esito positivo per la generazione del token, l'invocazione del C019 non ne vuole sapere di andare a buon fine (400 o addirittura 404). Ho seguito i post cu C020 e C019 anche scaricando il client di esempio e replicandone i passi. Come posso avere supporto?
Grazie
Salve, Se ci fornite il govway_id restituito a seguito della chiamata del servizio, potremo individuare la transazione e darvi un dettaglio dell'errore
— Reply to this email directly, view it on GitHubhttps://github.com/italia/anpr/issues/4431#issuecomment-1978506108, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCIKQUKIU52CNZVRNRGZSCDYWWRFRAVCNFSM6AAAAABD2S2R46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGUYDMMJQHA. You are receiving this because you commented.Message ID: @.***>
@MatteoSoftlab Senza govway_id non riusciamo a dirvi il dettaglio dell'errore. In generale l'errore 404 - Unknown API Request è un errore che si può prendere per i seguenti motivi:
- url errata
- url esatta ma assenza del voucher pdnd nella richiesta
- url esatta ma voucher pdnd errato nella richiesta
Salve, con gli stessi dati generati dal mio software, richiamando il C019 da Postman ottengo:
{ "type": "https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html", "title": "InteroperabilityInvalidRequest", "status": 400, "detail": "Received request is not conform to the required interoperability profile", "govway_id": "10320662-dadf-11ee-84b2-005056ae5232" }
Grazie
Da: afrontera85 @.> Inviato: martedì 5 marzo 2024 12:21 A: italia/anpr @.> Cc: Bruno Matteo @.>; Mention @.> Oggetto: Re: [italia/anpr] Solito C019 - Received request is not conform to the required interoperability profile (Issue #4431)
@MatteoSoftlabhttps://github.com/MatteoSoftlab Senza govway_id non riusciamo a dirvi il dettaglio dell'errore. In generale l'errore 404 - Unknown API Request è un errore che si può prendere per i seguenti motivi:
- url errata
- url esatta ma assenza del voucher pdnd nella richiesta
- url esatta ma voucher pdnd errato nella richiesta
— Reply to this email directly, view it on GitHubhttps://github.com/italia/anpr/issues/4431#issuecomment-1978535474, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCIKQUN5DD3G2FHDYHO5OSTYWWTFJAVCNFSM6AAAAABD2S2R46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGUZTKNBXGQ. You are receiving this because you were mentioned.Message ID: @.***>
Salve, con gli stessi dati generati dal mio software, richiamando il C019 da Postman ottengo: { "type": "https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html", "title": "InteroperabilityInvalidRequest", "status": 400, "detail": "Received request is not conform to the required interoperability profile", "govway_id": "10320662-dadf-11ee-84b2-005056ae5232" } Grazie [cid:fab54eb0-5712-44c9-bf94-33efb8cd6a4b] Matteo Bruno www.soft.it/softlab-spa<https://soft.it/softlab-spa/> Softlab S.p.a. Via Mario Bianchini n. 60, 00142 Romahttps://goo.gl/maps/EB3emHRyyx2g4FXq5 [Softlab su LinkedIn]https://www.linkedin.com/company/softlab-spa-/ … ________________________________ Da: afrontera85 @.> Inviato: martedì 5 marzo 2024 12:21 A: italia/anpr @.> Cc: Bruno Matteo @.>; Mention @.> Oggetto: Re: [italia/anpr] Solito C019 - Received request is not conform to the required interoperability profile (Issue #4431) @MatteoSoftlabhttps://github.com/MatteoSoftlab Senza govway_id non riusciamo a dirvi il dettaglio dell'errore. In generale l'errore 404 - Unknown API Request è un errore che si può prendere per i seguenti motivi: * url errata * url esatta ma assenza del voucher pdnd nella richiesta * url esatta ma voucher pdnd errato nella richiesta — Reply to this email directly, view it on GitHub<#4431 (comment)>, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BCIKQUN5DD3G2FHDYHO5OSTYWWTFJAVCNFSM6AAAAABD2S2R46VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNZYGUZTKNBXGQ. You are receiving this because you were mentioned.Message ID: @.***>
L'errore è il seguente: Validazione security token ModI 'INTEGRITY' della richiesta fallita: Riscontrate 2 eccezioni. Header HTTP 'Digest' possiede un valore non corrispondente al messaggio Header HTTP 'Content-Encoding', dichiarato tra gli header firmati, non trovato
Dovrei aver sistemato il Digest ma:
{ "type": "https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html", "title": "InteroperabilityInvalidRequest", "status": 400, "detail": "Received request is not conform to the required interoperability profile", "govway_id": "e2742ac2-dadf-11ee-9bd7-005056ae1884" }
Header HTTP 'Content-Encoding' mi suona nuovo. Lo specifico come UTF-8 nella creazione del JWT 'TOKEN INTEGRITY'. va specificato anche fra gli headers della chiamata al C019 ?
Si , Header HTTP 'content-encoding' e quello presente negli header firmati devono essere uguali
Per me è ok. Grazie per il supporto
Ha funzionato anche a me ora. Grazie mille
Come non detto, purtoppo. Un secondo test ha ripreso a dare:
400 Bad Request: "{"type":"https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html","title":"InteroperabilityInvalidRequest","status":400,"detail":"Received request is not conform to the required interoperability profile","govway_id":"2d4b06b3-daed-11ee-84b2-005056ae5232"}"
Come non detto, purtoppo. Un secondo test ha ripreso a dare:
400 Bad Request: "{"type":"https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html","title":"InteroperabilityInvalidRequest","status":400,"detail":"Received request is not conform to the required interoperability profile","govway_id":"2d4b06b3-daed-11ee-84b2-005056ae5232"}"
Verifica ModI della richiesta fallita: Riscontrate 2 eccezioni. Token non utilizzabile prima della data '2024-03-05_14:27:59.000' [Header 'Agid-JWT-TrackingEvidence'] Token non utilizzabile prima della data '2024-03-05_14:27:59.000'
Ok, quindi devo attendere la scadenza del token precedentemente staccato. Mi sarei aspettato un errore più parlante però, anche per capire se il token che ho è ancora valido (non mi sembra di trovare indicazioni in questo senso nella documentazione).
In più continuo a ricevere errore:
400 Bad Request: "{"type":"https://govway.org/handling-errors/400/InteroperabilityInvalidRequest.html","title":"InteroperabilityInvalidRequest","status":400,"detail":"Received request is not conform to the required interoperability profile","govway_id":"a0428d0a-daf6-11ee-9bd7-005056ae1884"}"
Grazie ancora
Continuo a non riuscire: una volta ottenuto una prima risposta dal servizio C019 se provo ad interrogarlo nuovamente con lo stesso token prendo errore. Quale di questi va generato nuovamente?
.header(HttpHeaders.AUTHORIZATION, "Bearer "+accessToken)
.header("Agid-JWT-Signature", tokenAgidSign)
.header("Agid-JWT-TrackingEvidence", tokenTrackSign)
.header("Digest", "SHA-256="+encodedBody)
.header("Content-Encoding", "UTF-8")
a parte ovviamente il Digest e, credo, Agid-JWT-Signature.
Grazie
Per gli eservice ANPR il voucher generato da PDND e quello che implementa il profilo AUDIT-REST-02 hanno una durata di 10 minuti. Naturalmente il token che implementa il profilo INTEGRITY-REST-02 deve essere prodotto ad ogni chiamata in quanto varia il payload della richiesta